Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function chooseSpec(uid)
- if(not isCreature(uid) or #getPlayersOnline() == 0) then
- return true
- end
- local random = getPlayersOnline()[math.random(#getPlayersOnline()]
- if(getPlayerStorageValue(uid, 38290) < 1) then
- return setPlayerStorageValue(uid, 38290, random)
- end
- local player = getPlayerStorageValue(uid, 38290)
- if getThingPos(uid).x ~= getThingPos(player).x and getThingPos(uid).y ~= getThingPos(player).y then
- doTeleportThing(uid, getCreaturePosition(online[math.random(#online)]))
- doCreatureAddHealth(uid, 65550, true)
- doSetCreatureOutfit(uid, {lookType = 0}, -1)
- doCreatureSetHideHealth(uid, true)
- mayNotMove(uid, true)
- end
- return addEvent(chooseSpec, 1000, uid)
- end
Advertisement
Add Comment
Please, Sign In to add comment