Fresh prince Posted October 14, 2014 Posted October 14, 2014 Hello rathena, Could someone please edit this and make autotraders(vendors) NOT receive a reward once the the woe ends. Thanks http://pastebin.com/raw.php?i=5z6edTq2 Quote
Emistry Posted October 14, 2014 Posted October 14, 2014 if (isloggedin(.@acc[.@j],.@char[.@j])) { change tot his if (isloggedin(.@acc[.@j],.@char[.@j]) && !checkvending( rid2name(.@acc[.@j]) ) ) { 1 Quote
Fresh prince Posted October 17, 2014 Author Posted October 17, 2014 (edited) Tried Sir Emistry edit but threw me an error and Still gave me prize. What about if there is an @afk command and used it? how can we prevent them receiving rewards after woe? Thanks you rathena Edited October 18, 2014 by Fresh prince Quote
Skorm Posted October 18, 2014 Posted October 18, 2014 Maybe try it like... if (isloggedin(.@acc[.@j],.@char[.@j])) { if ( !checkvending( rid2name(.@acc[.@j]) ) ) { for(set .@k,0; .@k<getarraysize(.Reward); set .@k,.@k+2) getitem .Reward[.@k], .Reward[.@k+1], .@acc[.@j]; message rid2name(.@acc[.@j]),"You have been rewarded for conquering "+getcastlename(.Castles$[.@i])+"."; } } } } 1 Quote
Emistry Posted October 18, 2014 Posted October 18, 2014 Tried Sir Emistry edit but threw me an error and Still gave me prize. What about if there is an @afk command and used it? how can we prevent them receiving rewards after woe? Thanks you rathena depend on how your @afk work, sone minor modification would be needed. @skorm haha , I totally forgotten that offline char will caused the invalid rid message to spam xD Quote
Fresh prince Posted October 18, 2014 Author Posted October 18, 2014 (edited) Thanks Sir Emistry and Sir Skorm! Edited October 19, 2014 by Fresh prince Quote
Question
Fresh prince
Hello rathena,
Could someone please edit this and make autotraders(vendors) NOT receive a reward once the the woe ends.
Thanks
http://pastebin.com/raw.php?i=5z6edTq2
6 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.