[Error]: npc_enable: Attempted to show a non-existing NPC 'Rune of War#WoR' (flag=2).
[Error]: npc_enable: Attempted to show a non-existing NPC 'Rune of War#Banker' (flag=2).[/quote]
Here's my script
[quote]//===== eAthena Script =======================================
//= Rune of War
//===== By: ==================================================
//= WanMan or Katazui or Kaji
//===== Server ==============================================
//= For lightrogaming-network.tk
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= eAthena 7.15 +
//===== Description: =========================================
//= Rune of War is for Party of 10
//===== Additional Comments: =================================
//= Starts Every 2 Hours
//============================================================
- script WoR#disable -1,{
OnInit:
hideoffnpc "Rune of War#WoR";
hideoffnpc "Rune of War#banker";
end;
}
- script WoRannouncer -1,{
goto L_play;
L_play:
OnHour2:
pvpoff "guild_vs1";
killmonsterall "guild_vs1";
announce "WoR: Hello! It's time again for Rune of War",0;
sleep2 10000;
announce "WoR: Please Register in Prontera! I will not let anyone register after 3 minute.",0;
hideonnpc "Rune of War#WoR";
sleep2 10000;
announce "WoR: Prize will be 100 points for each person in the team. Talk to me in Prontera",0;
OnMinute01:
announce "WoR: 2 more minute(s) till Closing time.",0;
OnMinute02:
announce "WoR: 1 more minute(s) till Closing time.",0;
OnMinute03:
announce "WoR: Closed. Next Round is in 2 Hours.",0;
hideoffnpc "Rune of War#WoR";
donpcevent "Rune of War#banker::L_playwor";
end;
}
prontera,147,168,6 script Rune of War#WoR 753,{
mes "[Rune of War]";
mes "Hello!";
mes "Would you like to register for Rune of War?";
menu "Sure",L_yes,"No Thanks",L_close,"Information",L_info;
L_info:
next;
mes "Script Made by: GM Katazui";
next;
mes "[Rune of War]";
mes "You will be put on 2 teams randomly.";
mes "All you have to do is Kill the each other.";
mes "Last Team Wins.";
mes "Would you like to register?";
menu "Sure",L_yes,"No Thanks",L_close;
L_yes:
switch (rand(1)) {
case 0:
mes "[Rune of War]";
mes "You are put on Red team";
set cloth dye red;
global_colour = 1;
set @$n,1;
set red,1;
break;
case 1:
mes "[Rune of War]";
mes "You are put on Blue team";
set cloth dye blue;
global_colour = 0;
set blue,1;
break;
next;
goto L_p11;
end;
L_close:
mes "[Rune of War]";
mes "Okay, Come back later!";
next;
close;
end;
L_p11:
mes "[Rune of War]";
mes "Alrightly!";
mes "Please wait till the other people comes to the WoR.";
next;
warp "bat_b02",199,180;
end;
}
guild_vs1,50,57,4 script Rune of War#banker 753,{
OnTouch:
mapannounce "bat_b02","WoR: To get your prize please kill 1 Poring. If you don't kill it after 1 minute. You will not get your prize.",0;
monster guild_vs1,0,0,"Prize",1002,150,"prize::OnMobKilled";
if (set(red) == 1) announce "WoR: The Red team has won!",0;
if (set(blue) == 1) announce "WoR: The Blue team has won!",0;
OnMinute1:
mapwarp "bat_b02","prontera",150,150;
end;
//play Time
L_playwor:
mapannounce "bat_b02","WoR: Welcome to WoR!",0;
sleep2 10000;
mapannounce "bat_b02","WoR: It's Simple... All you have to do it kick each other asses.",0;
sleep2 10000;
mapannounce "bat_b02","WoR: You may use Ygg Berrys, and make sure you buff up...",0;
sleep2 10000;
mapannounce "bat_b02","WoR: If one of your team mates dies, and the rest wins. The one who dies doesn't get the prize.",0;
sleep2 10000;
mapannounce "bat_b02","WoR: If your Team wins, PLEASE! One person talk to me, or you will ERROR!!!",0;
sleep2 10000;
mapannounce "bat_b02","WoR: Okay... That's that....",0;
sleep2 10000;
mapannounce "bat_b02","WoR: Ready... Set...",0;
sleep2 10000;
mapannounce "bat_b02","WoR: FIGHT!!!",0;
pvpon "guild_vs1";
goto L_if;
L_if:
if (getmapusers("bat_b02") <= "+@$n+") goto L_champ;
if (getmapusers("bat_b02") == 0) goto L_no1;
goto L_if;
end;
L_no1:
announce "WoR: Aww! No one won! Or No one joined... What a Pity.",0;
donpcevent "WoRannouncer::L_play";
end;
L_champ:
hideonnpc "Rune of War#banker";
mapannounce "bat_b02","WoR: Someone please talk to me. ONLY 1 OR YOU WILL ERROR!",0;
sleep2 10000;
mapwarp "bat_b02",199,180;
donpcevent "WoRannouncer::L_play";
end;
}
- script prize -1,{
OnMobKilled:
if (killedrid ==1002 && strcharinfo(3)=="bat_b02"){
set #CASHPOINTS,#CASHPOINTS+100;
end;
} else {
end;
}
OnPCKillEvent:
set @$n,0;
set blue,0;
set red,0;
end;
}
bat_b02 mapflag nowarp
bat_b02 mapflag nowarpto
bat_b02 mapflag noteleport
bat_b02 mapflag nosave
bat_b02 mapflag nomemo
bat_b02 mapflag nobranch
Question
eJay
Codeboxed
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.