Jump to content

Recommended Posts

Posted

NIce but there's error. it's said npc_event: event not found [dup_1_11005724::OnMyMVPDead]

and there's is another error. map server has been disconnected from char server but it's reconnect immeadiately but it is still annoying...it's only me have this error?

Posted

NIce but there's error. it's said npc_event: event not found [dup_1_11005724::OnMyMVPDead]

and there's is another error. map server has been disconnected from char server but it's reconnect immeadiately but it is still annoying...it's only me have this error?

Regarding the event not found, that has been addressed in previous post in this same topic.

Regarding your map server disconnecting, I don't believe my script has anything to do with that.

  • 4 months later...
  • 2 weeks later...
Posted (edited)

Am I right doing this to disable drops during waves?

OnEnable:
enablenpc instance_npcname("#Initial Wave", instance_id());
set 'monscount, 300;

setmapflag "1@gvs5",mf_nomobloot;
setmapflag "1@gvs5",mf_nomvploot;

instance_announce 0,'monscount+" "+'chamonname$+" left",bc_map;
monster "1@gvs5",0,0,'chamonname$,'chamonid,30,instance_npcname("#Initial Wave", instance_id())+"::OnMyMobDead";
end;

and


OnMyMVPDead:
instance_announce 0,'npcname$+" : Congratulations! The treasure chest is yours!",bc_map;


removemapflag "1@gvs5",mf_nomobloot;
removemapflag "1@gvs5",mf_nomvploot;

getpartymember('party_id);
set 'trecount,$@partymembercount * 'rewardcount;
for( set 'i, 0; 'i < ($@partymembercount * 'rewardcount); set 'i, 'i +1 ) {
set 'randnum,rand(getarraysize('chamonid5));
monster "1@gvs5",44 + 'i,40,"Treasure Chest",'chamonid5['randnum],1,instance_npcname("#MvP Summoner", instance_id())+"::OnChestBreak";
}
end;

Edited by darristan
Posted

Thank you for sharing a kind of script.

I will post the outcome as soon as I test it on my server.

P.S.

As far as I read through threads in rAthena, a simple "thank you" is not enough for the authorities or with prior knowledge to scripting. Keep up the good work. Please stay on being generous.

  • Upvote 1
  • 1 month later...
  • 2 months later...
Posted

Is there a possible way to remove the Dropped Items from the Mobs?..

After line 250, add this:

atcommand "@mapflag nomobloot 1";

atcommand "@mapflag nomvploot 1";

After line 379, add this:

atcommand "@mapflag nomobloot 0";

atcommand "@mapflag nomvploot 0";

^This will effectively remove and readd the 'noloot' mapflag from an instanced map.

Lol, came up with the cleanest answer to an 11 month old question X.x

  • Upvote 1
  • 8 months later...
Posted (edited)

I have Error


 

 

   156 :        }
   157 :
   158 :        mes "[ ^0033CC"+.@npcname$+"^000000 ]";
   159 :        mes "Don't die kid!";
   160 :        mes "You and your party will be warped immediately.";
*  161 :        set .@instance,instance_create("300 Monsters"','.@party_id);
   162 :
   163 :        if ( .@instance < 0 ) {
   164 :                next;
   165 :                mes "[ ^0033CC"+.@npcname$+"^000000 ]";
   166 :                mes "Something seemed to have went awry...";

 

after i check at rathena wiki about instance_create, it seems it have only 1 parameter http://rathena.org/wiki/Instance_create. but this code use 2?

Edited by nobukadnezar
  • 2 weeks later...
  • 2 months later...
  • 4 months later...
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...