Saints Anathema
Old School Doleran
Using Tfs 2, and i run a edited roxors map. Decided to add some new items in monsters, was wondering if anyone knew why this wasnt working.
I get this in the server window,
Any help is appreciated, im still learning.
ofcourse rep+
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2354 then
if doPlayerRemoveItem(cid,6553,1) == 1 then
doPlayerAddItem(cid,2447,1)
doPlayerRemoveItem(cid,2354,1)
doPlayerSendTextMessage(cid,21,"Your weapon has been upgraded!")
elseif item.itemid == 2354 then
if doPlayerRemoveItem(cid,7407,1) == 1 then
doPlayerAddItem(cid,8932,1)
doPlayerRemoveItem(cid,2354,1)
doPlayerSendTextMessage(cid,21,"Your weapon has been upgraded!")
elseif item.itemid == 2354 then
if doPlayerRemoveItem(cid,8929,1) == 1 then
doPlayerAddItem(cid,7429,1)
doPlayerRemoveItem(cid,2354,1)
doPlayerSendTextMessage(cid,21,"Your weapon has been upgraded!")
elseif item.itemid == 2354 then
if doPlayerRemoveItem(cid,9970,100) == 1 then
doPlayerAddItem(cid,8909,1)
doPlayerRemoveItem(cid,2354,1)
doPlayerSendTextMessage(cid,21,"Your weapon has been upgraded!")
elseif item.itemid == 2354 then
if doPlayerRemoveItem(cid,5669,1) == 1 then
doPlayerAddItem(cid,8910,1)
doPlayerRemoveItem(cid,2354,1)
doPlayerSendTextMessage(cid,21,"Your weapon has been upgraded!")
elseif item.itemid == 2354 then
if doPlayerRemoveItem(cid,2157,100) == 1 then
doPlayerAddItem(cid,8853,1)
doPlayerRemoveItem(cid,2354,1)
doPlayerSendTextMessage(cid,21,"Your weapon has been upgraded!")
elseif item.itemid == 2354 then
if doPlayerRemoveItem(cid,9969,1) == 1 then
doPlayerAddItem(cid,8890,1)
doPlayerRemoveItem(cid,2354,1)
doPlayerSendTextMessage(cid,21,"Your weapon has been upgraded!")
else
doPlayerSendCancel(cid, "You do not have any pro items to uprgade!")
end
end
end
end
end
end
return 1
end
I get this in the server window,
Code:
[27/04/2005 08:37:57] Warning: [Event::loadScript] Can not load script. data/actions/scripts/quests/pro update.lua
[27/04/2005 08:37:57] data/actions/scripts/quests/pro update.lua:61: 'end' expected (to close 'if' at line 3) near '<eof>'
Any help is appreciated, im still learning.
ofcourse rep+