06-30-2013, 10:54 AM
Hi guys,
I need your help with this script:
[ITEMDEF i_arken_talisman]
Defname=i_arken_talisman
ID=i_talisman4
Name=Arken talisman
type=t_jewelry
Tevents=t_arken
Tevents=t_luck_item
tag.luck=100
ON=@EQUIP
IF (<src.findlayer.9.baseid>==i_arken_talisman)
src.events=+e_more_money
else
Return 0
endif
ON=@UNEQUIP
src.events=-e_more_money
[Events e_more_money]
ON=@kill
if (<act.isplayer>)
obj=<argo.uid>
if (<obj.isevent.e_exp>)
local.new=<new>
serv.newitem i_gold,{1000 2000}
bounce <new>
new=<local.new>
return 1
endif
endif
The script serve as the player kill a mob, this drop extra gold.
When I kill the mob with him GM drop the gold, but when you kill the player nothing happens. Can you help?
I need your help with this script:
[ITEMDEF i_arken_talisman]
Defname=i_arken_talisman
ID=i_talisman4
Name=Arken talisman
type=t_jewelry
Tevents=t_arken
Tevents=t_luck_item
tag.luck=100
ON=@EQUIP
IF (<src.findlayer.9.baseid>==i_arken_talisman)
src.events=+e_more_money
else
Return 0
endif
ON=@UNEQUIP
src.events=-e_more_money
[Events e_more_money]
ON=@kill
if (<act.isplayer>)
obj=<argo.uid>
if (<obj.isevent.e_exp>)
local.new=<new>
serv.newitem i_gold,{1000 2000}
bounce <new>
new=<local.new>
return 1
endif
endif
The script serve as the player kill a mob, this drop extra gold.
When I kill the mob with him GM drop the gold, but when you kill the player nothing happens. Can you help?