ThunderMS - Because fun is a part of your life

Our users have posted a total of 4568 messages in 677 topics!
We have 8884 registered users, the newest registered user is hehenemt.

  • Post new topic
  • Reply to topic

EVENT SCRIPTS!!

Share

HermitDash

Number of posts: 293
Age: 16
Location: Brooklyn NYC
Warning:
0 / 1000 / 100

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

EVENT SCRIPTS!!

Post by HermitDash on Sat May 31, 2008 3:43 pm

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!


_________________

New:

Favorite:
  • Post new topic
  • Reply to topic

Current date/time is Fri Nov 27, 2009 6:01 am