-
How does this work?
function run(){
reward = [1452002,1452003];
items = [[4003001, 4000000], [4011001,
var text = "What do you want to do?\r\n\r\n#b";
for(var i = 0; i < reward.length; text += "#L" + i + "##i" + reward[i] + "# #t" + reward[i] + "#\r\n", i++); 4003000]];
quantity = [[5, 30], [1, 3]];
var menu = self.askMenu(text);
self.say(self.exchange(reward[s], 1, items[s], quantity[s], true) ? "Exchange!" : "Fail...")
Don't need "var status"? i don't know.... plz explain
-
Re: How does this work?
Where did you find this? That's a Nexon termed script that official servers would look like. I don't think any public source has self.say and self.askMenu system like Nexon. I did release the ScriptMan for this, but left it like Odin's though.. so iunno.
As for the "status" variable, Nexon doesn't use it like OdinMS emulators do. It's entirely different, and if this is replicating what they do then there's no need for it here, it'll be handled server-sided.