MrEll Posted January 7, 2016 Posted January 7, 2016 hello can anyone make me script if u kill 1 mob u will gain 100 gold 100 poring coin and then player will warp back to savepoints they only can kill 1 mob Quote
0 hendra814 Posted January 8, 2016 Posted January 8, 2016 (edited) prontera.gat,0,0,0 script KillMob -1,{ OnNPCKillEvent: getitem 969,100; getitem 7539,100; warp "SavePoint", 0, 0; } Edited January 8, 2016 by hendra814 Quote
0 Ninja Posted January 8, 2016 Posted January 8, 2016 prontera.gat,0,0,0 script KillMob -1,{ OnNPCKillEvent: getitem 969,100; getitem 7539,100; warp "SavePoint", 0, 0; } This will make you warp back to your savepoint everytime you kill a monster anywhere in the server. You can add a mapcheck and monster check there OnNPCKillEvent: if(strcharinfo(3) == "mapname" && killedrid == mob_id){ getitem 969,100; getitem 7539,100; warp "SavePoint", 0, 0; } or you can use monster trigger events instead. Quote
0 hendra814 Posted January 8, 2016 Posted January 8, 2016 i made like that because he not mention like player just kill monster on spesific map or just kill spesific monster. Quote
0 domez86 Posted October 27, 2019 Posted October 27, 2019 On 1/8/2016 at 4:38 AM, Ninja said: This will make you warp back to your savepoint everytime you kill a monster anywhere in the server. You can add a mapcheck and monster check there OnNPCKillEvent: if(strcharinfo(3) == "mapname" && killedrid == mob_id){ getitem 969,100; getitem 7539,100; warp "SavePoint", 0, 0; } or you can use monster trigger events instead. hello, what does the value "3" mean? in ---> if (strcharinfo (3) Quote
0 hendra814 Posted October 28, 2019 Posted October 28, 2019 10 hours ago, domez86 said: hello, what does the value "3" mean? in ---> if (strcharinfo (3) Here the explanation Quote 0 - Character's name. 1 - The name of the party they're in if any. 2 - The name of the guild they're in if any. 3 - The name of the map the character is in. Quote
Question
MrEll
hello
can anyone make me script if u kill 1 mob u will gain 100 gold 100 poring coin and then player will warp back to savepoints
they only can kill 1 mob
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.