well hi guys i started NPC scripting not long ago and stated my first NPC:
every thing is cool untill i press YES in the Yes / No window after clicking "yes" the window got dispose and nothing happed do i have any problem with the code ?Code:var status = 0; function start() { status = -1; action(1, 0, 0); } function action(mode, type, selection) { if (mode == -1) { cm.dispose(); }else if (mode == 0){ cm.sendOk("FareWell"); cm.dispose(); }else{ if (mode == 1) status++; else status--; if (status == 0) { cm.sendNext("Welcome to BlueStory hope you will have a good time our rate's are 500/300/5"); } else if (status == 1) { cm.sendYesNo("Do you want a small gift from #b Jack Frost #k have fun"); cm.gainItem("1012006, 1"); cm.gainNX("10000"); cm.warp(910000000, 0); cm.dispose(); } } }
if some 1 can fix me i will be gratefull :)



Reply With Quote


