Kadd, once again requested me to add this to my server so i did.
Talk to Konpei in the Armory to go in.
Talk to Konpei in the Nightmarish Last Days to summon BG or exit.
Simple enough?
First add this:
Then add this to your TeleportNPCs or W/E: (Fixed)
Talk to Konpei in the Armory to go in.
Talk to Konpei in the Nightmarish Last Days to summon BG or exit.
Simple enough?
First add this:
Code:
case 9120201: npc_9120201(npc); break; // Konpei - Armory
case 9120202: npc_9120202(npc); break; // Konpei - TNLD
Code:
static void npc_9120201(NPC* npc); //Konpei - Armory
static void npc_9120202(NPC* npc); //Konpei - TNLD
Then add this to your TeleportNPCs or W/E: (Fixed)
Code:
void NPCsScripts::npc_9120201(NPC* npc){ //Amornthep/Epilogue
Player* player = npc->getPlayer();
int state = npc->getState();
int type = npc->getSelected();
if(state == 0)
{
npc->addText("Welcome to the Sex Maniac Room Entrance!");
npc->sendNext();
}
else if(state == 1)
{
npc->addText("Do you want to take on the Yakuza....");
npc->addText(" You must be Level 50 and above to enter!");
npc->sendYesNo();
}
else if(state == 2)
{
if(npc->getSelected() == YES){
if(player->getLevel() >= 50){
npc->addText("Okay, Please be careful of their uber'ness");
npc->sendOK();
}
}
else
{
npc->addText("I see....Get out then.");
npc->sendOK();
npc->end();
}
}
else if(state == 3){
if(npc->getSelected() == YES){
npc->teleport(801040100);
}
npc->end();
}
}
void NPCsScripts::npc_9120202(NPC* npc){ //Amornthep/Epilogue
int state = npc->getState();
if(state == 0)
{
npc->addText("Welcome to the Sex Maniac Room!");
npc->sendNext();
}
else if(state == 1)
{
npc->addText("I can summon the Yakuza or take you out.");
npc->sendNext();
}
else if(state == 2)
{
npc->addText("\r\n#L0#Summon Yakuza#l\r\n#L1#Leave#l");
npc->sendSimple();
}
else if(state == 3)
{
type = npc->getSelected();
npc->setVariable("type", type);
if(type == 0){ // Summon BG at treasure chest
Player* player = npc->getPlayer();
npc->end();
Mobs::spawnMobPos(player, 9400112, 427, 161);
}
else if(type == 1){ // Leave *Actually it brings you to the map: Beautiful Sky after beating the real Boss. Since i do not know the ID of the Konpei there...so yeah.
npc->end();
npc->teleport(801040004);
}
}
}