in_array() for Hercules?

Zirius

New member
Messages
261
Points
0
Is there a equivalent function of in_array() in Hercules? I am trying to make a script that records to an array maps at which a character went, then i wanna do a script that triggers if a specific map is inside the array.

Thanks!

 
Code:
xxxx    script xxxx    xxx,{.@m$ = strcharinfo(3);for(.@i=0;.@m$ != .yourarray$[.@i] && .@i< .size ; i++);if(.@i<.size) {    got it!}Oninit:setarray .yourarray$,"XXX","yyy" "zzz";.size = getarraysize(.yourarray$);} 
 
Last edited by a moderator:
Back
Top