Jump to content
  • 0

Auto event


busterdemon

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  93
  • Reputation:   1
  • Joined:  06/01/12
  • Last Seen:  

Hello Rathena, I would like to request a script that will automaticaly broadcast and summon a poring who only drops a poring coin #7539 in prontera every hour!

Thanks! Please tell me if I have to do any server configuration, I guess I have to create a new poring mob who only drops that item right? Can you also tell me how?

Link to comment
Share on other sites

14 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

- script PoringEvent -1,{
OnMinute00:
  monster "prontera",0,0,"Poring",1002,1,strnpcinfo(3)+"::OnPoringDead";
  announce "A special poring has spawned in Prontera!",0;
  end;
OnPoringDead:
  // announce strcharinfo(0)+" has killed the Poring!",0;
  getitem 7539,1;
  end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  93
  • Reputation:   1
  • Joined:  06/01/12
  • Last Seen:  

Thank you Euphy your the best!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   7
  • Joined:  10/08/12
  • Last Seen:  

@Euphy can I pls ask for a minor revision of this??? I want the mob to be a random MVP probably like have an editable list of ID MVP monsters ...THX n Advance!!!

Edited by miczster
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  161
  • Reputation:   31
  • Joined:  12/06/11
  • Last Seen:  

- script PoringEvent -1,{

OnMinute00:
    monster "prontera",0,0,"--Ja--",.mobs[rand(getarraysize(.mobs))],1,strnpcinfo(3)+"::OnMobDead";
    announce "A special poring has spawned in Prontera!",0;
    end;
OnPoringDead:
    // announce strcharinfo(0)+" has killed the Poring!",0;
    getitem 7539,1;
    end;

OnInit:
    setarray .mobs[0],1002,1003,1004; //etc.
    end;
}
 
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

strnpcinfo(3)+"::OnMobDead";

should be

strnpcinfo(3)+"::OnPoringDead";

according to your script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  161
  • Reputation:   31
  • Joined:  12/06/11
  • Last Seen:  

Merely forgot to change the OnXEvent, I copied this from Euphy's script same goes for the dialogue :P.

Edited by Jeroen
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   7
  • Joined:  10/08/12
  • Last Seen:  

ohh thx for this...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

- script PoringEvent -1,{

OnMinute00:
    monster "prontera",0,0,"--Ja--",.mobs[rand(getarraysize(.mobs))],1,strnpcinfo(3)+"::OnMobDead";
    announce "A special poring has spawned in Prontera!",0;
    end;
OnPoringDead:
    // announce strcharinfo(0)+" has killed the Poring!",0;
    getitem 7539,1;
    end;

OnInit:
    setarray .mobs[0],1002,1003,1004; //etc.
    end;
}
 

can you pls add and make it random town pls(editable list)??THXX

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  


- script PoringEvent -1,{

OnMinute00:

monster .maps$[(rand(getarraysize(.maps$)))],0,0,"--Ja--",.mobs[rand(getarraysize(.mobs))],1,strnpcinfo(3)+"::OnMobDead";

announce "A special poring has spawned in "+.maps[(rand(getarraysize(.maps$)))]+"!",0;

end;

OnPoringDead:

// announce strcharinfo(0)+" has killed the Poring!",0;

getitem 7539,1;

end;

OnInit:

setarray .mobs[0],1002,1003,1004; //etc.

setarray .maps$[0],"prontera","morocc","payon";

end;

}

Edited by nanakiwurtz
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

@nanakiwurtz

strnpcinfo(3)+"::OnMobDead";

should be

strnpcinfo(3)+"::OnPoringDead";

according to your script

Don't forget this part too Lol

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

@nanakiwurtz THX for this..



@Capuche Thx for the look up...

Edited by hyuna
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Ahhh Capuche, you got me again :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  05/31/13
  • Last Seen:  

WHERE WILL I PUT THIS?
Trunk>NPC>Custom..???

sorry im newbie  /sob
 



- script PoringEvent -1,{

OnMinute00:
monster .maps$[(rand(getarraysize(.maps$)))],0,0,"--Ja--",.mobs[rand(getarraysize(.mobs))],1,strnpcinfo(3)+"::OnPoringDead";
announce "A special poring has spawned in "+.maps[(rand(getarraysize(.maps$)))]+"!",0;
end;
OnPoringDead:
// announce strcharinfo(0)+" has killed the Poring!",0;
getitem 7539,1;
end;

OnInit:
setarray .mobs[0],1002,1003,1004; //etc.
setarray .maps$[0],"prontera","morocc","payon";
end;
}
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Some reading : Adding_a_Script

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