Jump to content
  • 0
Sign in to follow this  
1steric

World Drop Cash script

Question

hello,

 

this is rathena script

 

 

 

-    script    cash    -1,{
    end;

OnNPCKillEvent:
    if(getcharid(1))
    {
      addrid(2,0,getcharid(1));
    }
if(getmonsterinfo(killedrid,MOB_LV) >= 1) 
{
    if (rand(10000) <= 100) getitem 6623,1; // 100% 확률 하급마력석
    if (rand(10000) <= 300) getitem 673,1; // 3% 확률로 동화 1개 획득 
}
    if(getmonsterinfo(killedrid,MOB_LV) >= 200)
    {
    if (rand(10000) <= 100) getitem 6624,1; //중급마력석
    if (rand(10000) <= 500) getitem 984,1; //오리데오콘
    if (rand(10000) <= 500) getitem 985,1; //에르늄
    if (rand(10000) <= 200) getitem 675,1; // 2% 확률로 은화 1개 획득 
end;
    }
    else if(getmonsterinfo(killedrid,MOB_LV) > 250)
    {
    if (rand(10000) <= 100) getitem 6625,1; //상급마력석
    if (rand(10000) <= 300) getitem 7619,1; //농축에르늄
    if (rand(10000) <= 300) getitem 7620,1; //농축오리데오콘
    if (rand(10000) <= 100) getitem 671,1; // 1% 확률로 금화 1개 획득 
        end;
    }
    end;
}
 

 

world drop cash system,

party share drop

 

  addrid(2,0,getcharid(1));      <<-- this line error    addrid

 

Which syntax should be applied to the Hercules version to apply well?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
On 8/2/2020 at 2:34 PM, Ridley said:

hercules uses


attachrid

 

hello,

 

how to write script?

 

 attachrid(2,0,getcharid(1));     , error T^T

Share this post


Link to post
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.   Restore formatting

  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  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.