Jump to content
  • 0

help with this script


Question

Posted


OnMobDead:
announce ""+getmapmobs("phan_dun")+" Remaining Monster",bc_map|bc_blue;
if (getmapmobs("phan_dun") == 0) { 
enablenpc "bosswarp";
announce "The portal has now been opened!",bc_map|bc_blue;
end;
}

help with this script. The portal not showing when mobs get 0 help :(

12 answers to this question

Recommended Posts

Posted

here


Phantasia,150,28,4 script Selecta#1::course 100,{
if ( getgmlevel() >= 90 )goto L_Warper;
if ( #jongol == 0 ) goto L_Warper;
mes "[sealed Tite]";
mes "I think you are already done on this Dungeon";
close;

L_warper:
getpartymember(getcharid(1));
if ( $@partymembercount >= 1 )
{
mes "[selecta]";
mes "Do you want to warp?";
set #closes1,1;
disablenpc "bosswarp";
next;
menu "Yes. I want to go there.",yess,"No. I Don't wan to go there",noo;

noo:
close;

yess:
donpcevent "mons3::OnWelcomes";
donpcevent "mons3::OnWelcome";
set #jongol,1;
set #close,1;
warpparty "phan_dun",19,21,getcharid(1);
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",2391,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";
end;

OnMobDead:
announce ""+getmapmobs("phan_dun")+" Remaining Monster",bc_map|bc_blue;
if (getmapmobs("phan_dun") == 0) { 
enablenpc "bosswarp";
announce "The portal has now been opened!",bc_map|bc_blue;
end;
}

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

OnBossDead:
if (mobcount("phan_dun01", "mons3::L_Welcome") > 0){
announce "Kill the Hell Sieger",bc_map|bc_blue;
} else {
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

Posted (edited)

hmmm let me try it again. cuz when i try it before i only getting error

if (mobcount("phan_dun") == 0) { 

i got error on this line

Edited by bVersatile
Posted (edited)

/heh:D

is this right?

if (mobcount("phan_dun","OnMobDead") == 0) {

there are 90 mobs. in the map. when i kill 1 the warp open. /sob

he must kill all 90 mobs so the warp will open help!

Edited by bVersatile
Posted (edited)

i follow that

why i kill 1 the portal will open this is the script


OnMobDead:
if (mobcount("phan_dun","OnMobDead") > 90) {
announce ""+getmapmobs("phan_dun")+" Remaining Monster",bc_map|bc_blue;
} else {
enablenpc "bosswarp";
announce "The portal has now been opened!",bc_map|bc_blue;
end;
}

i use @killmonster

Edited by bVersatile
Posted (edited)

portal not showing :(


OnMobDead:
if (mobcount("phan_dun","OnMobDead") > 1) {
enablenpc "bosswarp";
announce "The portal has now been opened!",bc_map|bc_blue;
} else {
announce ""+mobcount("phan_dun","OnWelcomes")+" Remaining Monster",bc_map|bc_blue;
end;
}

i think in this line

Edited by bVersatile

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...