hello friends i want so i click on the npc, just me, and he select someone from the have map, like there are 10 on the map he pulls one and teleport on, it just that when i click on the npc and i'm not chosen he doesn't teleport the other.
the script
set $randoom, getusers(8);
mes "tem "+$randoom+" pessoas aki";
.@rand = rand(1,$randoom);
setarray .id[1],$randoom;
if (.id[.@rand] >= 1){
.id[.@rand] = 0;
$randoom = 0;
mes "Você foi escolhido";
next;
warp "prontera",155,150;
end;
}
mes "[false]";
close;
}
Question
MasterSub
hello friends i want so i click on the npc, just me, and he select someone from the have map, like there are 10 on the map he pulls one and teleport on, it just that when i click on the npc and i'm not chosen he doesn't teleport the other.
the script
set $randoom, getusers(8); mes "tem "+$randoom+" pessoas aki"; .@rand = rand(1,$randoom); setarray .id[1],$randoom; if (.id[.@rand] >= 1){ .id[.@rand] = 0; $randoom = 0; mes "Você foi escolhido"; next; warp "prontera",155,150; end; } mes "[false]"; close; }
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.