[Release] Mini Game Seller!! [Working]

Results 1 to 16 of 16
  1. #1
    Member AlmarM is offline
    MemberRank
    Apr 2008 Join Date
    79Posts

    [Release] Mini Game Seller!! [Working]

    Hey, I made another seller!

    Add this into NPCs.cpp
    PHP Code:
    void NPCsScripts::npc_1012008(NPCnpc){
        
    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(40801001);
        
    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(40800081);
        
    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(40800001);
        
    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(40800061);
        
    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(40800031);
        
    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(40800091);
        
    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(40800051);
        
    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 into NPCcScripts.h:
    PHP Code:
    case 1012008npc_1012008(npc); break; // Casey - From Minigames 
    And add this one also in NPCsScripts.h:
    PHP Code:
    static void npc_1012008(NPCnpc); // Casey - From Minigames 
    Have Fun ^^

    -AlmarM-


  2. #2
    Apprentice flipako is offline
    MemberRank
    Mar 2008 Join Date
    15Posts

    Re: [Release] Mini Game Seller!! [Working]

    testing it now ^_^

    whos the ncp that sell minigames?

  3. #3
    Account Upgraded | Title Enabled! FlowMotion is offline
    MemberRank
    Apr 2007 Join Date
    378Posts

    Re: [Release] Mini Game Seller!! [Working]

    Quote Originally Posted by flipako View Post
    testing it now ^_^

    whos the ncp that sell minigames?

    I think its the NPC pasted the bowman place on the far right side in henesys park.

  4. #4
    Proficient Member gogodr is offline
    MemberRank
    Apr 2008 Join Date
    161Posts

    Re: [Release] Mini Game Seller!! [Working]

    uhm.. and.. the minigames work?

  5. #5
    Proficient Member KingDan is offline
    MemberRank
    Apr 2008 Join Date
    172Posts

    Re: [Release] Mini Game Seller!! [Working]

    i think its nbear where u became a bowman "Game Zone"

  6. #6
    Account Upgraded | Title Enabled! FlowMotion is offline
    MemberRank
    Apr 2007 Join Date
    378Posts

    Re: [Release] Mini Game Seller!! [Working]

    Quote Originally Posted by gogodr View Post
    uhm.. and.. the minigames work?
    doubt it but could be wrong...
    what you can do is use the !item to get the card set and try to open and see if it works and lets overs play in it.

    but i doubt it works.
    this is just selling the card set.

  7. #7
    Apprentice flipako is offline
    MemberRank
    Mar 2008 Join Date
    15Posts

    Re: [Release] Mini Game Seller!! [Working]

    Quote Originally Posted by FlowMotion View Post
    doubt it but could be wrong...
    what you can do is use the !item to get the card set and try to open and see if it works and lets overs play in it.

    but i doubt it works.
    this is just selling the card set.

    it doesn't work.. it sells but minigame doesn't work

  8. #8
    Account Upgraded | Title Enabled! FlowMotion is offline
    MemberRank
    Apr 2007 Join Date
    378Posts

    Re: [Release] Mini Game Seller!! [Working]

    Quote Originally Posted by flipako View Post
    it doesn't work.. it sells but minigame doesn't work
    which is what i figured but i did wanna say for sure because i didn't wanna be wrong ;/ its because you need to code the mini-game to work i was going to be doing this next in mine but thanks the Krystical im not for awhile.

    but you have to code the Mini-game and the packet for the game.

  9. #9
    Valued Member oshri221 is offline
    MemberRank
    Apr 2008 Join Date
    147Posts

    Re: [Release] Mini Game Seller!! [Working]

    in NpcsScripts.h
    i need to past it into shops ?

  10. #10
    Proficient Member gogodr is offline
    MemberRank
    Apr 2008 Join Date
    161Posts

    Re: [Release] Mini Game Seller!! [Working]

    Quote Originally Posted by flipako View Post
    it doesn't work.. it sells but minigame doesn't work
    ok.. so right now .. this is completly useless? XP

  11. #11
    Valued Member oshri221 is offline
    MemberRank
    Apr 2008 Join Date
    147Posts

    Re: [Release] Mini Game Seller!! [Working]

    -_- its work i can buy it ,
    but when i try to open it its not open. :: X

  12. #12
    Account Upgraded | Title Enabled! xnBlaze is offline
    MemberRank
    Apr 2008 Join Date
    860Posts

    Re: [Release] Mini Game Seller!! [Working]

    this is useless if the game doesnt work.

  13. #13
    Member AlmarM is offline
    MemberRank
    Apr 2008 Join Date
    79Posts

    Re: [Release] Mini Game Seller!! [Working]

    I know the games doenst work, its just a seller for in the case someone figures out how to fix the mini games!!

  14. #14
    Account Upgraded | Title Enabled! npmaple is offline
    MemberRank
    Apr 2008 Join Date
    Israel - a bad placeLocation
    281Posts

    Re: [Release] Mini Game Seller!! [Working]

    but i think mini games arnet working so whats the point making a NPC?

  15. #15
    Member fccfcc is offline
    MemberRank
    Apr 2008 Join Date
    98Posts

    Re: [Release] Mini Game Seller!! [Working]

    Mini games not working !!!

  16. #16
    bleh.... Shawn is offline
    MemberRank
    Oct 2008 Join Date
    Mississauga, CaLocation
    5,904Posts

    Re: [Release] Mini Game Seller!! [Working]

    Quote Originally Posted by Mr.Lloyd Korn View Post
    Mofo ass hole mental i will dmca your fucking ass hole if you come here do nto delete blablablablabla shut down ragezone nowz@@!!!!!!mofo ass hole mental i will dmca your fucking ass hole if you come here do nto delete blablablablabla shut down ragezone nowz@@!!!!!!mofo ass hole mental i will dmca your fucking ass hole if you come here do nto delete blablablablabla shut down ragezone nowz@@!!!!!!mofo ass hole mental i will dmca your fucking ass hole if you come here do nto delete blablablablabla shut down ragezone nowz@@!!!!!!mofo ass hole mental i will dmca your fucking ass hole if you come here do nto delete blablablablabla shut down ragezone nowz@@!!!!!!mofo ass hole mental i will dmca your fucking ass hole if you come here do nto delete blablablablabla shut down ragezone nowz@@!!!!!!mofo ass hole mental i will dmca your fucking ass hole if you come here do nto delete blablablablabla shut down ragezone nowz@@!!!!!!
    What are you, 5? How in the world can this type of thing be entertaining to do if you are over the age of 8? You really show how much of a life you have, which apparently isn't much if this is your form of entertainment.



Advertisement