Starter Package NPC v75.

Newbie Spellweaver
Joined
Sep 4, 2010
Messages
11
Reaction score
0
:8:Hey there ,

i have decided to Release this NPC.

Only this one. From my Server JoyStory.

Please Enjoy.

If something doesnt work Properly Please PM Me or post below.

For the Ultimate Leechers a Tutorial how to use it:

-Make a new .js (JavaScript file) or open one NPC ID.
-Copy and Paste the PHP Code below in it.
-Do not Change anything. Remove Credits and ill Remove this.
-Save it.
-Open server and do the Command !npc (Npc id)
-If you Copy + Pasted Allright it Should Work.

(* Idk yet if it Fully Works since im not at my Server atm)

Im Updating This script Almost Every Day. At A Certain Moment Not Anymore


Questions.

Are there still coming updates?

Yes there are. Its currently v1.7

Can i Remove your Credit and Steal it?

Obviously not. If Someone steals it and Claims to be His i will Remove my Scripts and never Release Anything Usefull Again.

What does this Script?

As you can see at the //Description Part , It gives away Starter Packs.

Can i Modify this Script to my Likings?

Yes you can Modify the Items and Stuff..

*Modify at your Own Risk , Script might not work anymore.
**Make a Back-Up before Messing. :wink:


You cannot Modify:
Credits, Otherwise Resulted in Removal.

Current Version | 1.7. | Not Tested , Please test and Report here.



Please Enjoy :thumbup:
_________________________________________________________________

PHP:
/*

Author: iRyann and Complexity of JoyStory v75.

Description: Gives Every Seperate Class a Starter Package.

Current Version | 1.6 |

Note's: 

[v1] [+] Scripted Whole NPC.
[v1.5] [+] Added Anti-Spamm value. [±] Still in Test.
[v1.6] [+] Fixed Selections.
[v1.7] [+] Fixed Small error. [ Missed one ) ] 

*/



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

function action(mode, type, selection) { 
    if (mode == 1) 
        status++; 
    else { 
        cm.sendOk("#e#kOk, see you next time!"); 
        cm.dispose(); 
        return; 
    } 
    if (status == 0) {	
        cm.sendSimple("Hey there Newbie , Would you like a Starter Pack? \r\n\r\n #L0# Yes Please!#1");
		
	} else if (status == 1) {	
	} if (selection = 0) {
	cm.sendSimple("Which Starter Pack would you Like? \r\n\r\n #L1#Warrior/Dawn Warrior#l \r\n #L2#Archer/Wind Archer#l \r\n #L3#Mage/Blaze Wizzard#l \r\n #L4#Thief/NightWalker Pack#l #L5#Pirate/Thunder Breaker#l");
	
	} else {
	} if (cm.haveItem(2000002, 500)) { // Checks for the White Pots. Will add more of the Items later here.
	cm.sendOk("Trying to spamm Package's!? **** off and Continue your Training!");
	cm.dispose();
	
	} if (selection == 1) {
	cm.sendOk("So you have Chosen the Warrior Package? Here you go!");
	cm.gainItem(1302024, 1); 
	cm.gainItem(1432000, 1);
	cm.gainItem(2000002, 500); // Pots White & The 500 mp One.
	cm.gainItem(2000006, 500); // Same.
	cm.gainItem(2002006, 25);  // Little Buff Item.
	cm.gainItem(2022061, 3);
	cm.gainNX(35000); 
	cm.gainMeso(25000);
	cm.dispose();
	
	} else if (selection == 2) {
	cm.sendOk("So you have Chosen the Archer Package? Here you go!");
	cm.gainItem(1452051, 1);
	cm.gainItem(2060001, 5000); // Arrows 
	cm.gainItem(2061003, 5000); // X-Box arrows.
	cm.gainItem(1452054, 1);
	cm.gainItem(1462047, 1);
	cm.gainItem(2000002, 500);
	cm.gainItem(2000018, 500);
	cm.gainItem(2022061, 3);
	cm.gainItem(2002005, 25);
	cm.gainNX(35000);
	cm.gainMeso(25000);
	cm.dispose();
	
	} else if (selection == 3) { 
	cm.sendOk("So you have Chosen the Mage Package? Here you go!");
	cm.gainItem(1382000, 1);
	cm.gainItem(1372043, 1);
	cm.gainItem(2000002, 500);
	cm.gainItem(2000018, 500);
	cm.gainItem(2022061, 3);
	cm.gainItem(2002003 , 25);
	cm.gainNX(35000);
	cm.gainMeso(25000);
	cm.dispose();
	
	} else if (selection == 4) { 
	cm.sendOk("So you have Chosen the Thief Package? Here you go!");
	cm.gainItem(1472000, 1);
	cm.gainItem(2070001, 5000); // Stars 
	cm.gainItem(1332067, 1);
	cm.gainItem(2002009, 25);
	cm.gainItem(2000002, 500);
	cm.gainItem(2000018, 500);
	cm.gainItem(2022061, 3);
	cm.gainNX(35000);
	cm.gainMeso(25000);
	cm.dispose();
	
	} else if (selection == 5) { 
	cm.sendOk("So you have Chosen the Pirate Pack? Here you go!");
	cm.gainItem(1492000, 1);
	cm.gainItem(1482000, 1);
	cm.gainItem(2330000, 5000); // No Idea.
	cm.gainItem(2002006, 25);
	cm.gainMeso(25000);
	cm.gainNX(35000);
	cm.gainItem(2000002, 500);
	cm.gainItem(2000018, 500);
	cm.gainItem(2022061, 3);
    cm.dispose();	
	}
}
 
Last edited:
It's fine if you're a noob and don't understand arrays, but
if you used something like
Code:
function start() {
var text = "you gained ";
var warrior = [1312017, 1432000, 1422002, 1050110, 1051002, 1002257, 1002536, 5211046, 5360042];

for (var i = 0; i < warrior.length; i++) {
cm.gainItem(warrior[i], 1);
text += "#v" + warrior[i] + "#\r\n";
}
cm.sendOk(text);
cm.dispose();
}


---------- Post added at 09:06 AM ---------- Previous post was at 09:05 AM ----------

and I wasn't trying to flame, if you're a "noob", or whatever you just called yourself, then it's an O.K. release i guess :)
 
It's fine if you're a noob and don't understand arrays, but
if you used something like
Code:
function start() {
var text = "you gained ";
var warrior = [1312017, 1432000, 1422002, 1050110, 1051002, 1002257, 1002536, 5211046, 5360042];

for (var i = 0; i < warrior.length; i++) {
cm.gainItem(warrior[i], 1);
text += "#v" + warrior[i] + "#\r\n";
}
cm.sendOk(text);
cm.dispose();
}


---------- Post added at 09:06 AM ---------- Previous post was at 09:05 AM ----------

and I wasn't trying to flame, if you're a "noob", or whatever you just called yourself, then it's an O.K. release i guess :)

Ah , i will start Learning Arrays and Var's when im abit more Experienced

But , Back to Topic , What do you think about the NPC?

is it abit Good? x]

*Note: its my First-Ever self-Made NPC. :scared:

Edit:
I know you weren't trying to flame. I Dont take much Things as a Flame or Insult.

I Noticed that People here at Rage. Are Flaming / Argueing alot instead of Making fun and Releasing / Developing Together.

They get stupid little Fights like: No dude u gotta use this: Lalala

No Man use this

**** u

**** this.

U Get what i mean?
 
Last edited:
Array's and Variables are not hard, Actually, They are alot easier to deal with and it makes the code alot cleaner and easier to use. The more you practice making some random npc's, the better you will get.

Also something you might not know,
If there is a function inside MapleCharacter you would like to use, instead of referencing it inside NPCConversationManager. You can use cm.getPlayer().MapleCharacterFunctionHere();

I.E
cm.getPlayer().getStr();

_______________________________________

So what does the cm.getPlayer().getStr(); do?

Lmao.

-Anyway idk how to fix. Im a newb at Coding.

i Tried different Starter Codes (To Start the NPC)

None of them work , Atleast , For a Simple Teleport NPC it just warps you and doesnt say the text.

If anyone could Fix it Gladly Thanked. >_>
 
the function getStr is inside MapleCharacter.java and the function getPlayer is a function referencing it too MapleCharacter

getStr means get Your Players strength, Before coding anymore, I would suggest taking apart a previous working npc and read the functions inside MapleCharacter and NPCConversationManager. They will help you.

Hmm Thanks but ill Stick to the Newbie thing for a lil longer


Btw if you know how to fix my NPC (Non Array Plox <3 )

I Would really Appreciate it:blushing:
 
Back