Jump to content
  • 0

Endless tower Prize giver.


greenieken

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   1
  • Joined:  05/02/12
  • Last Seen:  

Hello. I would like to request for an npc that will give each of the party member a prize after killing the naght seiger. The npc is in hide when the last monster is still alive and will appear when the last monster died. anyone? thanks!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

There is already a NPC after killing all Mobs and Nacht Sieger,if you check the Endless Tower Script :

6@tower,169,127,2 script Lost Soul#102 796,{
if (checkweight(1201,1) == 0) {
 mes "You're carrying too much stuff. Why don't you put some of it away, and then come back?";
 close;
}
mes "[Lost Souls]";
mes "It's you that have liberated us from the evil Nacht Sieger.";
next;
mes "[Lost Souls]";
mes "Thank you so much. Now we can escape from this cold and dark place... to heaven.";
next;
if ((countitem(13412) > 0) && (countitem(13413) > 0)) {
 mes "[Lost Souls]";
 mes "Hey, you have the remnants of Nacht Sieger with you.";
 next;
 mes "[Lost Souls]";
 mes "They may appear to be one-handed swords, but I can put them together to make a two-handed one if you want. That's the only way I can repay you for freeing me.";
 next;
 switch(select("Make a Two-Handed Sword.:No, thanks.")) {
 case 1:
  mes "[Lost Souls]";
  mes "Good, then I'll combine these to create a two-handed sword.";
  next;
  delitem 13412,1; //Twin_Edge_B
  delitem 13413,1; //Twin_Edge_R
  getitem 1185,1; //Violet_Fear
  set nachtsieger,1; // I ADDED THIS NOW,YOU'LL SEE WHAT I DO WITH THIS
  mes "[Lost Souls]";
  mes "I'd like to talk to you more, but I've... I've got to go now.";
  next;
  break;
 case 2:
  mes "[Lost Souls]";
  mes "I see. I guess you aren't as greedy or ambitious as those other adventurers.";
  next;
  mes "[Lost Souls]";
  mes "I'd like to talk to you more, but I've... I've got to go now.";
  next;
  break;
 }
}
mes "[Lost Souls]";
mes "Farewell, young adventurer. I wish you good luck.";
close2;
warp "alberta",223,36;
end;
OnInstanceInit:
disablenpc instance_npcname("Lost Soul#102", instance_id());
end;
OnEnable:
initnpctimer;
enablenpc instance_npcname("Lost Soul#102", instance_id());
donpcevent instance_npcname("#Effect30", instance_id())+"::OnEnable";
//SetItemPartyInMap in_102floor 104
end;
OnTimer500:
instance_announce 0,"This... This can't be happening! I can't be defeated!",bc_map,"0xffff00";
end;
OnTimer5500:
instance_announce 0,"Nooo! My soul... My shell...! Nooo~!",bc_map,"0xffff00";
end;
OnTimer10500:
instance_announce 0,"Nacht Sieger's body has turned into dark ashes that scattered in the wind.",bc_map,"0x00ffcc";
stopnpctimer;
end;
}
6@tower,169,127,2 script #Effect30 844,{
end;
OnInstanceInit:
disablenpc instance_npcname("#Effect30", instance_id());
end;
OnEnable:
specialeffect EF_CONE;
initnpctimer;
end;
OnTimer1000:
stopnpctimer;
donpcevent instance_npcname("#Effect31", instance_id())+"::OnEnable";
end;
}
6@tower,169,127,2 script #Effect31 844,{
end;
OnInstanceInit:
disablenpc instance_npcname("#Effect31", instance_id());
end;
OnEnable:
specialeffect EF_CONE;
initnpctimer;
end;
OnTimer1000:
stopnpctimer;
donpcevent instance_npcname("#Effect30", instance_id())+"::OnEnable";
end;
}

So you could add an NPC right next to him

6@tower,166,127,2 script Lost Man#102 796,{
set .@n$,"^0000FF[ Lost Man ]^000000";
if(gotitems==1) {
mes .@n$;
mes "Thank you for saving us!";
close;
}
if(nachtsieger==1) {
mes .@n$;
mes "Thank you,you saved us!":
getitem XXXX,XX;
set gotitems,1;
close;
} else {
mes .@n$;
mes "...Talk to the Lost Soul first!";
close;
}
}

This is just an really easy example.

Edited by Rikimaru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  83
  • Reputation:   57
  • Joined:  01/21/12
  • Last Seen:  

search end replace:

OnTimer10500:
instance_announce 0,"You'll soon know. Mine is the face of death!",bc_map,"0x00ffcc";
stopnpctimer;
monster "6@tower",156,147,"Nacht Sieger",1956,1,instance_npcname("#4th Beeper", instance_id())+"::OnMyMobDead";
end;

OnMyMobDead:
getpartymember getcharid(1),1;
getpartymember getcharid(1),2;
for( set .@i,0; .@i<$@partymembercount; set .@i,.@i+1 )
{

if( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) )
{

attachrid $@partymemberaid[.@i];
getitem 501,1, $@partymemberaid[.@i]; // -- Get Red Potions per party member, change your item id
detachrid;

}
}
donpcevent instance_npcname("Lost Soul#102", instance_id())+"::OnEnable";
end;

Edited by Gennosuke Kouga
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

search end replace:

OnTimer10500:
instance_announce 0,"You'll soon know. Mine is the face of death!",bc_map,"0x00ffcc";
stopnpctimer;
monster "6@tower",156,147,"Nacht Sieger",1956,1,instance_npcname("#4th Beeper", instance_id())+"::OnMyMobDead";
end;

OnMyMobDead:
getpartymember getcharid(1),1;
getpartymember getcharid(1),2;
for( set .@i,0; .@i<$@partymembercount; set .@i,.@i+1 )
{

if( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) )
{

attachrid $@partymemberaid[.@i];
getitem 501,1, $@partymemberaid[.@i]; // -- Get Red Potions per party member, change your item id
detachrid;

}
}
donpcevent instance_npcname("Lost Soul#102", instance_id())+"::OnEnable";
end;

is this working?

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