Blackcody
RiseOfTibia Owner
- Joined
- Aug 31, 2008
- Messages
- 136
- Reaction score
- 1
:blink: i have been working on this for 4 hours
[Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/scripted.lua:
147: unexpected symbol near '=='
[Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/scripted.lua)
data/actions/scripts/quests/scripted.lua:147: unexpected symbol near '=='
Code:
elseif item.uid == 60321 then
if getPlayerStorageValue(cid,60321) == -1 then
doPlayerSendTextMessage(cid,25,"You Found A BackPack.")
local playerVoc = getPlayerVocation(cid)
if playerVoc == 1 then -- Wizard --
local bag = doPlayerAddItem(cid,1988,1)
doAddContainerItem(bag,2667,10) -- fish --
doAddContainerItem(bag,2461,1) -- Leather helm --
doAddContainerItem(bag,2467,1) -- Leather armor --
doAddContainerItem(bag,2649,1) -- Leather legs --
doAddContainerItem(bag,2643,1) -- leather boots --
doAddContainerItem(bag,2175,1) -- spell book --
doAddContainerItem(bag,1987,1) -- bag --
doAddContainerItem(bag,7618,5) -- hp pot --
doAddContainerItem(bag,2190,1) -- wand --
else
if playerVoc == 2 then -- Battle Mage --
local bag = doPlayerAddItem(cid,1988,1)
doAddContainerItem(bag,2667,10) -- fish --
doAddContainerItem(bag,2461,1) -- Leather helm --
doAddContainerItem(bag,2467,1) -- Leather armor --
doAddContainerItem(bag,2649,1) -- Leather legs --
doAddContainerItem(bag,2643,1) -- leather boots --
doAddContainerItem(bag,2175,1) -- spell book --
doAddContainerItem(bag,1987,1) -- bag --
doAddContainerItem(bag,7618,5) -- hp pot --
doAddContainerItem(bag,2376,1) -- sword --
doAddContainerItem(bag,2190,1) -- wand --
else
if playerVoc == 3 then -- Tank --
local bag = doPlayerAddItem(cid,1988)
doAddContainerItem(bag,2667,10) -- fish --
doAddContainerItem(bag,2461,1) -- Leather helm --
doAddContainerItem(bag,2467,1) -- Leather armor --
doAddContainerItem(bag,2649,1) -- Leather legs --
doAddContainerItem(bag,2643,1) -- leather boots --
doAddContainerItem(bag,2175,1) -- spell book --
doAddContainerItem(bag,1987,1) -- bag --
doAddContainerItem(bag,7618,5) -- hp pot --
doAddContainerItem(bag,2376,1) -- sword --
else
if playerVoc == 4 then -- Assassin --
local bag = doPlayerAddItem(cid,1988,1)
doAddContainerItem(bag,2667,10) -- fish --
doAddContainerItem(bag,2461,1) -- Leather helm --
doAddContainerItem(bag,2467,1) -- Leather armor --
doAddContainerItem(bag,2649,1) -- Leather legs --
doAddContainerItem(bag,2643,1) -- leather boots --
doAddContainerItem(bag,2175,1) -- spell book --
doAddContainerItem(bag,1987,1) -- bag --
doAddContainerItem(bag,7618,5) -- hp pot --
doAddContainerItem(bag,2399,20) -- wand --
else
if playerVoc == 5 then -- Archer --
local bag = doPlayerAddItem(cid,1988,1)
doAddContainerItem(bag,2667,10) -- fish --
doAddContainerItem(bag,2461,1) -- Leather helm --
doAddContainerItem(bag,2467,1) -- Leather armor --
doAddContainerItem(bag,2649,1) -- Leather legs --
doAddContainerItem(bag,2643,1) -- leather boots --
doAddContainerItem(bag,2175,1) -- spell book --
doAddContainerItem(bag,1987,1) -- bag --
doAddContainerItem(bag,7618,5) -- hp pot --
doAddContainerItem(bag,2456,1) -- bow --
doAddContainerItem(bag,2544,50) -- arrows --
else
if playerVoc == 6 then -- Berserker --
local bag = doPlayerAddItem(cid,1988,1)
doAddContainerItem(bag,2667,10) -- fish --
doAddContainerItem(bag,2461,1) -- Leather helm --
doAddContainerItem(bag,2467,1) -- Leather armor --
doAddContainerItem(bag,2649,1) -- Leather legs --
doAddContainerItem(bag,2643,1) -- leather boots --
doAddContainerItem(bag,2175,1) -- spell book --
doAddContainerItem(bag,1987,1) -- bag --
doAddContainerItem(bag,7618,5) -- hp pot --
doAddContainerItem(bag,2376,1) -- sword --
else
if playerVoc == 7 then -- Cleric --
local bag = doPlayerAddItem(cid,1988,1)
doAddContainerItem(bag,2667,10) -- fish --
doAddContainerItem(bag,2461,1) --Leather helm --
doAddContainerItem(bag,2467,1) -- Leather armor --
doAddContainerItem(bag,2649,1) -- Leather legs --
doAddContainerItem(bag,2643,1) -- leather boots --
doAddContainerItem(bag,2175,1) -- spell book --
doAddContainerItem(bag,1987,1) -- bag --
doAddContainerItem(bag,7618,5) -- hp pot --
doAddContainerItem(bag,2182,1) -- rod --
else
if playerVoc == 8 then -- Sage --
local bag = doPlayerAddItem(cid,1988,1)
doAddContainerItem(bag,2667,10) -- fish --
doAddContainerItem(bag,2461,1) -- Leather helm --
doAddContainerItem(bag,2467,1) -- Leather armor --
doAddContainerItem(bag,2649,1) -- Leather legs --
doAddContainerItem(bag,2643,1) -- leather boots --
doAddContainerItem(bag,2175,1) -- spell book --
doAddContainerItem(bag,1987,1) -- bag --
doAddContainerItem(bag,7618,5) -- hp pot --
doAddContainerItem(bag,2182,1) -- rod --
setPlayerStorageValue(cid,60321,1)
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end
end
return TRUE
end
[Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/scripted.lua:
147: unexpected symbol near '=='
[Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/scripted.lua)
data/actions/scripts/quests/scripted.lua:147: unexpected symbol near '=='