Hello ~
I'm working with MoopleDev, on a party quest, I'm quite new to this but I'll eventually figure it out by myself...
My NPC
Anyway here are my problems:
First of all, when I warp the party to the PQ map, (for now I'm testing it alone, so i'm lonely in my party) well, I get stuck, even if I do cm.dispose:
Secondly, when I enter the map, monsters are already there, is there any way to delay the spawning in this map (the mobs are good, I just want to delay the spawn.), the best would be to make a scheduled spawn when hitting a scripted portal.
Then, when hitting the same scripted portal, I'd like to spawn a certain monster, over a reactor, but I guess I can handle this.
Then, in a Event script, is there any way to detect when someone is dropping an item (just like when someone leaves party or something.)?
And finally, on the instance map is a NPC, but he is also on many other maps, and I'm trying to get the EIM object but I fail hard... here's my code:
Thanks, nico.
I'm working with MoopleDev, on a party quest, I'm quite new to this but I'll eventually figure it out by myself...
My NPC
Anyway here are my problems:
First of all, when I warp the party to the PQ map, (for now I'm testing it alone, so i'm lonely in my party) well, I get stuck, even if I do cm.dispose:
Code:
else if (status == 3)
{
var em = cm.getEventManager("myPQ");
em.setProperty("difficulty", (selection < 0 || selection > 2) ? 0 : selection);
em.startInstance(cm.getParty(), cm.getPlayer().getMap());
cm.dispose();
}
Then, when hitting the same scripted portal, I'd like to spawn a certain monster, over a reactor, but I guess I can handle this.
Then, in a Event script, is there any way to detect when someone is dropping an item (just like when someone leaves party or something.)?
And finally, on the instance map is a NPC, but he is also on many other maps, and I'm trying to get the EIM object but I fail hard... here's my code:
Code:
importPackage(Packages.scripting);
//...
else if (status == 1)
{
if(isInPQ() == true) cm.getPlayer().getEventInstance().unregisterPlayer(cm.getPlayer()); // epic fail
else cm.warp(warpback);
cm.dispose();
}
Thanks, nico.