Hello fellow otlanders! i just started scriping i was reading a guide for lua scripting.
I think i got this script right i was trying to teleport the player to the temple IF they don't have white, red, black skull.
It it would cost 20000 gold coins
Thanks before hand!
(Please i've just started scripting pleae be kind ^^)
I think i got this script right i was trying to teleport the player to the temple IF they don't have white, red, black skull.
It it would cost 20000 gold coins
Thanks before hand!
(Please i've just started scripting pleae be kind ^^)
Code:
-- Created using QtLuaPad on to jun 16 2011
-- Written by: FakkaHe
function onSay(cid, words, param)
if getPlayerSkullTicks(cid, 1)
else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, You can't have white,red,black skull to use this teleport system)
end
if getPlayerSkullTicks(cid, 2)
else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, You can't have white,red,black skull to use this teleport system)
end
if getPlayerSkullTicks(cid, 3)
else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, You can't have white,red,black skull to use this teleport system)
end
if doRemoveItem(2160[, 2])
doTeleportThing(cid, 1003,1000,7[, pushmove = true])
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, You need 2 crystal coins to use the teleport!)
return TRUE
end