Reyn
On to the next One
Hei all 
i'm not a master in lua but i tried a bit around
but anyhow the local function doesnt work ... i aint gettin errors, it just tells me for every vocation that i dont have the right vocation... what i've done wrong? o_o
and lol yeah the tabbing is failed but anyhow its allright for me on notepad
i'm not a master in lua but i tried a bit around
LUA:
local v = {3,4,7,8}
function onUse(cid, item, frompos, item2, topos)
if item.uid == 12000 then
if getPlayerVocation(cid) == v then
queststatus = getPlayerStorageValue(cid,20040)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Combat Knife.")
doPlayerAddItem(cid,2404,1)
setPlayerStorageValue(cid,20040,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
doPlayerSendTextMessage(cid,22,"You don't have the right vocation.")
end
else
return 0
end
return 1
end
but anyhow the local function doesnt work ... i aint gettin errors, it just tells me for every vocation that i dont have the right vocation... what i've done wrong? o_o
and lol yeah the tabbing is failed but anyhow its allright for me on notepad
Last edited: