[Release] Gachapon,SummoningRock,MagiRock Seller [Working]

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

    [Release] Gachapon,SummoningRock,MagiRock Seller [Working]

    Hey RaGEZONE people :D
    I made this Gachapon Ticket, The Summoning Rock and The Magic Rock seller!
    And the best is. ITS WORKING :D

    Copy this and paste it in NPCs.cpp
    PHP Code:
    void NPCsScripts::npc_1012002(NPCnpc){ //Vicious
        
    int state npc->getState();
        
    int type npc->getSelected();
        if(
    state == 0){
            
    npc->addText("Would you like to buy some stuff? ");
            
    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();
        }
    }
        else if(
    state == 2){
        if(
    npc->getSelected() == YES){
        
    npc->addText("#L0##bGachapon Ticket#k 1,000,000 Mesos#l\r\n#L1##bThe Summoning Rock#k 20,000 Mesos#l\r\n#L2##bThe Magic Rock#k 20,000 Mesos#l\r\n");
        
    npc->sendSimple();
        }
    }
        else if(
    state == 3){
        
    npc->setVariable("type"type);
        if(
    type == 0){
        if(
    npc->getMesos() >= 1000000){
        
    npc->addText("Gachapon Ticket...");
        
    npc->giveItem(52200001);
        
    npc->giveMesos(-1000000);
        
    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("The Summoning Rock...");
        
    npc->giveItem(40060011);
        
    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("The Magic Rock...");
        
    npc->giveItem(40060001);
        
    npc->giveMesos(-20000);
        
    npc->sendNext();
        
    npc->end();
    }
        else{
        
    npc->addText("You don't have enough mesos!");
        
    npc->sendNext();
        
    npc->end();
        }
    }
        else if(
    type == 3){
        
    npc->addText("Have Fun ...");
        
    npc->sendNext();
        }
    }
        else if(
    state == 4){
        
    npc->addText("Bye!");
        
    npc->sendOK();
    }
        else{
        
    npc->end();
        }

    EDIT:
    I forgot to say this:
    Open NPCsScripts.h
    and add
    PHP Code:
    case 1012002npc_1012002(npc); break; 
    and
    PHP Code:
    static void npc_1012002(NPCnpc); 
    -AlmarM-
    Last edited by AlmarM; 27-04-08 at 10:36 PM. Reason: Forgot something


  2. #2
    Account Upgraded | Title Enabled! zander145 is offline
    MemberRank
    Apr 2008 Join Date
    Norfolk, VALocation
    966Posts

    Re: [Release] Gachapon,SummoningRock,MagiRock Seller [Working]

    Thanx for this ;D
    I'll test it soon... Might change the the number of summoning rocks and magic rocks it gives tho...

  3. #3
    Novice alon5 is offline
    MemberRank
    Apr 2008 Join Date
    3Posts

    Re: [Release] Gachapon,SummoningRock,MagiRock Seller [Working]

    where can i find him?

  4. #4
    Apprentice Bodekai is offline
    MemberRank
    Aug 2007 Join Date
    AustraliaLocation
    10Posts

    Re: [Release] Gachapon,SummoningRock,MagiRock Seller [Working]

    yeah.. I/we where thinking about making an amount box.. but we/HE is kinda busy atm ^^

  5. #5
    Apprentice Bodekai is offline
    MemberRank
    Aug 2007 Join Date
    AustraliaLocation
    10Posts

    Re: [Release] Gachapon,SummoningRock,MagiRock Seller [Working]

    Quote Originally Posted by alon5 View Post
    where can i find him?

    hennny, market near the gacha machine and freemarket portal =]

  6. #6
    Novice alon5 is offline
    MemberRank
    Apr 2008 Join Date
    3Posts

    Re: [Release] Gachapon,SummoningRock,MagiRock Seller [Working]

    not working...

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

    Re: [Release] Gachapon,SummoningRock,MagiRock Seller [Working]

    lol, there is npc with that id

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

    Re: [Release] Gachapon,SummoningRock,MagiRock Seller [Working]

    K, I added something I forgot to add...

  9. #9
    Account Upgraded | Title Enabled! DarkZero88 is offline
    MemberRank
    Apr 2008 Join Date
    357Posts

    Re: [Release] Gachapon,SummoningRock,MagiRock Seller [Working]

    compiling right now i will see if i get errors and if it work i will post update later

    Compiling:Perfect compile

    Edit:Awsome dude it worked perfectly ~.^ keep up the good work =)

    Almar i need some help, how can i change the prices xD

    RE RE RE RE RE RE RE RE RE EDIT >.> xD: dont need anymore help got it changed gacha tick to 500k ea =D

  10. #10
    mikethemak is offline
    MemberRank
    Apr 2008 Join Date
    Ragezone Spam SectionLocation
    1,019Posts

    Re: [Release] Gachapon,SummoningRock,MagiRock Seller [Working]

    i had errors, but when i added

    Code:
    #include "NPCs.h"
    #include "NPCsScripts.h"
    
    
    // Gach seller
    To the top, perfect compile. thanks m8 :)

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

    Re: [Release] Gachapon,SummoningRock,MagiRock Seller [Working]

    Hehe, ty I mayby have some other ideas :)

  12. #12
    Apprentice jcchampion is offline
    MemberRank
    Apr 2008 Join Date
    5Posts

    Re: [Release] Gachapon,SummoningRock,MagiRock Seller [Working]

    was looking for a rock seller thank you now i can use my clone :D

  13. #13
    Valued Member LastBattle is online now
    MemberRank
    Aug 2009 Join Date
    116Posts

    Re: [Release] Gachapon,SummoningRock,MagiRock Seller [Working]

    Ressurect the dead!



Advertisement