Jump to content
  • 0

if item script have autoskill bonus3 bAutoSpell


sumano

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   0
  • Joined:  04/24/12
  • Last Seen:  

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;
}

 

 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  342
  • Reputation:   169
  • Joined:  02/25/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   0
  • Joined:  04/24/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  342
  • Reputation:   169
  • Joined:  02/25/12
  • Last Seen:  

Ok. And what's the problem with your scripts? Don't you get the dispbottom message?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   0
  • Joined:  04/24/12
  • Last Seen:  

possible this ?


 


OnNPCKillEvent:


if( bonus3 bAutoSpell * == ) {

    dispbottom "Even : you can't get reward but auto spell";

    end;

}

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

not possible, you cant check for certain item_bonus using npc script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   0
  • Joined:  04/24/12
  • Last Seen:  

ahh ok

 

i use check item id zzz 

 

thanksssss

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

your method just make the whole server player can only hunt 1 item at one time.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...