Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release]The Nightmarish Last Days: Bodyguard Summoner

Status
Not open for further replies.
Newbie Spellweaver
Joined
May 1, 2008
Messages
17
Reaction score
0
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:

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);
		}

	}
}
 
Newbie Spellweaver
Joined
Apr 5, 2008
Messages
22
Reaction score
0
Nice, I did this same idea today only moved boss kitty to the room and used it to summon the bodyguard for a fee & just used Konpei to leave the room. Anyway nice idea for the level limit.
 
Status
Not open for further replies.
Back
Top