Anti PK

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
xeon
Posts: 8
Joined: 2004-04-17 15:35:31

Anti PK

Post by xeon »

Here a little script that try to avoid to be killed :)
The only things you have to modify are
- the runebook ID (use ,info on the rune)
- the rune number (in my shard the first is 16)

Remember to recharge your runebook and keep it closed while running this function, or it will not recall.

sub antipk()
var start, stop
var lHID, rHID

UO.Set("norbcheck","1")
UO.Set("norbcalc","1")

REPEAT
UO.IgnoreReset()
UO.Ignore("self")

REPEAT
UO.FindType("-1","-1","ground")

IF (UO.FindCount() > 0) THEN
IF (UO.IsNPC("finditem") AND (UO.GetNotoriety("finditem") > 3)) THEN
rHID = UO.ObjAtLayer('Rhand')
lHID = UO.ObjAtLayer('Lhand')
start = UO.Timer()
REPEAT
UO.Exec("disarm")
wait(50)
UNTIL ((UO.ObjAtLayer('Rhand') == "") AND (UO.ObjAtLayer('Lhand') == ""))
stop = UO.Timer()
UO.Recall("0x5c218c13", "16")

UO.Print("PK!!! " + UO.GetName("finditem"))
UO.Print("Time =" + str((stop-start)/10))

UO.Exec("terminate all")
ENDIF
UO.Ignore("finditem")
ENDIF
UNTIL (UO.FindCount() <= 0)
wait(500)
UNTIL (UO.Life <= 0)
end sub
MerlinSiG
Posts: 9
Joined: 2004-04-18 09:29:12

Post by MerlinSiG »

эээ? и что это за скрипт
как я по нему понял что он предупреждает тебя о пк а остальное все муторно
Слава Yoko!
Слава Inject'y
Слава Yoko еще раз!
xeon
Posts: 8
Joined: 2004-04-17 15:35:31

Post by xeon »

Plz speak english
Psimorph
Posts: 118
Joined: 2004-04-06 12:27:32
Contact:

Post by Psimorph »

Where u need this script?
xeon
Posts: 8
Joined: 2004-04-17 15:35:31

Post by xeon »

When i'm mining or lumberjacking for example
Thdin
Posts: 51
Joined: 2004-07-22 07:37:37

Post by Thdin »

Ya. I could have used this the other night. Lost all my mining gear... worth lots of money, and it wasn't mine so know I have to replace it :P
Lord Ruslan Nightmare
Expert!
Posts: 359
Joined: 2004-04-25 11:11:07
Contact:

Post by Lord Ruslan Nightmare »

Code: Select all

Please, use [code]text[/code] tag to post your scripts
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...
jjdad
Posts: 6
Joined: 2004-08-07 09:19:57

How do i find out the rune number??

Post by jjdad »

Ok, Kool, can't wait to use this script, died last week by Pker. Only one question, how do i find out the Rune Number?, i have no idea how to find that out, if someone could tell me, that would be very much appriciated. Thanks!!!, I really wanna use this code.
Post Reply