dinhus2jaque
New Member
- Joined
- Oct 5, 2008
- Messages
- 35
- Reaction score
- 0
Hello again (lol) Ive been trying to make new quests chests of helmet of the ancients parts for my server. I followed a tutorial given here OTServ: How do I make a quest chest? - OpenTibia Fans.
I made the functions with no problems, I hope. Here is one example:
Then. I put in the actions part the following:
However, when I try to substitute my old actions file with this one, when I run the server, the actions are unable to load. It seems there is an error with the ending tag in line 2 of the actions.
Can anyone help me?
I made the functions with no problems, I hope. Here is one example:
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 40004 then
queststatus = getPlayerStorageValue(cid, 7004)
if queststatus == -1 then
doPlayerSendTextMessage(cid, 22, "You have found a Helmet Adornment.")
doPlayerAddItem(cid, 2341, 1)
setPlayerStorageValue(cid, 7004, 1)
else
doPlayerSendTextMessage(cid, 22, "The chest is empty.")
end
end
end
Then. I put in the actions part the following:
Code:
<!-- Hota -->
<action uniqueid="40001" event="script" value="hota/hota1.lua/"> -- Damaged Helmet
<action uniqueid="40002" event="script" value="hota/hota2.lua"/> -- Helmet Ornament
<action uniqueid="40003" event="script" value="hota/hota3.lua"/> -- Right Horn
<action uniqueid="40004" event="script" value="hota/hota4.lua"/> -- Helmet Adornment
<action uniqueid="40005" event="script" value="hota/hota5.lua"/> -- Helmet Piece
<action uniqueid="40006" event="script" value="hota/hota6.lua"/> -- Gem Holder
<action uniqueid="40007" event="script" value="hota/hota7.lua"/> -- Left Horn
However, when I try to substitute my old actions file with this one, when I run the server, the actions are unable to load. It seems there is an error with the ending tag in line 2 of the actions.
Can anyone help me?