Also not big but, it was supposed to broadcast the name of the player but it's not working.
the script:
OnStart:
donpcevent "NVS::OnTimer1800000"; set (.mobid,3000); //Monster ID set (.mobname$,"Monster"); //Monster Name set (.moba,rand(5,25)); //Monster Anzahl QT set .@rand,rand(1,19); if (.@rand == 1) set .map$,"prontera"; if (.@rand == 2) set .map$,"geffen"; if (.@rand == 3) set .map$,"dewata"; if (.@rand == 4) set .map$,"payon"; if (.@rand == 5) set .map$,"aldebaran"; if (.@rand == 6) set .map$,"izlude"; if (.@rand == 7) set .map$,"lighthalzen"; if (.@rand == 8) set .map$,"yuno"; if (.@rand == 9) set .map$,"alberta"; if (.@rand == 10) set .map$,"gonryun"; if (.@rand == 11) set .map$,"comodo"; if (.@rand == 12) set .map$,"amatsu"; if (.@rand == 13) set .map$,"louyang"; if (.@rand == 14) set .map$,"morocc"; if (.@rand == 15) set .map$,"rachel"; if (.@rand == 16) set .map$,"brasilis"; if (.@rand == 17) set .map$,"ayothaya"; if (.@rand == 18) set .map$,"moscovia"; if (.@rand == 19) set .map$,"einbroch"; sleep2 1000; announce ("[Event]: Warning! "+.moba+" "+.mobname$+" invaded "+.map$+"",bc_all); monster(.map$,0,0,.mobname$,.mobid,.moba,"NVS::OnMyMobDead"); set .mob_left,.moba; sleep2 1798000; donpcevent "NVS::OnTimer1800000"; end;
OnTimer1800000:
killmonster .map$,"NVS::OnMyMobDead";
set .mob_left,0;
end;
OnStop2:
killmonster .map$,"NVS::OnMyMobDead";
announce "Our defenses were able to terminate the remaining monsters.",bc_all;
set .mob_left,0;
end;
OnStop:
sleep2 2000;
announce "[Event]: The next event will start in 4 hours.",bc_all;
end;
OnMyMobDead:
getitem 40109,1;
set .mob_left,.mob_left-1;
if (.mob_left == 0) {
announce "[Event]: "+strcharinfo(0)+" has terminated the last "+.mobname$+".",bc_all;
mes "I can warp you to any town or dungeon, but you need to unlock them first by visiting us.";
mes "What do you need?";
if(getarg(0) == 0) callfunc "QWS_MMarray",0;
if(getarg(0) == 1) callfunc "QWS_MMarray",1;
set @MMenu,select(@Mmenulist$[0],@Mmenulist$[1],@Mmenulist$[2],@Mmenulist$[3],@Mmenulist$[4],@Mmenulist$[5],@Mmenulist$[6],@Mmenulist$[7],@Mmenulist$[8],@Mmenulist$[9],@Mmenulist$[10],@Mmenulist$[11],@Mmenulist$[12]);
switch(@Mmenuref[@MMenu-1]+1){
case 1: goto GM_Menu;
case 2:
warp $QW_SP_WarpMap$, $QW_SP_WarpX, $QW_SP_WarpY;
close2;
debugmes "Please check your special warp menu settings on the Warpra.";
case 0: mes "You don't seem to have "+@pTprice[@Tmenuref[@TWMenu-1]]+" zeny to pay for the warp to "+@pTmenuitems$[@Tmenuref[@TWMenu-1]]+"."; break;
case 1: mes "You don't seem to have "+@warpprice+" zeny to pay for the warp to "+@DLevelName$[@DWLmenuref[@DWLMenu-1]]+" at "+@pDmenuitems$[@Dmenuref[@DWMenu-1]]+"."; break;
case 2: mes "You don't seem to have "+@fee+" zeny to pay the storage fee."; break;
case 3: mes "You don't seem to have "+$QW_GS_PRICE+" zeny to pay the guild storage fee."; break;
case 4: mes "You don't seem to have "+@healfee+" zeny to pay for your healing."; break;
setarray @pMmenuitems$[0], "GameMaster Menu", $QW_SP_Warpname$, "Warp to Towns", "Warp to Dungeons", "Why so few warps?", "Why don't you unlock this location?", "Heal", "Heal", "Storage", "Guild Storage", "Pvp Warp", "Cancel";
set @Mi,0; // loop counter
set @Mj,0; // menu line counter
//----------------GameMaster-Menu
if (getgmlevel()>= 80) {
set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
set @Mmenuref[@Mj],@Mi;
set @Mj,@Mj+1;
}
set @Mi,@Mi+1;
//----------------Special-Warp
callfunc "QWS_TownStamps";
callfunc "QWS_DungeonStamps";
if (@Tstamp == @MaxTstamp)&&(@Dstamp == @MaxDstamp)&&($QW_SP_WarpMap$ != "") {
Question
Saisho
Can someone point me why im getting this error?
Also not big but, it was supposed to broadcast the name of the player but it's not working.
the script:
OnStart:
donpcevent "NVS::OnTimer1800000";
set (.mobid,3000); //Monster ID
set (.mobname$,"Monster"); //Monster Name
set (.moba,rand(5,25)); //Monster Anzahl QT
set .@rand,rand(1,19);
if (.@rand == 1) set .map$,"prontera";
if (.@rand == 2) set .map$,"geffen";
if (.@rand == 3) set .map$,"dewata";
if (.@rand == 4) set .map$,"payon";
if (.@rand == 5) set .map$,"aldebaran";
if (.@rand == 6) set .map$,"izlude";
if (.@rand == 7) set .map$,"lighthalzen";
if (.@rand == 8) set .map$,"yuno";
if (.@rand == 9) set .map$,"alberta";
if (.@rand == 10) set .map$,"gonryun";
if (.@rand == 11) set .map$,"comodo";
if (.@rand == 12) set .map$,"amatsu";
if (.@rand == 13) set .map$,"louyang";
if (.@rand == 14) set .map$,"morocc";
if (.@rand == 15) set .map$,"rachel";
if (.@rand == 16) set .map$,"brasilis";
if (.@rand == 17) set .map$,"ayothaya";
if (.@rand == 18) set .map$,"moscovia";
if (.@rand == 19) set .map$,"einbroch";
sleep2 1000;
announce ("[Event]: Warning! "+.moba+" "+.mobname$+" invaded "+.map$+"",bc_all);
monster(.map$,0,0,.mobname$,.mobid,.moba,"NVS::OnMyMobDead");
set .mob_left,.moba;
sleep2 1798000;
donpcevent "NVS::OnTimer1800000";
end;
Err... this one too plz?
It works fine but the menu shows 2 "PvP warp" options at the end...
Another question is anybody have idea why my custom warps are not auto loaded?They works fine but i have to load it manually by @command or transfer the data to another file that auto load.NVM just a typoLink to comment
Share on other sites
0 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.