- Joined
- Jul 26, 2008
- Messages
- 280
- Reaction score
- 0
Alright updated.
Even with import?Yea by the way, in NPCConversationManager you cant use c
Replace 'c' with getClient()
Even with import?
Sadly, yes I noticed.nice function
idk why people keep on blaming you on leeching , you are so not a leecher![]()
Alright thanks updated. Guess that should show that I didn't leech.c is a variable not a class
So imports wouldnt do anything
However c is in NPCConversationManager's superclass, AbstractPlayerInteraction, which offers getClient() to have access to c
Oh. Got the idea from xelkin. This was actually made for FantiMS but I noticed a dead release section.leeched idea , sorry my bad![]()
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();
}
}
public void openNpc(int id) {
dispose();
NPCScriptManager.getInstance().start(getClient(), id);
}