Jump to content
  • 0

help with this script


PewN

Question


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  


yess:
set #jongol,1;
set #close,1;
warpparty "phan_dun",19,21,getcharid(1);
if ( #close == 1 ) goto L_selecta;
donpcevent "mons3::OnWelcomes";
end;
}
mes "Only party with at least 1 members are allowed to enter.";
close;


L_selecta:
close;
}


- script mons3 -1,{

OnWelcomes:
monster "phan_dun",0,0,"Hell Randgris",2621,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Hell Apocalypse",2622,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Hell Bomb Poring",2623,10,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Hell Heavy Metaling",2624,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Hell Gloom",2625,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Hell Fallen Bishop",2626,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Hell Atroce",2627,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Hell Berzebub",2628,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Hell Baphomet",2629,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Hell Gloom",2630,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,Barbossa,2392,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Black Lost Dragon",2395,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,Daehyon,2407,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Magical Misc",2424,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Gold Boitata",2431,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Gold Lost Dragon",2432,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,Krakken,2447,5,strnpcinfo(3)+"::OnMobDead";
monster "phan_dun",0,0,"Queen Scaraba",2442,5,strnpcinfo(3)+"::OnMobDead";
disablenpc "bosswarp";
end;

OnMobDead:
if (mobcount("phan_dun", "mons3::OnWelcomes") > 0) goto L_announce;
announce "The portal has now been opened!",bc_map|bc_blue;
enablenpc "bosswarp";
donpcevent "mons3::L_Boss";
end;

L_Boss:
monster "phan_dun01",0,0,"Hell Sieger",2620,1,strnpcinfo(3)+"::OnBossDead";
end;



OnBossDead:
if (mobcount("phan_dun01", "mons3::OnWelcomes") > 0){
announce "You are successfully defeat the Boss Monster",bc_map|bc_blue;
end;


L_announce:
announce "" + mobcount("phan_dun", "mons3::OnMob") + " Remaining monster, you need to kill all monster",bc_map|bc_blue;
end;

}
}
phan_dun,64,99,0 warp bosswarp 2,2,phan_dun01,65,61

what's wrong with this script. monster are not spawning :( please help

no error on mapserver

Edited by bVersatile
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

interchange these two lines

if ( #close == 1 ) goto L_selecta;

donpcevent "mons3::OnWelcomes";

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

oh THX :D its working now.

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