I get this error in console please help ;p
ambolt.lua:
ambolt.lua:
LUA:
local pvoc = getPlayerVocation(cid)
local ppos = {x=3800,y=3124,z=7}
local stpos = {x=3799,y=3125,z=7}
local mcpos = {x=3801,y=3125,z=7}
function onUse(cid, item, frompos, item2, topos)
if item.uid == 37654 then -- change ***
if getCreaturePosition(cid) == ppos and getThingfromPos(stpos).itemid == 2350 and getThingfromPos(mcpos).itemid == 8980 then -- change * into swordtil id and ** into mexica cabilar id
setPlayerStorageValue(cid,37654,1)-- change **** into storagevalue
doRemoveItem(getThingfromPos(stpos).uid,1)
doRemoveItem(getThingfromPos(mcpos).uid,1)
if pvoc == 1 or pvoc == 2 or pvoc == 3 or pvoc == 5 or pvoc == 6 or pvoc == 7 then
doPlayerAddItem(cid, 1988) -- change *** into exp scroll id
elseif pvoc == 4 or pvoc == 8 then
doPlayerAddItem(cid, 1988) -- change *** into ring id
end
end
end
end