Hey, I made another seller!
Add this into NPCs.cpp
And add this into NPCcScripts.h:PHP Code:void NPCsScripts::npc_1012008(NPC* npc){
int state = npc->getState();
int type = npc->getSelected();
if(state == 0){
npc->addText("Would you like to buy any #gMini Games#k? ");
npc->sendYesNo();
}
else if(state == 1){
if(npc->getSelected() == YES){
npc->addText("Ok take a look around! ");
npc->sendNext();
}
else{
npc->addText("Ok, well come back when ever you changed your mind!");
npc->sendOK();
npc->end();
}
}
else if(state == 2){
if(npc->getSelected() == YES){
npc->addText("#L0##bA set of Match Cards#k 20,000 Mesos#l\r\n#L1##bPink Teddy Trixter Omok Set #k 20,000 Mesos#l\r\n#L2##bSlime Mushroom Omok Set#k 20,000 Mesos#l\r\n#L3##bBloctopus Pink Teddy Omok Set#k 20,000 Mesos#l\r\n#L4##bOctopus Mushroom Omok Set#k 20,000 Mesos#l\r\n#L5##bPanda Blocktopus Omok Set#k 20,000#l\r\n#L6##bPig Mushroom Omok Set#k 20,000#l\r\n");
npc->sendSimple();
}
}
else if(state == 3){
npc->setVariable("type", type);
if(type == 0){
if(npc->getMesos() >= 20000){
npc->addText("A set of Match Cards...");
npc->giveItem(4080100, 1);
npc->giveMesos(-20000);
npc->sendNext();
npc->end();
}
else{
npc->addText("You don't have enough mesos!");
npc->sendNext();
npc->end();
}
}
if(type == 1){
if(npc->getMesos() >= 20000){
npc->addText("Pink Teddy Trixter Omok Set...");
npc->giveItem(4080008, 1);
npc->giveMesos(-20000);
npc->sendNext();
npc->end();
}
else{
npc->addText("You don't have enough mesos!");
npc->sendNext();
npc->end();
}
}
if(type == 2){
if(npc->getMesos() >= 20000){
npc->addText("Slime Mushroom Omok Set...");
npc->giveItem(4080000, 1);
npc->giveMesos(-20000);
npc->sendNext();
npc->end();
}
else{
npc->addText("You don't have enough mesos!");
npc->sendNext();
npc->end();
}
}
if(type == 3){
if(npc->getMesos() >=20000){
npc->addText("Bloctopus Pink Teddy Omok Set...");
npc->giveItem(4080006, 1);
npc->giveMesos(-20000);
npc->sendNext();
npc->end();
}
else{
npc->addText("You don't have enough mesos!");
;npc->sendNext();
npc->end();
}
}
if(type == 4){
if(npc->getMesos() >=200000){
npc->addText("Octopus Mushroom Omok Set...");
npc->giveItem(4080003, 1);
npc->giveMesos(-20000);
npc->sendNext();
npc->end()
;}
else{
npc->addText("You don't have enought mesos!");
npc->sendNext();
npc->end();
}
}
if(type == 5){
if(npc->getMesos() >=20000){
npc->addText("Panda Teddy Bloctopus Omok Set...");
npc->giveItem(4080009, 1);
npc->giveMesos(-20000);
npc->sendNext();
npc->end();
}
else{
npc->addText("You don't have enough mesos!");
npc->sendNext();
npc->end();
}
}
if(type == 6){
if(npc->getMesos() >=20000){
npc->addText("Pig Mushroom Omok Set...");
npc->giveItem(4080005, 1);
npc->giveMesos(-20000);
npc->sendNext();
npc->end();
}
else{
npc->addText("You don't have enough mesos!");
npc->sendNext();
npc->end();
}
}
else if(type == 7){
npc->addText("Have Fun ...");
npc->sendNext();
}
}
else if(state == 4){
npc->addText("Bye!");
npc->sendOK();
}
else{
npc->end();
}
}
And add this one also in NPCsScripts.h:PHP Code:case 1012008: npc_1012008(npc); break; // Casey - From Minigames
Have Fun ^^PHP Code:static void npc_1012008(NPC* npc); // Casey - From Minigames
-AlmarM-


Reply With Quote![[Release] Mini Game Seller!! [Working]](http://ragezone.com/hyper728.png)


