ThunderMS - Because fun is a part of your life

Would you like to react to this message? Create an account in a few clicks or log in to continue.
ThunderMS - Because fun is a part of your life

Our users have posted a total of 4569 messages in 679 topics!
We have 8916 registered users, the newest registered user is xkyuzaki.


    EVENT SCRIPTS!!

    HermitDash
    HermitDash


    Number of posts : 293
    Age : 31
    Location : Brooklyn NYC
    Warning :
    EVENT SCRIPTS!! Left_bar_bleue0 / 1000 / 100EVENT SCRIPTS!! Right_bar_bleue

    Character Name : iKitten.
    Registration date : 2008-04-29

    EVENT SCRIPTS!! Empty EVENT SCRIPTS!!

    Post by HermitDash Sat May 31, 2008 8:43 am

    heres Another Release Very Happy
    this release modifys the map "urban underground" or nlc so that it spawns
    nx slimes and face boxes. so you don't have to host nx events at henesys or some other place.
    To get there just talk to chef at lith harbor

    Ok First download and extract the 600010000.xml_.zip on the bottom
    (refresh if u don't see it) then put the 600010000.xml into your maps in your server files

    Then open NPCs.cpp and put this way down at the bottom
    Code:
    void NPCsScripts::npc_1002006(NPC* npc){
    int state = npc->getState();
    if(state == 0){
    npc->addText("Hey, Do wanna go to The NxGrounds ,its only 5 Million mesos to go?");
    npc->sendYesNo();
    }
    else if(state == 1){
    if(npc->getMesos() > 5000000)
    if(npc->getSelected() == YES){
    npc->end();
    npc->giveMesos(-5000000);
    npc->teleport(600010000);
    }
    }
    else if(state == 2){
    npc->addText("Alright then...");
    npc->sendOK();
    npc->end();
    }
    }

    Open up NPCsScript.h and put this under codes that look the same as it
    Code:
    static void npc_1002006(NPC* npc);


    and same with this
    Code:
    case 1002006: npc_1002006(npc); break;


    Then do a Debug-release or rebuild/compile
    then start up your server and find chef at lith harbor to get in

    You Can Change the meso fee by finding
    Code:
    else if(state == 1){
    if(npc->getMesos() > 5000000)
    if(npc->getSelected() == YES){
    npc->end();
    npc->giveMesos(-5000000);
    npc->teleport(600010000);
    }

    Change the red part to the amount of meso fee you want.

    So if i wanted it to charge 1m mesos then it would be like this

    Code:
    else if(state == 1){
    if(npc->getMesos() > 1000000)
    if(npc->getSelected() == YES){
    npc->end();
    npc->giveMesos(-1000000);
    npc->teleport(600010000);
    }
    COPIED FROM CEF NO CREDITS TO ME ONLY FOR COPY AND PASTE!

      Current date/time is Tue Nov 19, 2024 12:29 am