admin phoenix
Master
Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3
|
RE: FORITEMS doesn´t work right?
ok my friends.
here is the script, if someone need and want it. thanks to all.
Code:
[FUNCTION f_death_to_shrine]
ref1=<uid>
FORITEMS 20
IF ((<link> == <ref1.uid>) && (<type> == T_CORPSE))
f_loot_death <ref1.uid>
remove
ENDIF
ENDFOR
ref1.smsg @<def.def_smsg_info>,3 You will be teleported to the nex shrine
local.lowdistance=50000
FORITEMS 6144
IF (<type> == t_shrine)
IF (<ref1.distance <uid>> < <local.lowdistance>)
local.lowdistance= <ref1.distance <uid>>
ref2 = <uid>
ENDIF
ENDIF
ENDFOR
ref1.go = <ref2.p>
ref1.update
[FUNCTION f_loot_death]
ref1=<args>
IF <findcont(0)>
findcont(0).cont=<ref1>
f_loot_death <ref1.uid>
RETURN 1
ELSE
SRC.RESEND
RETURN 1
ENDIF
(This post was last modified: 07-11-2012 05:55 AM by admin phoenix.)
|
|
07-11-2012 05:55 AM |
|
|