All pastes #972820 Raw Edit

Something

public cpp v1 · immutable
·published 2008-04-05 19:13 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();		}	}	if(state == 3 && type == 0){			if(npc->getSelected() == YES){			npc->end();			npc->teleport(102000000);		}		if(npc->getSelected() == NO){			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.");		}	}}