Jump to content
  • 0

Help with a equiped item check!


iraciz

Question


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

Good morning dear community, for me it is a pleasure to return to rathena.

This time I ask for help with the isequiped check, I am working in a low rate server  without sp consumables,  and I came up with the idea of creating an additional bonus for the lower item id: carrot in mout "https://ratemyserver.net/index.php?page=re_item_db&item_id=18683". 

I want this item, while being equipped on lower head, to cause carrots to restore sp when consumed.

I made the function already:

515,Carrot,Carrot,0,15,,20,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(18,20),0; callfunc "zanabria"; },{},{}

 

Now I need help in this part:

function    script    zanabria    {
if (isequipped(18683)) specialeffect2 332;
itemheal rand(0,0),rand(2,4);
end;
}

This is the aditional sp restore effect while equiped, but I NEED help here for the else exception, because it sill restoring sp withput the equiped carrot in mouth.

 

 

 

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  218
  • Reputation:   152
  • Joined:  11/28/11
  • Last Seen:  

  for YML

- Id: 515
    AegisName: Carrot
    Name: Carrot
    Type: Healing
    Buy: 15
    Weight: 20
    Flags:
      BuyingStore: true
    Script: |
      itemheal rand(18,20),0;
      if (getequipid(EQI_HEAD_LOW) == 18683)
      itemheal 0,rand(2,4);

for TXT

515,Carrot,Carrot,0,15,,20,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(18,20),0; if (getequipid(EQI_HEAD_LOW) == 18683) itemheal 0,rand(2,4); },{},{}

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

dear Slammer!

 

Something went wrong, the item still restores sp without the gear equipped.

 

515,Carrot,Carrot,0,15,,20,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(18,20),0; if (getequipid(EQI_HEAD_LOW) == 18683) specialeffect2 332; if (getequipid(EQI_HEAD_LOW) == 18683) itemheal 0,rand(2,4); },{},{}

But I solved it by individualizing the effects separatedly.

Edited by iraciz
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

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