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;
}