Good afternoon folks! I'm using a script that creates instances for PT. Would you like to know how to make the npc summon mobs when talking to him?
prontera,150,150,0 script Dark Emissary 100,{
. @ mdName $ = "Kingdom of Darkness";
mes "[Emissary of Darkness]";
mes "The city is completely destroyed!";
mes "Few people will survive the attack of the dreaded The Dark!";
next;
mes "Help me eliminate everyone in the Kingdom of Darkness";
mes "That I will grant you great rewards!";
next;
switch (select ("Open Kingdom: Enter Kingdom: Leave Kingdom")) {
next;
case 1:
if (countitem (7227) <1) {
mes "[Emissary of Darkness]";
mes "Bring me the Key of Darkness and I will open the gates to the Kingdom of Darkness";
mes "Requirement:";
mes "1x" + getitemname (7227);
close;
}
if (instance_create (. @ mdName $) <0) {
mes "^ 0000ff" +. @ mdName $ + "^ 000000 cannot be opened now.";
close;
}
mes "[Emissary of Darkness]";
mes "The gate for ^ 0000ff" +. @ mdName $ + "^ 000000 has been opened.";
mes "I wish you luck !.";
close;
case 2:
if (instance_enter (. @ mdName $)) {
mes "[Emissary of Darkness]";
mes "There was a problem entering the instance.";
close;
}
end;
case 3:
instance_destroy ();
mes "[Emissary of Darkness]";
mes "The instance has been destroyed.";
close;
}
}
nov_grnds,218,71,1 script Dark Emissary 100,{
mes "Hello" + StrCharInfo (0) + ", Do you want to start Solo mode?";
next;
if (select ("Yes, come on: No, thanks") == 2) {close; }
mes "Okay, good luck!";
close;
}