Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Fbi npc

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jun 21, 2008
Messages
72
Reaction score
0
I know it ain't much but what the heck i made cause i had nothing to do

i kinda leeched the idea from a private server but they sold them in a shop they had to get the items to join the guild FBI

you could make a guild named FBI and so on..

Code:
/*
Made by :DkWar (RaGEZONE)
Edited by :DrFusion (RaGEZONE)
                 bendax3 (RaGEZONE
 
*/
var status = 0;

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0){
                if (cm.getPlayer().getMeso() > 1,337,000,000) {
	cm.sendYesNo("HEY Wanna Be A #rSecret Agent#k In The #rFBI#k?? Well To Join Them Click Yes!! Side Note : You Need #r1,337,000,000#k Mesos To Buy The Whole Set!!")
      cm.gainItem(1122005,1);
      cm.gainItem(1102035,1);
      cm.gainItem(1002304,1);
      cm.gainItem(1022009,1);
      cm.gainItem(1050050,1);
      cm.gainItem(1082231,1);
      cm.gainItem(1072111,1);
      cm.gainItem(1702180,1);
      cm.gainMeso(-1337000000);	

	} else if (status == 1){
      cm.sendOk("Since You Have Spend So Much Money Take Some #v5220000# And Try Your #rLUCK#k")
      cm.gainItem(5220000,10)
    	} else {
                cm.sendOk("Oh. i see... Well then, have fun in #rE2MS!#k");
                cm.dispose(); 
		}
	}
}

Instructions
1. Copy the above code
2. Paste into a notepad
3. Save As <your npc's id>.js

O.R.
1. Download the below file
2. Open it up then click file
3. Click Save As
4. Save As <your npc's id>.js

I would be making more npc upon request in this thread... the npc script will be upload at least 1 day
 

Attachments

You must be registered for see attachments list
Last edited:
Skilled Illusionist
Loyal Member
Joined
Jun 23, 2008
Messages
324
Reaction score
0
Re: [Release]FBI NPC

Don't really get what u mean by sold them in a shop they had to get the items to join the guild FBI, mind explain it more clearer or post some SS?
 
Experienced Elementalist
Joined
Aug 31, 2008
Messages
214
Reaction score
0
Re: [Release]FBI NPC

this is just like a NPC that sell like wizet suit and stuff, then U need that much mesos to buy it.....is like buying wizet suit, just that he said it as FBI suit....xD
 
Skilled Illusionist
Loyal Member
Joined
Jun 23, 2008
Messages
324
Reaction score
0
Re: [Release]FBI NPC

Oh ok i get it know, But he should edit it and call it Wizet NPC rather than FBI? coz its gonna confuse ppl o_O
 
Skilled Illusionist
Loyal Member
Joined
Jun 23, 2008
Messages
324
Reaction score
0
Re: [Release]FBI NPC

okok, I get it now. I really understand it now =D. THanks for all the explaination
 
Newbie Spellweaver
Joined
Apr 24, 2008
Messages
89
Reaction score
0
Re: [Release]FBI NPC

You didnt add a check to it lol. It only gives items and then takes mesos IF there is any.
 
Experienced Elementalist
Joined
Jul 8, 2008
Messages
246
Reaction score
0
Re: [Release]FBI NPC

and if theres no mesos, it gives items any way and just doesnt take mesos -.-

if (status == 0){
if (cm.getPlayer().getMeso() > 1,337,000,000) {
cm.sendYesNo("HEY Wanna Be A #rSecret Agent#k In The #rFBI#k?? Well To Join Them Click Yes!! Side Note : You Need #r1,337,000,000#k Mesos To Buy The Whole Set!!")
cm.gainItem(1122005,1)
cm.gainItem(1102035,1)
cm.gainItem(1002304,1)
cm.gainItem(1022009,1)
cm.gainItem(1050050,1)
cm.gainItem(1082231,1)
cm.gainItem(1072111,1)
cm.gainItem(1702180,1)
cm.gainMeso(-1337000000)
} else {
cm.sendOk("Your broke");

And the check is like that in my src, i know theres another way like cm.getMeso or something, the get player way is more client efficient
 
Junior Spellweaver
Joined
Sep 2, 2008
Messages
130
Reaction score
0
Re: [Release]FBI NPC

PHP:
	cm.sendYesNo("HEY Wanna Be A #rSecret Agent#k In The #rFBI#k?? Well To Join Them Click Yes!! Side Note : You Need #r1,337,000,000#k Mesos To Buy The Whole Set!!")[B];[/B]
      cm.gainItem(1122005,1)[B];[/B]
      cm.gainItem(1102035,1)[B];[/B]
      cm.gainItem(1002304,1)[B];[/B]
      cm.gainItem(1022009,1)[B];[/B]
      cm.gainItem(1050050,1)[B];[/B]
      cm.gainItem(1082231,1)[B];[/B]
      cm.gainItem(1072111,1)[B];[/B]
      cm.gainItem(1702180,1)[B];[/B]
      cm.gainMeso(-1337000000)[B];[/B]	

      cm.sendOk("Since You Have Spend So Much Money Take Some #v5220000# And Try Your #rLUCK#k")[B];[/B]
      cm.gainItem("5220000,10)[B];[/B]
Change
PHP:
cm.gainItem("5220000, 10)
to
PHP:
cm.gainItem(5220000, 10);

... It wont hella work without changing..
 
Newbie Spellweaver
Joined
Jun 21, 2008
Messages
72
Reaction score
0
Re: [Release]FBI NPC

Edited and done...

thank to ...
DrFusion
bendanx3
 
Junior Spellweaver
Joined
Sep 2, 2008
Messages
130
Reaction score
0
Re: [Release]FBI NPC

Edited and done...

thank to ...
DrFusion
bendanx3

Its not done.. lolz -.-


PHP:
/*
Made by :DkWar (RaGEZONE)
Edited by :DrFusion (RaGEZONE)
Edited2 b :bendanx3 (RaGEZONE)

*/
var status = 0;

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0){
                if (cm.getPlayer().getMeso() > 1,337,000,000) {
	cm.sendYesNo("HEY Wanna Be A #rSecret Agent#k In The #rFBI#k?? Well To Join Them Click Yes!! Side Note : You Need #r1,337,000,000#k Mesos To Buy The Whole Set!!");
      cm.gainItem(1122005,1);
      cm.gainItem(1102035,1);
      cm.gainItem(1002304,1);
      cm.gainItem(1022009,1);
      cm.gainItem(1050050,1);
      cm.gainItem(1082231,1);
      cm.gainItem(1072111,1);
      cm.gainItem(1702180,1);
      cm.gainMeso(-1337000000);	

	} else if (status == 1){
      cm.sendOk("Since You Have Spend So Much Money Take Some #v5220000# And Try Your #rLUCK#k");
      cm.gainItem(5220000,10);
    	} else {
                cm.sendOk("Oh. i see... Well then, have fun in #rE2MS!#k");
                cm.dispose(); 
		}
	}
          }
}


This should work.. didnt test.
 
Newbie Spellweaver
Joined
Jun 21, 2008
Messages
72
Reaction score
0
Re: [Release]FBI NPC

oh damm forgot all about it...

sry i have been out of coding a long time abt 1/2 year give or take editing now...
 
Supreme Arcanarch
Loyal Member
Joined
Jul 21, 2008
Messages
969
Reaction score
1
Re: [Release]FBI NPC

so this sells wizet items?
 
Master Summoner
Loyal Member
Joined
Jul 27, 2008
Messages
583
Reaction score
0
Re: [Release]FBI NPC

The bendax "fixes" has been not "updated".

Also, it's >=, since, if you have 1337000000 it will not let you buy (But meh, the rate that someone would have that exactly amount is 1/100). Also, it's the very first time i see a integer check with coma Oo
 
Junior Spellweaver
Joined
Sep 2, 2008
Messages
130
Reaction score
0
Re: [Release]FBI NPC

The bendax "fixes" has been not "updated".

Also, it's >=, since, if you have 1337000000 it will not let you buy (But meh, the rate that someone would have that exactly amount is 1/100). Also, it's the very first time i see a integer check with coma Oo


Lols integer check with commas.. =X
Yea not updated.. You're still missing some ; ..
 
Elite Diviner
Joined
Jul 16, 2008
Messages
411
Reaction score
0
Re: [Release]FBI NPC

kinda useless....But nice job anyways
 
Master Summoner
Joined
Jul 28, 2008
Messages
503
Reaction score
0
Re: [Release]FBI NPC

its cool i guess, not what i thought it would be :p
 
Newbie Spellweaver
Joined
Jun 21, 2008
Messages
72
Reaction score
0
Re: [Release]FBI NPC

thx for teh comments and where missing ;?
 
Best Commu NA
Loyal Member
Joined
Sep 12, 2007
Messages
507
Reaction score
38
Re: [Release]FBI NPC

SS Plox :)
 
Status
Not open for further replies.
Back
Top