sumano Posted May 27, 2014 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 54 Reputation: 0 Joined: 04/24/12 Last Seen: February 28, 2020 Share Posted May 27, 2014 hi everyone if in item_db have bonus3 bAutoSpell or any like that can't get reward my script OnNPCKillEvent: if(countitem(5420)>0 ) { dispbottom "Even : if you have "+getitemname(5420)+" you can't get reward"; end; } Quote Link to comment Share on other sites More sharing options...
Alayne Posted May 28, 2014 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 342 Reputation: 170 Joined: 02/25/12 Last Seen: January 24, 2022 Share Posted May 28, 2014 Sorry, can't understand what you mean...Autospell will cast a special skill on melee atk. Nothing to do with items Did I miss something. Quote Link to comment Share on other sites More sharing options...
sumano Posted May 28, 2014 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 54 Reputation: 0 Joined: 04/24/12 Last Seen: February 28, 2020 Author Share Posted May 28, 2014 my server have script 1 kill mob 1 point but people use crusader and reflect shield use item auto spell for free cash i no to disable for this Quote Link to comment Share on other sites More sharing options...
Alayne Posted May 28, 2014 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 342 Reputation: 170 Joined: 02/25/12 Last Seen: January 24, 2022 Share Posted May 28, 2014 Ok. And what's the problem with your scripts? Don't you get the dispbottom message? Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 28, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 1 hour ago Share Posted May 28, 2014 Not sure with what you want, but if you're looking for a way to disable player from getting items due to these afk user abuse it. You can simply add a check for idle time using the checkidle . If they are idle, then stop the cash gaining. Quote Link to comment Share on other sites More sharing options...
sumano Posted May 28, 2014 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 54 Reputation: 0 Joined: 04/24/12 Last Seen: February 28, 2020 Author Share Posted May 28, 2014 possible this ? OnNPCKillEvent: if( bonus3 bAutoSpell * == ) { dispbottom "Even : you can't get reward but auto spell"; end; } Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 28, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 1 hour ago Share Posted May 28, 2014 not possible, you cant check for certain item_bonus using npc script. Quote Link to comment Share on other sites More sharing options...
sumano Posted May 28, 2014 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 54 Reputation: 0 Joined: 04/24/12 Last Seen: February 28, 2020 Author Share Posted May 28, 2014 ahh ok i use check item id zzz thanksssss Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 28, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 1 hour ago Share Posted May 28, 2014 your method just make the whole server player can only hunt 1 item at one time. Quote Link to comment Share on other sites More sharing options...
Question
sumano
hi everyone
if in item_db have bonus3 bAutoSpell or any like that
can't get reward
my script
OnNPCKillEvent:
Link to comment
Share on other sites
8 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.