Jump to content
  • 0

Misc item effect


Eros

Question


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  202
  • Reputation:   2
  • Joined:  07/09/12
  • Last Seen:  

Can someone help me what i want is if i have a certain talisman it will give bonus effects for example.

31077 - Talisman Of Damage
If i have it on my inventory it will give extra +10 Str.
 

- script bonus {
OnPCCalcStatEvent:
if ( countitem(31077) ) {
bonus bStr,10;
}
end;
}

My script is not working can someone help me.
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

it is OnPCStatCalcEvent not OnPCCalcStatEvent.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  202
  • Reputation:   2
  • Joined:  07/09/12
  • Last Seen:  

Ok let me try this one.


- script potangina {
OnPCStatCalcEvent:
if ( countitem(512) >= 1 ) {
bonus bAllStats,100;
}
end;
}

Still not working.
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

 

Ok let me try this one.

- script potangina {
OnPCStatCalcEvent:
if ( countitem(512) >= 1 ) {
bonus bAllStats,100;
}
end;
}

Still not working.

 

why dont use charm system? just search it on source area im using right now

SS: sample

i made a item#15000 as a misc item with effect  with effect of str+100

 

post-3976-0-92862300-1471177090_thumb.jpg

post-3976-0-76872800-1471177114_thumb.jpg

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  202
  • Reputation:   2
  • Joined:  07/09/12
  • Last Seen:  

Thanks done.

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...