Jump to content
Elixir

[Error]NPC Script

Recommended Posts

[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/other/jumper_event.txt',

line '162'. Stopping...

* w1=- script Jumper -1,{

* w2=

* w3=

* w4=

[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/other/find_the_mushroom.t

xt', line '6'. Stopping...

* w1=splendide,185,200,4 script Find the Mushroom 1084,{

* w2=

* w3=

* w4=

eto po ung npc's

Jumper Event:

//==========================================================//
//========= Script by RyCHIRO	   =========//
//========= [url="http://reincarnation-network.com"]http://reincarnation-network.com[/url]	=========//
//========= [url="http://chiyan-ro.com"]http://chiyan-ro.com[/url]	   =========//
//==========================================================//
- script jumpevent -1,{
OnWhisperGlobal:
if ( getgmlevel() < 99 ) end;
L_JumpAdmin:
mes "[Manager]";
mes "^FF0000~Hi GM " + strcharinfo(0) + "!~^000000";
mes "^FF0000The Current Prize is:^000000";
mes "^FF00001. Random Prize:^000000 ^008000"+$jmp_item_amount1+" "+getitemname($jmp_item_id1)+"^000000";
mes "^FF00002. Random Prize:^000000 ^008000"+$jmp_item_amount2+" "+getitemname($jmp_item_id2)+"^000000";
mes "^FF00003. Random Prize:^000000 ^008000"+$jmp_item_amount3+" "+getitemname($jmp_item_id3)+"^000000";
switch(select("Start Jump Event?:Set Prize:Not today Fellas!")){
 case 1:
  next;
  if( [email protected] == 1 ){
  mes "[Manager]";
  mes "I Can't Start The Event!!";
  mes "The Event is still ON!!";
  next;
  goto L_JumpAdmin;
  }
  next;
  mes "[Manager]";
  mes "^FF0000~Sure thing!~^000000";
  close2;
  goto L_StartJmp;
 case 2:
  next;
  mes "[Manager]";
  mes "^FF0000~What should the prize for winning be? Please input the ID.~^000000";
  menu "Set Prize 1",SP1,"Set Prize 2",SP2,"Set Prize 3",SP3,"Go Back to main",L_JumpAdmin;
 SP1:
 next;
 mes "[Manager]";
 mes "^FF0000~What should the prize for winning be? Please input the ID.~^000000";
 input $jmp_item_id1;
 next;
 mes "[Manager]";
 mes "^FF0000~How many if this item should I give away?~^000000";
 input $jmp_item_amount1;
 next;
 mes "[Manager]";
 mes "^FF0000~So, the prize is^000000 ^008000"+ $jmp_item_amount1 +" "+ getitemname($jmp_item_id1)   +"^000000? ^FF0000Great.~^000000";
 next;
 goto L_JumpAdmin;
 SP2:
 next;
 mes "[Manager]";
 mes "^FF0000~What should the prize for winning be? Please input the ID.~^000000";
 input $jmp_item_id2;
 next;
 mes "[Manager]";
 mes "^FF0000~How many if this item should I give away?~^000000";
 input $jmp_item_amount2;
 next;
 mes "[Manager]";
 mes "^FF0000~So, the prize is^000000 ^008000"+ $jmp_item_amount2 +" "+ getitemname($jmp_item_id2)   +"^000000? ^FF0000Great.~^000000";
 next;
 goto L_JumpAdmin;
 SP3:
 next;
 mes "[Manager]";
 mes "^FF0000~What should the prize for winning be? Please input the ID.~^000000";
 input $jmp_item_id3;
 next;
 mes "[Manager]";
 mes "^FF0000~How many if this item should I give away?~^000000";
 input $jmp_item_amount3;
 next;
 mes "[Manager]";
 mes "^FF0000~So, the prize is^000000 ^008000"+ $jmp_item_amount3 +" "+ getitemname($jmp_item_id3)   +"^000000? ^FF0000Great.~^000000";
 next;
 goto L_JumpAdmin;
 Case 3:
  next;
  mes "[Manager]";
  mes "Bye!!";
  close;
 }// End Admin Manager...
OnMinute46:
L_StartJmp:
announce "Jumper Event: Jumper Event will begin in 20 seconds",bc_blue;
sleep2 5000;
announce "Jumper Event: I'm Going to JUMP somewhere..!!",bc_blue;
sleep2 5000;
announce "Jumper Event: By the way I'm going to disguise into a random monster.!!",bc_blue;
sleep2 10000;
announce "Jumper Event: Last 10 seconds",bc_blue;
sleep2 10000;
set [email protected], rand(1,10);
if ([email protected] == 10) set [email protected]$,"hugel";
if ([email protected] == 9) set [email protected]$,"yuno";
if ([email protected] == 8) set [email protected]$,"comodo";
if ([email protected] == 7) set [email protected]$,"xmas";
if ([email protected] == 6) set [email protected]$,"aldebaran";
if ([email protected] == 5) set [email protected]$,"izlude";
if ([email protected] == 4) set [email protected]$,"payon";
if ([email protected] == 3) set [email protected]$,"geffen";
if ([email protected] == 2) set [email protected]$,"morocc";
if ([email protected] == 1) set [email protected]$,"prontera";
announce "Jumper Event: Go Find me!! I'm here in "[email protected]$+"!!!",bc_blue;
set [email protected],10;
goto onstart;
onstart:
if ([email protected] == 0){
stopnpctimer;
set [email protected],0;
sleep2 3000;
announce "Jumper Event: Jumper Event is now OVER!!",bc_blue;
sleep2 15000;
movenpc "Jumper"[email protected]+"",1,1; //move the NPC
setnpcdisplay "Jumper"[email protected]+"",1002;
end;
}
if ([email protected] == 10){
goto onstart2;
}
stopnpctimer;
sleep2 3000;
announce "Jumper Event: Next Round will begin in 15 seconds...",bc_blue;
sleep2 15000;
setnpcdisplay "Jumper"[email protected]+"",1002;
movenpc "Jumper"[email protected]+"",1,1; //move the NPC
set [email protected], rand(1,10);
if ([email protected] == 10) set [email protected]$,"hugel";
if ([email protected] == 9) set [email protected]$,"yuno";
if ([email protected] == 8) set [email protected]$,"comodo";
if ([email protected] == 7) set [email protected]$,"xmas";
if ([email protected] == 6) set [email protected]$,"aldebaran";
if ([email protected] == 5) set [email protected]$,"izlude";
if ([email protected] == 4) set [email protected]$,"payon";
if ([email protected] == 3) set [email protected]$,"geffen";
if ([email protected] == 2) set [email protected]$,"morocc";
if ([email protected] == 1) set [email protected]$,"prontera";
announce "Jumper Event: Go Find me!! I'm here in "[email protected]$+"!!!",bc_blue;
goto onstart2;
onstart2:
set $monster, rand(1001,1995);
if($monster == 1003 || $monster == 1218 || $monster == 1006 || $monster == 1017 || $monster == 1021 || $monster == 1022 || $monster == 1027 || $monster == 1043 || $monster == 1006 || $monster == 1136 || $monster == 1137 || $monster == 1168 || $monster == 1171 || $monster == 1172 || $monster == 1173 || $monster == 1181 || $monster == 1210 || $monster == 1223 || $monster == 1284 || ($monster >= 1324 && $monster <= 1363) || $monster == 1006 || $monster == 1407 || $monster == 1411 || $monster == 1414 || $monster == 1496 || $monster == 1501 || $monster == 1900){ goto onstart2; end; }
while(1) { //Initiate an infinite loop
set [email protected],rand(0,300); //Set a randon X coordinate
set [email protected],rand(0,300); //Set a random Y coordinate
if(checkcell(""[email protected]$+"",[email protected],[email protected],cell_chkpass)) break; //If cell is walkable break out of the loop
}
initnpctimer;
set [email protected],1;
movenpc "Jumper"[email protected]+"",[email protected],[email protected]; //move the NPC
setnpcdisplay "Jumper"[email protected]+"",$monster;
set [email protected],[email protected];
end;
OnTimer60000:
set [email protected],0;
announce "Jumper Event: WOW no One Found ME!! I'm here in "[email protected]$+" "[email protected]+" "[email protected]+"!!",bc_blue;
sleep2 3000;
donpcevent "jumpevent::onstart";
end;
}//End Script
- script Jumper -1,{
if( [email protected] == 0 ){
mes "[Jumper Event]";
mes "I'm sorry, Someone Found me..";
close;
}
set [email protected], rand(1,100);
if ( [email protected] <= 50 ){
set [email protected],0;
getitem $jmp_item_id1,$jmp_item_amount1;
announce "• SP-John Best •: "+strcharinfo(0)+" is the WINNER!! I'm here in "[email protected]$+" "[email protected]+" "[email protected]+"!!",bc_blue;
donpcevent "jumpevent::onstart";
mes "[Jumper Event]";
mes "WOW you found me!!";
mes "Take this as a REWARD!!";
mes "You got ^008000"+ $jmp_item_amount1 +" "+ getitemname($jmp_item_id1) +"^000000";
close;
end;
}
set [email protected], rand(1,100);
if ( [email protected] <= 49 ){
set [email protected],0;
getitem $jmp_item_id2,$jmp_item_amount2;
announce "Jumper Event: "+strcharinfo(0)+" is the WINNER!! I'm here in "[email protected]$+" "[email protected]+" "[email protected]+"!!",bc_blue;
donpcevent "jumpevent::onstart";
mes "[• SP-John Best •]";
mes "WOW you found me!!";
mes "Take this as a REWARD!!";
mes "You got ^008000"+ $jmp_item_amount2 +" "+ getitemname($jmp_item_id2) +"^000000";
close;
end;
}
set [email protected], rand(1,100);
if ( [email protected] <= 48 ){
set [email protected],0;
getitem $jmp_item_id3,$jmp_item_amount3;
announce "Jumper Event: "+strcharinfo(0)+" is the WINNER!! I'm here in "[email protected]$+" "[email protected]+" "[email protected]+"!!",bc_blue;
donpcevent "jumpevent::onstart";
mes "[Jumper Event]";
mes "WOW you found me!!";
mes "Take this as a REWARD!!";
mes "You got ^008000"+ $jmp_item_amount3 +" "+ getitemname($jmp_item_id3) +"^000000";
close;
end;
}
}//End Script
prontera,1,1,1 duplicate(Jumper) Jumper1 1002
morocc,1,1,1 duplicate(Jumper) Jumper2 1002
geffen,1,1,1 duplicate(Jumper) Jumper3 1002
payon,1,1,1 duplicate(Jumper) Jumper4 1002
izlude,1,1,1 duplicate(Jumper) Jumper5 1002
aldebaran,1,1,1 duplicate(Jumper) Jumper6 1002
xmas,1,1,1 duplicate(Jumper) Jumper7 1002
comodo,1,1,1 duplicate(Jumper) Jumper8 1002
yuno,1,1,1 duplicate(Jumper) Jumper9 1002
hugel,1,1,1 duplicate(Jumper) Jumper10 1002

Find The Mushroom:

//Created by marikitangakak
//Edited and Revised by Lunar from MoonlightRO
//Original Link: [url="http://www.eathena.ws/board/index.php?showtopic=243601"]http://www.eathena.w...howtopic=243601[/url]
//Edited and Revised Script Link: [url="http://www.eathena.ws/board/index.php?showtopic=243753"]http://www.eathena.w...howtopic=243753[/url]
//Please do not take this script as your own.
splendide,185,200,4 script Find the Mushroom 1084,{
mes "[ Find The Mushroom ]";
if(getgmlevel() < 50) {
if(.Event==0) mes "There is no Find the Mushroom event.";
else {
 mes "There is a Find the Mushroom event on now!";
 mes "Location: "+ .Map$;
 mes "Prize: " + getitemname(.ItemID);
 mes "Number of Mushrooms: " + .Mushrooms;
}
close;
}
mes "Hello "+strcharinfo(0)+"! Please customize this event:";
Main:
next;
mes "[ Find The Mushroom ]";
switch(select("Item [" + getitemname(.ItemID) + "]:Start Event:End Event")) {
 case 1:
  mes "Which item would you like the Mushroom to drop?";
  mes "Please input the item ID:";
  input .ItemID;
  goto Main;
 case 2:
  mes "Starting the event now...";
  set .Event,1;
  close2;
  goto onstart;
 case 3:
  mes "Ending the event now...";
  if(.Event) announce ""+strcharinfo(0)+" ended Find the Mushroom Event!",bc_all;
  killmonster  .Map$,"All";
  set .Event,0;
 close;
}
OnMinute51: //CHANGE THIS TO THE MINUTE YOU WOULD LIKE THIS EVENT TO LOAD!
OnMinute20:
onstart:
announce "Find the Mushroom : It's time to play Find the Mushroom!",0;
sleep2 1000;
set [email protected], rand(1,11);
if ([email protected] == 11) set .Map$,"splendide";
if ([email protected] == 10) set .Map$,"hugel";
if ([email protected] == 9) set .Map$,"yuno";
if ([email protected] == 8) set .Map$,"comodo";
if ([email protected] == 7) set .Map$,"xmas";
if ([email protected] == 6) set .Map$,"aldebaran";
if ([email protected] == 5) set .Map$,"izlude";
if ([email protected] == 4) set .Map$,"payon";
if ([email protected] == 3) set .Map$,"geffen";
if ([email protected] == 2) set .Map$,"morocc";
if ([email protected] == 1) set .Map$,"prontera";
sleep2 1000;
set [email protected], rand(1,5);
if ([email protected] == 5) set .Mushrooms,"5";
if ([email protected] == 4) set .Mushrooms,"4";
if ([email protected] == 3) set .Mushrooms,"3";
if ([email protected] == 2) set .Mushrooms,"2";
if ([email protected] == 1) set .Mushrooms,"1";
announce "Find the Mushroom : The Mushroom has spawned in "+ .Map$ +"!",0;
sleep2 10000;
announce "Find the Mushroom : " + .Mushrooms + " Mushrooms have spawned in "+ .Map$ +"!",0;
sleep2 10000;
monster .Map$,0,0,"Don't kill me please!",1084,.Mushrooms,"Find the Mushroom::OnMobKilled";
end;
OnMobKilled:
mapannounce .Map$,"We've got a winner: " + strcharinfo(0) + " Congrats!",0;
set zeny,zeny+10000000;
getitem .ItemID,2;
set .Event,0;
end;
}
prontera,136,171,4 script Super Mario... 1084,{
mes "[Mushroom]";
mes "Hi, look at you chat window!";
dispbottom "Where's Mario? MEXICO!!";
close;
}

Edited by KeiKun
Code to Codebox
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
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.



×
×
  • Create New...

Important Information

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