1steric 0 Posted August 1, 2020 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? Quote Share this post Link to post Share on other sites
0 Ridley 295 Posted August 2, 2020 hercules uses attachrid Quote Share this post Link to post Share on other sites
0 1steric 0 Posted August 4, 2020 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 Quote Share this post Link to post Share on other sites
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