Page 1 of 1

Zone ID random

Posted: Tue Jan 28, 2014 2:03 am
by ZZZZZ
I have been having issues with checking Zone ID on official servers when entering siege in particular. Not sure why but the Zone ID is supposed to be 402, but I keep getting 1402, 2402 even 3402 as I did today. Not sure if its just their siege system that does it or what.

I'm just wondering how I can look for just '402' in the Zone ID, rather than having a long list of if zoneid == 402, 1402, 2402 etc.

Can't test currently, was thinking something like find.string would work, but a string is a series of letters, not numbers right? So not sure.

Re: Zone ID random

Posted: Tue Jan 28, 2014 2:37 am
by lisa
those are for "channels"
getZoneId()
is set up to ignore the 1,000's though, so I don't see this as being an actual issue if you are using getZoneId()

To answer your actual question though.

%1000

Code: Select all

Command> print(1402%1000)
402
Command> print(3402%1000)
402

Re: Zone ID random

Posted: Tue Jan 28, 2014 3:31 am
by rock5
He's probably using the in game function.

Re: Zone ID random

Posted: Tue Jan 28, 2014 4:41 am
by ZZZZZ
Ah right, yeh I was using the in game function to aquire the Zone id. I'll change them to getZoneId(), thanks.