Page 1 of 1

Anti PK

Posted: 2004-04-22 00:57:17
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

Posted: 2004-04-22 11:52:56
by MerlinSiG
эээ? и что это за скрипт
как я по нему понял что он предупреждает тебя о пк а остальное все муторно

Posted: 2004-04-22 13:56:09
by xeon
Plz speak english

Posted: 2004-04-22 14:13:10
by Psimorph
Where u need this script?

Posted: 2004-04-22 17:27:53
by xeon
When i'm mining or lumberjacking for example

Posted: 2004-08-14 18:28:01
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

Posted: 2004-08-14 22:30:49
by Lord Ruslan Nightmare

Code: Select all

Please, use [code]text[/code] tag to post your scripts

How do i find out the rune number??

Posted: 2004-10-18 04:16:57
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.