Discovery
Developing myself
script
error console
LUA:
function onstepin(cid, item, pos, frompos)
if isplayer(cid) then
local n, t = 0, getplayersonline()
for i = 1, #t do
if getplayeraccess(t[i]) == 0 then
n = n + 1
end
end
local cur, outfit, position = getcreatureoutfit(cid)
if n % 2 == 0 then -- even
outfit = {looktype=cur.looktype, lookhead=94, lookbody=113,
looklegs=114, lookfeet=94, lookaddons=3}
position = {x=1188, y=1074, z=7}
else
outfit = {looktype=cur.looktype, lookhead=82, lookbody=101,
looklegs=101, lookfeet=75, lookaddons=3}
position = {x=1090, y=1097, z=7}
else
outfit = {looktype=cur.looktype, lookhead=114, lookbody=77,
looklegs=77, lookfeet=77, lookaddons=3}
position = {x=1128, y=1097, z=7}
end
docreaturechangeoutfit(cid, outfit)
doteleportthing(cid, position)
end
end
error console
end expected <to close 'if' at line 10> near 'else'
Last edited by a moderator: