All pastes #972889 Raw Edit

Unnamed

public cpp v1 · immutable
·published 2008-04-05 20:06 UTC
rendered paste body
void NPCsScripts::npc_1012000(NPC* npc){	int state = npc->getState();	if(state == 0){		npc->addText("What’s up? I drive the Regular Cab. If you want to go from town to town safely and fast, then ride our cab! We’ll gladly take you to your destination!");		npc->sendNext();	}	if(state == 1){		npc->addText("Please choose where you would like to go:\r\n#L0#Perion#l\r\n#L1#Kerning City#l\r\n#L2#Lith Harbor#l\r\n#L3#Ellinia#l");		npc->sendSimple();	}	if(state == 2){		type = npc->getSelected();		npc->setVariable("type", type);		if(type == 0){ // Perion			npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bPerion#k?");			npc->sendYesNo();		}		else if(type == 1){ // Kerning			npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bKerning City#k?");			npc->sendYesNo();					}		else if(type == 2){ // Lith			npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bLith Harbor#k?");			npc->sendYesNo();		}		else if(type == 3){ // Ellinia			npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bEllinia#k?");			npc->sendYesNo();		}	}	if(state == 3 && type == 0){		if(npc->getSelected() == YES){			npc->end();			npc->teleport(102000000);		}		else{			npc->addText("There’s a lot to see in this town, too. Come back and find us when you need to go to a different town.");			npc->sendOK();		}		npc->end();	}	if(state == 3 && type == 1){		if(npc->getSelected() == YES){			npc->teleport(103000000);		}		else{			npc->addText("There’s a lot to see in this town, too. Come back and find us when you need to go to a different town.");			npc->sendOK();		}		npc->end();	}	if(state == 3 && type == 2){		if(npc->getSelected() == YES){			npc->teleport(104000000);		}		else{			npc->addText("There’s a lot to see in this town, too. Come back and find us when you need to go to a different town.");			npc->sendOK();		}		npc->end();	}	if(state == 3 && type == 3){		if(npc->getSelected() == YES){			npc->teleport(101000000);		}		else{			npc->addText("There’s a lot to see in this town, too. Come back and find us when you need to go to a different town.");			npc->sendOK();		}		npc->end();	}}