Pro Warbringer
Retired with developing
well i just started yesterday and i make rly big fails
so if ya want if its correct watch it
REP++ PLZ?:0
so if ya want if its correct watch it
Code:
local text = "You're already a GOD"
local text2 = "You're now a GOD"
local place = {x=xxxx, y=xxxx, z=xxxx} --Where they will be teleported to
function onStepIn(cid, item, position, fromPosition)
if item.uid == 1234 then and getPlayerGroupId (cid) ~= 3 then
if getPlayerLookDir(cid) == 0 then
newdir = 2
elseif getPlayerLookDir(cid) == 1 then
newdir = 3
elseif getPlayerLookDir(cid) == 2 then
newdir = 0
else
newdir = 1
end
setPlayerGroupId(cid, 3)
if item.uid == 1234 and getPlayerGroupId(cid) ~= 3 then
setPlayerGroupId(cid, 3)
doTeleportThing(cid, place)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, text2)
else
doPlayerSendCancel(cid, text)
doMoveCreature(cid, newdir)
end
end
REP++ PLZ?:0
Last edited by a moderator: