RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Instant Hit

KillerSpy

Wanderer
Instant Hit

Anyone knows a way to make instant hit like osi pre-uo:r?

If knows a theory or something like this, plz inform me =)
 
H

hydroxtrem

Guest
i dunno about insta hit and all but you can set your dex to 65000 its basically ista hit lol
 
D

DSimmon

Guest
For those of use that didn't play then, what was insta hit?
Like a first shot skill?
Or just a no miss attack?
 

Alkiser

Administrator
In UO (old old school) any weapon would start its swing animation and hit automaticly before the animation ended. This, making exp, precast EB, hally hit, target. insanly powerful was taken out. The reason being you could do this combo in a matter of seconds.

Im sure there is someway to put it into RUNUO.. but im not sure how.
 
A

Aramiz

Guest
exctaly what alkiser said is the instant hit
so..i am asking that old school players and/or RunUO Devs help us here how to make insta hit work..
=]
thx
 
A

Aramiz

Guest
Killerspy coudnt do it.. hehe

if someone help us..it will be really appreciated hehe
 
A

Aramiz

Guest
i havent tried anything hehe
i am with killerspy..
hes the scripter hehe
=]]
help us phant hehe
 
A

Aramiz

Guest
well.. i dont know C#

i am helping the Shard to be rdy with info and stuff..
the one who is scripting is killerspy..
he already tried..but, as he said..the way he did is a bit problematic. ask him what he did. omg..
 

Phantom

Knight
Well

Tell him to post the script. I never seen this in action so I have no idea how it would work. Unless somebody gives me information on this system i cannot do anything.

I am talking to either one of you, not just you. If you don't like my attitude, then don't reply or post the script and killerspy can figure it out. I am offering my help if you show me you tried and not just asking for help.
 
A

Aramiz

Guest
will do. left a message on his icq asking him to post the script here

btw..thx for offering the help =)
 

KillerSpy

Wanderer
Im back, hehehe what im tryin to do is this:

[code:1]
bool instaHit = true;

base.OnHit( attacker, defender );

if ( instaHit == true )
{
attacker.NextCombatTime = DateTime.Now;
instaHit = true;
}
[/code:1]
 

DustBuster

Wanderer
Here is a working one. It allows the user to do an insta hit every ten seconds. You can easily edit the time between hits by changing this line:

[code:1]
InstaHit = DateTime.Now + new TimeSpan( 0, 0, 0, 10 );
[/code:1]

To get the code working, you have to change the players class. To do, open up \Scripts\Misc\CharacterCreation.cs, find the following:

[code:1]
private static Mobile CreateMobile( Account a )
{
for ( int i = 0; i < 5; ++i )
if ( a == null )
return a = new Mobile();

return null;
}
[/code:1]

And change it to:

[code:1]
private static Mobile CreateMobile( Account a )
{
for ( int i = 0; i < 5; ++i )
if ( a == null )
return a = new MyMobile();

return null;
}
[/code:1]

And you have to add the mobile's code. Create a new *.cs file, and paste this into it:

[code:1]
using System;
using Server;
using Server.Items;
using Server.Mobiles;
using Server.Network;

namespace Server.Misc
{

public class MyMobile : Mobile
{
private static Timer m_Timer;
public static string InstaHitVar = Convert.ToString( DateTime.Now );
private static DateTime InstaHit = DateTime.Now;

public MyMobile()
{
InstaHitVar = Convert.ToString( DateTime.Now );
}



public MyMobile( Serial serial ) : base( serial )
{
}

private class InternalTimer : Timer
{
private Mobile m_Owner;


public InternalTimer( Mobile owner ) : base( TimeSpan.FromSeconds( 0.1 ), TimeSpan.FromSeconds( 0.2 ) )
{
m_Owner = owner;
}

protected override void OnTick()
{
m_Owner.NextCombatTime = DateTime.Now;
InstaHit = DateTime.Now + new TimeSpan( 0, 0, 0, 10 );
m_Timer.Stop();
}

}

public override bool OnEquip( Item item )
{
if ( item.Layer == Layer.TwoHanded || item.Layer == Layer.FirstValid )
{
//this.SendMessage( "It's a weapon!" );

if ( DateTime.Now >= InstaHit )
{
//this.SendMessage( "InstaHit activated!" );
m_Timer = new InternalTimer( this );
m_Timer.Stop();
m_Timer.Delay = TimeSpan.FromSeconds( 0.2 ); // Optional
m_Timer.Start();
}
}

return true;
}

public override void OnDelete()
{
m_Timer.Stop();

}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );

writer.Write( (int) 0 ); // version

writer.Write( (string) InstaHitVar);
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );

int version = reader.ReadInt();

switch ( version )
{
case 0:
{
InstaHitVar = reader.ReadString();

break;
}
}
}


}


}
[/code:1]
 
A

Aramiz

Guest
thx a loooot dude :)

this will help us a lot..having the fun we used to have on osi PRE UO:R (insta hit + pre cast)

omg..geez..u own!
 
C

Caladeth

Guest
guys know of a good UO:R (insta hit + pre cast) player run shard?
 
Top