• 0
Sign in to follow this  
HRstaff

Need help with elemental sword callfunc

Question

Hello, I would like my elemental sword to not be stack-able.

In order to do so, i found a script on rathena which I reproduced on one of my script : 

function script test {
   set [email protected], (getequipid(3)==13414?1:0)+(getequipid(4)==13414?1:0);

       if([email protected]==1) {
       bonus3 bAutoSpell,"MG_COLDBOLT",3,50;
       bonus4 bAutoSpellOnSkill,"MG_COLDBOLT","MG_FIREBOLT",3,1000;
       bonus4 bAutoSpellOnSkill,"MG_FIREBOLT","MG_LIGHTNINGBOLT",3,10000;
       bonus4 bAutoSpellOnSkill,"MG_LIGHTNINGBOLT","WZ_EARTHSPIKE",3,10000;
       }

   if([email protected] > 0){
       bonus bStr,2;
       bonus bInt,4;
       bonus bDex,1;
       bonus bMatkRate,5;
       bonus2 bAddEle,Ele_Neutral,10;

   }

    end;
}

I tried reproducing it by changing item_db.conf, I changed the script of elemental sword :      Script: <"callfunc "elemental";  ">

But I get the following error : 

580944439_Sanstitre.png.122bbbe650ee38457c0fef0fe1c23b8d.png

I'm guessing the rathena code is depreciated or not compatible with hercules. But does someone have an idea how to fix it ? If you have another way to prevent elemental sword from being stack-able, i'd really like to hear it otherwise. 

Thanks a lot

Edited by HRstaff

Share this post


Link to post
Share on other sites

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

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.

Loading...
Sign in to follow this