prontera,178,208,3 script Quest Marker 55,{
mes "Hello.";
next;
if (select("Enable:Disable") == 2) {
showevent -1,0;
mes "Show Event Disabled.";
close;
}
showevent 1,0;
mes "Show Event Enabled.";
close;
}
A warg summoned somehow when I choose disabled (showevent -1,0).
Here is the src of showevent function:
BUILDIN_FUNC(showevent)
{
TBL_PC *sd = script_rid2sd(st);
struct npc_data *nd = map_id2nd(st->oid);
int state, color;
if( sd == NULL || nd == NULL )
return 0;
state = script_getnum(st, 2);
color = script_getnum(st, 3);
if( color < 0 || color > 3 )
color = 0; // set default color
clif_quest_show_event(sd, &nd->bl, state, color);
return 0;
}
//Quest Log System [inkfish]
BUILDIN_DEF(setquest, "i"),
BUILDIN_DEF(erasequest, "i"),
BUILDIN_DEF(completequest, "i"),
BUILDIN_DEF(checkquest, "i?"),
BUILDIN_DEF(changequest, "ii"),
BUILDIN_DEF(showevent, "ii"),
{NULL,NULL,NULL},