I tried your script this way:
- script wisp -1,{
OnWhisperGlobal:
if(getgmlevel() > 50){
.@loop1 = 1;
while(.@loop1){
mes "Choose an option";
next;
switch(select("Option1:Option2:Option3")) {
case 1:
mes "Write a number between 0 and 6.";
while(1){
input .@TdayofWeek; //Script stops working right here. Input doesn't show up.
if ((.@TdayofWeek >= 0) && (.@TdayofWeek <= 6))
break;
}
setarray .@dayofWeek[getarraysize(.@dayofWeek)], .@TdayofWeek;
break;
case 2:
//Nothing yet
break;
case 3:
.@loop1 = 0;
break;
}
}
close;
}
}
and couldn't reproduce. It worked right.
This test was made with the latest git commit. What version are you using?
A weird issue indeed.
Really weird. The first change would have work, the second one is a bit more extreme. Did you recompile? Sorry if that's sound like asking you a novice question, but I don't really know what else happens then.
Does your map console shows up a MAX_EVENTQUEUE warning? Or else, make sure you have loaded the script right. Try to put it inside another working script and tell me what happens.
use TiMz script and change the item to
20580,Spirit_of_Hunter,Spirit of Hunter,2,2,,10,,,,,0x00000800,7,2,,,,,,{ skilleffect "SL_HUNTER",0; sc_start4 SC_SPIRIT,350000,5,460,0,0; doevent "sample_soullink_hp::OnPCStatCalcEvent";},{},{}