Jump to content
  • 0

[Help] OnInit won't work


Zac

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   4
  • Joined:  01/25/12
  • Last Seen:  

I'm making a script where the players finished the chat with "Zei" the NPC it will warp the party into job_thief1, and I'm using "donpcevent" to activate "OnInit" but seems like it wont work. any help? thanks /ok

mid_camp,202,293,3 script Zei 81,{
set .npcname$,"[^FF0000 Zei ^000000]";
set .@party_id,getcharid(1);

if (undunquest==0){
mes .npcname$;
mes "This light... leads your destiny into a darkness place..";
next;
mes .npcname$;
mes "None tried to go inside, even they said there's a dungeon there..";
close;
}
mes .npcname$;
mes "This light... leads your destiny into a darkness place..";
next;
mes .npcname$;
mes "None tried to go inside, even they said there's a dungeon there..";
next;
switch (select("Stare The Light:Walk Away")){

 case 1:
 if (un_dun_quest==0){
 specialeffect2 EF_HOLYHIT;
   PushPC 3,3;
   mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the portal...";
   next;
   mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
   next;
   mes "It would be better to go back to camp and inform the others and ask for help.";
   set un_dun_quest,1;
   close;

}

if (un_dun_quest==1){
 specialeffect2 EF_HOLYHIT;
   PushPC 3,3;
   mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the portal...";
   next;
   mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
   next;
   mes "A Strange feeling come from deep inside the heart, a dark sense filling arround the camp.";
   set un_dun_quest,2;
   close;
}   if (un_dun_quest==2){
  specialeffect2 EF_HOLYHIT;
   PushPC 3,3;
   mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the portal...";
   next;
   mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
   next;
   mes "Your heart starting to tell, you should go inside.";
   set un_dun_quest,3;
   close;
 }


 if (un_dun_quest==3){
  getpartymember(.@party_id);
   set .@leader,getpartyleader(.@party,2);
   set .@partymembercount,$@partymembercount;
   copyarray .@partymembername$[0],$@partymembername$[0],.@partymembercount;
   mes .npcname$;
   mes "I can hear... that guardians is calling you, the hunters...";
   next;
   mes .npcname$;
   mes "Do you want to go inside?";
   switch (select("Go Inside:Walk Away")){

 case 1:
 if ((.@party > 0) && ((.@partymembercount > 7))){
  mes .npcname$;
  mes "I don't think to allow you go alone, you need at least 7 members to go.";
  close;
 }
 if (getmapusers("job_thief1")>7){
  mes .npcname$;
  mes "There's another chosen humans inside, I won't allow you to go.";
  close;
 }
 if (.@leader==0){
  mes .npcname$;
  mes "I just need to talk to the leader.";
  close;
 } else {
  mes .npcname$;
  mes "I've recorded your request, are you ready to go inside?";
  next;
  mes .npcname$;
  mes "Tell me when you're ready";
  set un_dun_quest,4;
  close;



   }
   case 2:
   close;

 }
}
if (un_dun_quest==4){
mes .npcname$;
mes "Are you ready to go Inside?";
next;
switch (select("Ready:Not Yet")){
 case 1:
  donpcevent "mobspawn::OnInit";
  donpcevent "mobspawn2::OnInit";
  donpcevent "mob_spawn_boss::OnInit";
  donpcevent "unhallowed_stone::OnInit";
  donpcevent "unhallowed_done::OnInit";
  mes .npcname$;
  mes "Please take your time, don't be rush... they're strong";
  next;
  warpparty "job_thief1",180,19,.@party_id;
  close;
  end;

}
}
case 2:
close;
}
}
job_thief1,0,0,0 script mobspawn -1,{
OnInit:
enablenpc "mobspawn::OnEnable";
end;

OnPCDieEvent:
if (getpartymember($@ptid)==0){ set #undunlife,#undunlife-1; } 
dispbottom "Your party have "+#undunlife+" life left.";
end;OnEnable:
//= Mob Spawns
monster "job_thief1",0,0,"Cornus",1992,200,"mobspawn::OnMobDead1";
monster "job_thief1",0,0,"Naga",1993,550,"mobspawn::OnMobDead1";
monster "job_thief1",0,0,"Luciola",1993,550,"mobspawn::OnMobDead1";
announce "Unhallowed Deceivers: Protect the Unhallowed Stone. Get rid of the intruders.",bc_map,"0x00ff99";
OnDisable:
killmonster "job_thief1","mobspawn::OnMobDead1";
disablenpc "mobspawn";
end;

OnMobDead1:
set .@mob_dead_num,mobcount ("job_thief1","mobspawn::OnMobDead1");
if (.@mob_dead_num < 800) {
 announce "All of Unhallowed Deceivers has surrender!",bc_map,"0x00ff99";
 donpcevent "mobspawn2::OnEnable";
 donpcevent "mobspawn1::OnDisable";
}
end;
}
job_thief1,0,0,0 script mobspawn2 -1,{
OnInit:
enablenpc "mobspawn2::OnEnable";
end;

OnPCDieEvent:
if (getpartymember($@ptid)==0){ set #undunlife,#undunlife-1; } 
dispbottom "Your party have "+#undunlife+" life left.";
end;
OnEnable:
//= Mob Spawns
monster "job_thief1",0,0,"Deceiver I",1918,30,"mobspawn2::OnMobDead2";
monster "job_thief1",0,0,"Deceiver II",1919,30,"mobspawn2::OnMobDead2";
monster "job_thief1",0,0,"Deceiver III",1920,30,"mobspawn2::OnMobDead2";
announce "Unhallowed Deceivers : Protect the Unhallowed Stone. Get rid of the intruders.",bc_map,"0x00ff99";
OnDisable:
killmonster "job_thief1","mobspawn2::OnMobDead2";
disablenpc "mobspawn2";
end;

OnMobDead2:
set .@mob_dead_num,mobcount ("job_thief1","mobspawn2::OnMobDead2");
if (.@mob_dead_num < 40) {
 announce "All of Unhallowed Deceivers has surrender!",bc_map,"0x00ff99";
 donpcevent "mob_spawn_boss::OnEnable";
 donpcevent "mobspawn2::OnDisable";
 warpparty "job_thief1",182,233,.@party_id;
}
end;
}
job_thief1,0,0,0 script mob_spawn_boss -1,{
OnInit:
enablenpc "mob_spawn_boss::OnEnable";
end;OnPCDieEvent:
if (getpartymember($@ptid)==0){ set #undunlife,#undunlife-1; } 
dispbottom "Your party have "+#undunlife+" life left.";
end;
OnEnable:
announce "????: How dare you....",bc_map,"0x00ff99";
sleep 1000;
announce "????: I won't let humans... Touch... My Lord....",bc_map,"0x00ff99";
sleep 2000;
//= Mob Spawns
monster "job_thief1",182,242,"Lost Dragon",2131,1,"mob_spawn_boss::OnMobBossDead";
announce "Lost Dragon: You fool! you can't take me down!",bc_map,"0x00ff99";
OnDisable:
killmonster "job_thief1","mob_spawn_boss::OnMobBossDead";
disablenpc "mob_spawn_boss";
end;

OnMobBossDead:
set .@mob_dead_num,mobcount ("job_thief1","mob_spawn_boss::OnMobBossDead");
if (.@mob_dead_num < 1) {
 announce "Lost Dragon: What a power.... You will regret, facing my lord....",bc_map,"0x00ff99";
 sleep 2000;
 announce "The Lost Dragon has been defeated!",bc_map,"0x00ff99";
 sleep 2000;
 announce "Walk straight to north! and you will find a huge stone! Touch it!",bc_map,"0x00ff99";
 donpcevent "unhallowed_stone::OnEnable";
 donpcevent "mob_spawn_boss::OnDisable";
}
end;
}
job_thief1,180,288,0 script unhallowed_stone -1,{
OnInit:
enablenpc "unhallowed_stone::OnTouch";
end;

OnPCDieEvent:
if (getpartymember($@ptid)==0){ set #undunlife,#undunlife-1; } 
dispbottom "Your party have "+#undunlife+" life left.";
end;OnTouch:
announce "????:............ What are you humans....",bc_map|bc_blue;
sleep 2000;
announce "????:... Let's make it quick... Taste the pains...",bc_map|bc_blue;
sleep 1000;
enablenpc "unhallowed_stone::OnEnable";
OnEnable:
monster "job_thief1",180,288,"Nidhoggr's Shadow",2022,1,"unhallowed_stone::OnBossDead";
announce "Nidhoggr's Shadow: Die you humans! How dare you to come here!",bc_map|bc_blue;
sleep 50000;
announce "Nidhoggr's Shadow: You Cant kill me! you low race!",bc_map|bc_blue;
sleep 50000;
announce "Nidhoggr's Shadow: Give me all you've got!",bc_map|bc_blue;
OnDisable:
killmonster "job_thief1","unhallowed_stone::OnBossDead";
disablenpc "unhallowed_stone";
end;
OnBossDead:
set .@mob_dead_num,mobcount ("job_thief1","unhallowed_stone::OnBossDead");
if (.@mob_dead_num < 1) {
 announce "Nidhoggr's Shadow: YOU WILL TASTE REVENGE!",bc_map,"0x00ff99";
 sleep 2000;
 announce "Nidhoggr's Shadow has been defeated!",bc_map,"0x00ff99";
 sleep 2000;
 announce "You has finished Unhallowed Dungeon Quest!",bc_map,"0x00ff99";
 sleep 2000;
 donpcevent "unhallowed_done::OnEnable";
 donpcevent "unhallowed_stone::OnDisable";
}
end;
}
job_thief1,0,0,0 script unhallowed_done -1,{
warpparty job_star,99,27,.@party_id;
end;
}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

Try using another label besides OnInit since OnInit has special properties.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   4
  • Joined:  01/25/12
  • Last Seen:  

Still nothing changed, the mob won't spawn, the OnEnable won't run exactly the whole scripts on job_thief1 won't run. '-'



mid_camp,202,293,3 script Zei 81,{
set .npcname$,"[^FF0000 Zei ^000000]";
set .@party_id,getcharid(1);

if (undunquest==0){
mes .npcname$;
mes "This light... leads your destiny into a darkness place..";
next;
mes .npcname$;
mes "None tried to go inside, even they said there's a dungeon there..";
close;
}
mes .npcname$;
mes "This light... leads your destiny into a darkness place..";
next;
mes .npcname$;
mes "None tried to go inside, even they said there's a dungeon there..";
next;
switch (select("Stare The Light:Walk Away")){

 case 1:
 if (un_dun_quest==0){
 specialeffect2 EF_HOLYHIT;
   PushPC 3,3;
   mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the portal...";
   next;
   mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
   next;
   mes "It would be better to go back to camp and inform the others and ask for help.";
   set un_dun_quest,1;
   close;

}

if (un_dun_quest==1){
 specialeffect2 EF_HOLYHIT;
   PushPC 3,3;
   mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the portal...";
   next;
   mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
   next;
   mes "A Strange feeling come from deep inside the heart, a dark sense filling arround the camp.";
   set un_dun_quest,2;
   close;
}   if (un_dun_quest==2){
  specialeffect2 EF_HOLYHIT;
   PushPC 3,3;
   mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the portal...";
   next;
   mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
   next;
   mes "Your heart starting to tell, you should go inside.";
   set un_dun_quest,3;
   close;
 }


 if (un_dun_quest==3){
  getpartymember(.@party_id);
   set .@leader,getpartyleader(.@party,2);
   set .@partymembercount,$@partymembercount;
   copyarray .@partymembername$[0],$@partymembername$[0],.@partymembercount;
   mes .npcname$;
   mes "I can hear... that guardians is calling you, the hunters...";
   next;
   mes .npcname$;
   mes "Do you want to go inside?";
   switch (select("Go Inside:Walk Away")){

case 1:
if ((.@party > 0) && ((.@partymembercount > 7))){
mes .npcname$;
mes "I don't think to allow you go alone, you need at least 7 members to go.";
close;
}
if (getmapusers("job_thief1")>7){
mes .npcname$;
mes "There's another chosen humans inside, I won't allow you to go.";
close;
}
if (.@leader==0){
mes .npcname$;
mes "I just need to talk to the leader.";
close;
} else {
mes .npcname$;
mes "I've recorded your request, are you ready to go inside?";
next;
mes .npcname$;
mes "Tell me when you're ready";
set un_dun_quest,4;
close;



   }
   case 2:
   close;

 }
}
if (un_dun_quest==4){
mes .npcname$;
mes "Are you ready to go Inside?";
next;
switch (select("Ready:Not Yet")){
 case 1:
donpcevent "mobspawn::OnStart";
donpcevent "mobspawn2::OnStart";
donpcevent "mob_spawn_boss::OnStart";
donpcevent "unhallowed_stone::OnStart";
donpcevent "unhallowed_done::OnStart";
mes .npcname$;
mes "Please take your time, don't be rush... they're strong";
next;
warpparty "job_thief1",180,19,.@party_id;
close;
end;

}
}
case 2:
close;
}
}
job_thief1,0,0,0 script mobspawn -1,{
OnStart:
enablenpc "mobspawn::OnEnable";
end;

OnPCDieEvent:
if (getpartymember($@ptid)==0){ set #undunlife,#undunlife-1; } 
dispbottom "Your party have "+#undunlife+" life left.";
end;OnEnable:
//= Mob Spawns
monster "job_thief1",0,0,"Cornus",1992,200,"mobspawn::OnMobDead1";
monster "job_thief1",0,0,"Naga",1993,550,"mobspawn::OnMobDead1";
monster "job_thief1",0,0,"Luciola",1993,550,"mobspawn::OnMobDead1";
announce "Unhallowed Deceivers: Protect the Unhallowed Stone. Get rid of the intruders.",bc_map,"0x00ff99";
OnDisable:
killmonster "job_thief1","mobspawn::OnMobDead1";
disablenpc "mobspawn";
end;

OnMobDead1:
set .@mob_dead_num,mobcount ("job_thief1","mobspawn::OnMobDead1");
if (.@mob_dead_num < 800) {
 announce "All of Unhallowed Deceivers has surrender!",bc_map,"0x00ff99";
 donpcevent "mobspawn2::OnEnable";
 donpcevent "mobspawn1::OnDisable";
}
end;
}
job_thief1,0,0,0 script mobspawn2 -1,{
OnStart:
enablenpc "mobspawn2::OnEnable";
end;

OnPCDieEvent:
if (getpartymember($@ptid)==0){ set #undunlife,#undunlife-1; } 
dispbottom "Your party have "+#undunlife+" life left.";
end;
OnEnable:
//= Mob Spawns
monster "job_thief1",0,0,"Deceiver I",1918,30,"mobspawn2::OnMobDead2";
monster "job_thief1",0,0,"Deceiver II",1919,30,"mobspawn2::OnMobDead2";
monster "job_thief1",0,0,"Deceiver III",1920,30,"mobspawn2::OnMobDead2";
announce "Unhallowed Deceivers : Protect the Unhallowed Stone. Get rid of the intruders.",bc_map,"0x00ff99";
OnDisable:
killmonster "job_thief1","mobspawn2::OnMobDead2";
disablenpc "mobspawn2";
end;

OnMobDead2:
set .@mob_dead_num,mobcount ("job_thief1","mobspawn2::OnMobDead2");
if (.@mob_dead_num < 40) {
 announce "All of Unhallowed Deceivers has surrender!",bc_map,"0x00ff99";
 donpcevent "mob_spawn_boss::OnEnable";
 donpcevent "mobspawn2::OnDisable";
 warpparty "job_thief1",182,233,.@party_id;
}
end;
}
job_thief1,0,0,0 script mob_spawn_boss -1,{
OnStart:
enablenpc "mob_spawn_boss::OnEnable";
end;OnPCDieEvent:
if (getpartymember($@ptid)==0){ set #undunlife,#undunlife-1; } 
dispbottom "Your party have "+#undunlife+" life left.";
end;
OnEnable:
announce "????: How dare you....",bc_map,"0x00ff99";
sleep 1000;
announce "????: I won't let humans... Touch... My Lord....",bc_map,"0x00ff99";
sleep 2000;
//= Mob Spawns
monster "job_thief1",182,242,"Lost Dragon",2131,1,"mob_spawn_boss::OnMobBossDead";
announce "Lost Dragon: You fool! you can't take me down!",bc_map,"0x00ff99";
OnDisable:
killmonster "job_thief1","mob_spawn_boss::OnMobBossDead";
disablenpc "mob_spawn_boss";
end;

OnMobBossDead:
set .@mob_dead_num,mobcount ("job_thief1","mob_spawn_boss::OnMobBossDead");
if (.@mob_dead_num < 1) {
 announce "Lost Dragon: What a power.... You will regret, facing my lord....",bc_map,"0x00ff99";
 sleep 2000;
 announce "The Lost Dragon has been defeated!",bc_map,"0x00ff99";
 sleep 2000;
 announce "Walk straight to north! and you will find a huge stone! Touch it!",bc_map,"0x00ff99";
 donpcevent "unhallowed_stone::OnEnable";
 donpcevent "mob_spawn_boss::OnDisable";
}
end;
}
job_thief1,180,288,0 script unhallowed_stone -1,{
OnStart:
enablenpc "unhallowed_stone::OnTouch";
end;

OnPCDieEvent:
if (getpartymember($@ptid)==0){ set #undunlife,#undunlife-1; } 
dispbottom "Your party have "+#undunlife+" life left.";
end;OnTouch:
announce "????:............ What are you humans....",bc_map|bc_blue;
sleep 2000;
announce "????:... Let's make it quick... Taste the pains...",bc_map|bc_blue;
sleep 1000;
enablenpc "unhallowed_stone::OnEnable";
OnEnable:
monster "job_thief1",180,288,"Nidhoggr's Shadow",2022,1,"unhallowed_stone::OnBossDead";
announce "Nidhoggr's Shadow: Die you humans! How dare you to come here!",bc_map|bc_blue;
sleep 50000;
announce "Nidhoggr's Shadow: You Cant kill me! you low race!",bc_map|bc_blue;
sleep 50000;
announce "Nidhoggr's Shadow: Give me all you've got!",bc_map|bc_blue;
OnDisable:
killmonster "job_thief1","unhallowed_stone::OnBossDead";
disablenpc "unhallowed_stone";
end;
OnBossDead:
set .@mob_dead_num,mobcount ("job_thief1","unhallowed_stone::OnBossDead");
if (.@mob_dead_num < 1) {
 announce "Nidhoggr's Shadow: YOU WILL TASTE REVENGE!",bc_map,"0x00ff99";
 sleep 2000;
 announce "Nidhoggr's Shadow has been defeated!",bc_map,"0x00ff99";
 sleep 2000;
 announce "You has finished Unhallowed Dungeon Quest!",bc_map,"0x00ff99";
 sleep 2000;
 donpcevent "unhallowed_done::OnEnable";
 donpcevent "unhallowed_stone::OnDisable";
}
end;
}
job_thief1,0,0,0 script unhallowed_done -1,{
warpparty job_star,99,27,.@party_id;
end;
}

Edited by Zac
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   285
  • Joined:  12/19/11
  • Last Seen:  

job_thief1,0,0,0 script mobspawn -1,{
onstart:
enablenpc "mobspawn::OnEnable";
end;

enablenpc -> donpcevent

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   4
  • Joined:  01/25/12
  • Last Seen:  

Still wont work /ok

I modified the script.

mid_camp,202,293,3 script Zei 81,{
set .npcname$,"[^FF0000 Zei ^000000]";
set .@party_id,getcharid(1);
if (undunquest==0){
mes .npcname$;
mes "This light... leads your destiny into a darkness place..";
next;
mes .npcname$;
mes "None tried to go inside, even they said there's a dungeon there..";
close;
}
mes .npcname$;
mes "This light... leads your destiny into a darkness place..";
next;
mes .npcname$;
mes "None tried to go inside, even they said there's a dungeon there..";
next;
switch (select("Stare The Light:Walk Away")){

 case 1:
 if (un_dun_quest==0){
 specialeffect2 EF_HOLYHIT;
   PushPC 3,3;
   mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the portal...";
   next;
   mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
   next;
   mes "It would be better to go back to camp and inform the others and ask for help.";
   set un_dun_quest,1;
   close;

}
if (un_dun_quest==1){
 specialeffect2 EF_HOLYHIT;
   PushPC 3,3;
   mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the portal...";
   next;
   mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
   next;
   mes "A Strange feeling come from deep inside the heart, a dark sense filling arround the camp.";
   set un_dun_quest,2;
   close;
}   if (un_dun_quest==2){
  specialeffect2 EF_HOLYHIT;
   PushPC 3,3;
   mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the portal...";
   next;
   mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
   next;
   mes "Your heart starting to tell, you should go inside.";
   set un_dun_quest,3;
   close;
 }


 if (un_dun_quest==3){
  getpartymember(.@party_id);
   set .@leader,getpartyleader(.@party,2);
   set .@partymembercount,$@partymembercount;
   copyarray .@partymembername$[0],$@partymembername$[0],.@partymembercount;
   mes .npcname$;
   mes "I can hear... that guardians is calling you, the hunters...";
   next;
   mes .npcname$;
   mes "Do you want to go inside?";
   switch (select("Go Inside:Walk Away")){

 case 1:
 if ((.@party > 0) && ((.@partymembercount > 7))){
  mes .npcname$;
  mes "I don't think to allow you go alone, you need at least 7 members to go.";
  close;
 }
 if (getmapusers("job_thief1")>7){
  mes .npcname$;
  mes "There's another chosen humans inside, I won't allow you to go.";
  close;
 }
 if (.@leader==0){
  mes .npcname$;
  mes "I just need to talk to the leader.";
  close;
 } else {
  mes .npcname$;
  mes "I've recorded your request, are you ready to go inside?";
  next;
  mes .npcname$;
  mes "Tell me when you're ready";
  set un_dun_quest,4;
  close;



   }
   case 2:
   close;

 }
}
if (un_dun_quest==4){
mes .npcname$;
mes "Are you ready to go Inside?";
next;
switch (select("Ready:Not Yet")){
 case 1:
  donpcevent "mobspawn::OnStart";
  donpcevent "mobspawn2::OnStart";
  donpcevent "mob_spawn_boss::OnStart";
  donpcevent "unhallowed_stone::OnStart";
  donpcevent "unhallowed_done::OnStart";
  mes .npcname$;
  mes "Please take your time, don't be rush... they're strong";
  next;
  warpparty "job_thief1",180,19,.@party_id;
  close;
  end;

}
}
case 2:
close;
}
}
job_thief1,0,0,0 script mobspawn -1,{
OnStart:
donpcevent "mobspawn::OnEnable";
end;
OnPCDieEvent:
if (getpartymember($@ptid)==0){ set #undunlife,#undunlife-1; }
dispbottom "Your party have "+#undunlife+" life left.";
end;
OnEnable:
//= Mob Spawns
monster "job_thief1",0,0,"Cornus",1992,200,"mobspawn::OnMobDead1";
monster "job_thief1",0,0,"Naga",1993,550,"mobspawn::OnMobDead1";
monster "job_thief1",0,0,"Luciola",1993,550,"mobspawn::OnMobDead1";
announce "Unhallowed Deceivers: Protect the Unhallowed Stone. Get rid of the intruders.",bc_map,"0x00ff99";
OnDisable:
killmonster "job_thief1","mobspawn::OnMobDead1";
disablenpc "mobspawn";
end;
OnMobDead1:
set .@mob_dead_num,mobcount ("job_thief1","mobspawn::OnMobDead1");
if (.@mob_dead_num < 800) {
 announce "All of Unhallowed Deceivers has surrender!",bc_map,"0x00ff99";
 donpcevent "mobspawn2::OnEnable";
 donpcevent "mobspawn1::OnDisable";
}
end;
}
job_thief1,0,0,0 script mobspawn2 -1,{
OnStart:
donpcevent "mobspawn2::OnEnable";
end;
OnPCDieEvent:
if (getpartymember($@ptid)==0){ set #undunlife,#undunlife-1; }
dispbottom "Your party have "+#undunlife+" life left.";
end;
OnEnable:
//= Mob Spawns
monster "job_thief1",0,0,"Deceiver I",1918,30,"mobspawn2::OnMobDead2";
monster "job_thief1",0,0,"Deceiver II",1919,30,"mobspawn2::OnMobDead2";
monster "job_thief1",0,0,"Deceiver III",1920,30,"mobspawn2::OnMobDead2";
announce "Unhallowed Deceivers : Protect the Unhallowed Stone. Get rid of the intruders.",bc_map,"0x00ff99";
OnDisable:
killmonster "job_thief1","mobspawn2::OnMobDead2";
disablenpc "mobspawn2";
end;
OnMobDead2:
set .@mob_dead_num,mobcount ("job_thief1","mobspawn2::OnMobDead2");
if (.@mob_dead_num < 40) {
 announce "All of Unhallowed Deceivers has surrender!",bc_map,"0x00ff99";
 donpcevent "mob_spawn_boss::OnEnable";
 donpcevent "mobspawn2::OnDisable";
 warpparty "job_thief1",182,233,.@party_id;
}
end;
}
job_thief1,0,0,0 script mob_spawn_boss -1,{
OnStart:
donpcevent "mob_spawn_boss::OnEnable";
end;
OnPCDieEvent:
if (getpartymember($@ptid)==0){ set #undunlife,#undunlife-1; }
dispbottom "Your party have "+#undunlife+" life left.";
end;
OnEnable:
announce "????: How dare you....",bc_map,"0x00ff99";
sleep 1000;
announce "????: I won't let humans... Touch... My Lord....",bc_map,"0x00ff99";
sleep 2000;
//= Mob Spawns
monster "job_thief1",182,242,"Lost Dragon",2131,1,"mob_spawn_boss::OnMobBossDead";
announce "Lost Dragon: You fool! you can't take me down!",bc_map,"0x00ff99";
OnDisable:
killmonster "job_thief1","mob_spawn_boss::OnMobBossDead";
disablenpc "mob_spawn_boss";
end;
OnMobBossDead:
set .@mob_dead_num,mobcount ("job_thief1","mob_spawn_boss::OnMobBossDead");
if (.@mob_dead_num < 1) {
 announce "Lost Dragon: What a power.... You will regret, facing my lord....",bc_map,"0x00ff99";
 sleep 2000;
 announce "The Lost Dragon has been defeated!",bc_map,"0x00ff99";
 sleep 2000;
 announce "Walk straight to north! and you will find a huge stone! Touch it!",bc_map,"0x00ff99";
 donpcevent "unhallowed_stone::OnEnable";
 donpcevent "mob_spawn_boss::OnDisable";
}
end;
}
job_thief1,180,288,0 script unhallowed_stone -1,{
OnStart:
donpcevent "unhallowed_stone::OnTouch";
end;
OnPCDieEvent:
if (getpartymember($@ptid)==0){ set #undunlife,#undunlife-1; }
dispbottom "Your party have "+#undunlife+" life left.";
end;
OnTouch:
announce "????:............ What are you humans....",bc_map|bc_blue;
sleep 2000;
announce "????:... Let's make it quick... Taste the pains...",bc_map|bc_blue;
sleep 1000;
enablenpc "unhallowed_stone::OnEnable";
end;
OnEnable:
monster "job_thief1",180,288,"Nidhoggr's Shadow",2022,1,"unhallowed_stone::OnBossDead";
announce "Nidhoggr's Shadow: Die you humans! How dare you to come here!",bc_map|bc_blue;
sleep 50000;
announce "Nidhoggr's Shadow: You Cant kill me! you low race!",bc_map|bc_blue;
sleep 50000;
announce "Nidhoggr's Shadow: Give me all you've got!",bc_map|bc_blue;
OnDisable:
killmonster "job_thief1","unhallowed_stone::OnBossDead";
disablenpc "unhallowed_stone";
end;
OnBossDead:
set .@mob_dead_num,mobcount ("job_thief1","unhallowed_stone::OnBossDead");
if (.@mob_dead_num < 1) {
 announce "Nidhoggr's Shadow: YOU WILL TASTE REVENGE!",bc_map,"0x00ff99";
 sleep 2000;
 announce "Nidhoggr's Shadow has been defeated!",bc_map,"0x00ff99";
 sleep 2000;
 announce "You has finished Unhallowed Dungeon Quest!",bc_map,"0x00ff99";
 sleep 2000;
 donpcevent "unhallowed_done::OnEnable";
 donpcevent "unhallowed_stone::OnDisable";
}
end;
}
job_thief1,0,0,0 script unhallowed_done -1,{
OnEnable:
warpparty job_star,99,27,.@party_id;
end;
}

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