ghettobird
LUA newbie
Hello otlanders, today i present you a script i saw in a server and i thought why not make one just like it?
so let's go
actions/scripts
i hope you guys like it!,
@printer: i did like u said and i used "talktype" instead of numbers, thanks for your advice eace:
so let's go
actions/scripts
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local voc = getPlayerVocation(cid)
if item.actionid == actionidofdoor and item.itemid == itemidofdoor then
if voc == 3 then
doTransformItem(item.uid,item.itemid+1)
doTeleportThing(cid,toPosition)
doPlayerSendTextMessage(cid,"You are a paladin, you passed this door!", TALKTYPE_RED)
else
doPlayerSendTextMessage(cid,"You cant pass this door, you are not a paladin!", TALKTYPE_ORANGE)
end
return 1
end
end
i hope you guys like it!,
@printer: i did like u said and i used "talktype" instead of numbers, thanks for your advice eace: