Hey,
I need to make a script that awards 1x (itemid) per kill..
Now this could be a quest or whatever, i just realy need this.. if any1 could help me?
:wave:
Hey,
I need to make a script that awards 1x (itemid) per kill..
Now this could be a quest or whatever, i just realy need this.. if any1 could help me?
:wave:
forgot to say.. it doesnt matter how this is obtained, as long as it gets done its fine..
This is in optional.conf (for arcemu), unless you are asking for NPC too, in which case im not sure how to script that.
i know theres an option in the configs.. but it seems not to be working from the new arcemu revs...
The extrascript was removed I believe. Or it may have just been moved. Try using the optional config one again once you compile ALL the projects in the all projects solution.
A Script as simple as this would do the job.
Code:local tokenid = 99999 -- Id of the Token on Kill Reward local xamount = 2 -- Amount of Tokens Rewarded on Kill local zamount = 1 -- Amount of Tokens Removed on Death function zzOnKill(pPlayer, pKilled, event) pPlayer:AddItem(tokenid, xamount) pKilled:RemoveItem(tokenid, zamount) end RegisterServerHook(23, "zzOnKill")
thank you GZ , i will add u some rep if this worx! thanx
and ill take a loke harry
Ok thanx ! it works