Seems pretty good. Keep it up!
Printable View
Seems pretty good. Keep it up!
I'm going to combine both releases *.*
i like this more xdCode:function start() {
cm.sendSimple ("Welcome ! I am the All-In-One NPC. Select one of these NPCs you want to open. \r\n#L0##bSera#k #l\r\n#L1##bFredrick#k #l\r\n#L2##bCody#k #l\r\n#L3##bDuey#k #l\r\n#L4##bNaNa(H)#k #l");
}
function action(mode, type, selection) {
switch (selection) {
case 0:
cm.dispose();
cm.openNpc(2100); //Sera NPC id
break;
case 1:
cm.dispose();
cm.openNpc(9030000); //Fredrick NPC id
break;
case 2:
cm.dispose();
cm.openNpc(9200000); //Cody NPC id
break;
case 3:
cm.dispose();
cm.openNpc(9010009); //Duey NPC id
break;
case 4:
cm.dispose();
cm.openNpc(9201001); //NaNa(H) NPC id
break;
default:
cm.dispose();
}
}
isn't that my idea when i post it i want some1 to help me doing it http://forum.ragezone.com/f426/help-...er-npc-462049/
its even the same cm.openNpc that in the thread so type the idea from me as i think.
You can just put dispose() in the openNpc function itself
Instead of doing it everytime in the NPCs
what he said ^
try
Code:public void openNpc(int id) {
dispose();
NPCScriptManager.getInstance().start(getClient(), id);
}
yeh this was originally from fantims, xarezx was working on something then came up with this, so this is 100% not leeched :)
its a 2 lines (3 in my case) npc method, how can it be leached, basic java...
DrFusion... I just wonder how u understand most java stuff...
Its nice i guess. ;]
well i doubt it but, anyone could be right, i honestly dont think its leeched and i think its a nice release, but thats only my thought
thats what im saying, even if it is 'leached' seems stupid for something thats pretty much self explanatory in the file it self.
What Do you mean?
public void openShop(int id) {
MapleShopFactory.getInstance().getShop(id).sendShop(getClient());
}
public void openNpc(int id) {
NPCScriptManager.getInstance().start(getClient(), id);
}
Basically not much of a diff
mm hmm. very simple indeed.