Hi. I'm using tfs 0.3a1 and I got two problems...
1st.
Spellbook of Dark Mysteries, etc doesnt add magic lvl...
I think i should add it to movements.xml, but what slot type? ;o
and 2nd question...
I was making quest but it dont work...
When im running server:
www.img171.imageshack.us/my.php?image=bladyl2.jpg
Please help ;<
1st.
Spellbook of Dark Mysteries, etc doesnt add magic lvl...
<item id="8918" article="a" name="spellbook of dark mysteries">
<attribute key="description" value="It shows your spells and can also shield against attack when worn."/>
<attribute key="weight" value="2850"/>
<attribute key="magicpoints" value="3"/>
<attribute key="defense" value="16"/>
<attribute key="weaponType" value="shield"/>
</item>
I think i should add it to movements.xml, but what slot type? ;o
and 2nd question...
I was making quest but it dont work...
function onUse(cid, item, frompos, item2, topos)
if item.uid == 8806 then
queststatus = getPlayerStorageValue(cid,5550)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found an Emerald Sword.")
doPlayerAddItem(cid,8930,1)
setPlayerStorageValue(cid,5550,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 8807 then
queststatus = getPlayerStorageValue(cid,5550)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Hellforged Axe.")
doPlayerAddItem(cid,8924,1)
setPlayerStorageValue(cid,5550,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 8808 then
queststatus = getPlayerStorageValue(cid,5550)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found an Obsidian Truncheon.")
doPlayerAddItem(cid,8928,1)
setPlayerStorageValue(cid,5550,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 8809 then
queststatus = getPlayerStorageValue(cid,5550)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Fireborn Giant Armor.")
doPlayerAddItem(cid,8881,1)
setPlayerStorageValue(cid,5550,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 8810 then
queststatus = getPlayerStorageValue(cid,5550)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Royal Crossbow.")
doPlayerAddItem(cid,8851,1)
setPlayerStorageValue(cid,5550,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
elseif item.uid == 8811 then
queststatus = getPlayerStorageValue(cid,5550)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Warsinger Bow.")
doPlayerAddItem(cid,8854,1)
setPlayerStorageValue(cid,5550,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 8812 then
queststatus = getPlayerStorageValue(cid,5550)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Master Archers Armor.")
doPlayerAddItem(cid,8888,1)
setPlayerStorageValue(cid,5550,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 8813 then
queststatus = getPlayerStorageValue(cid,5550)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Robe of the Underworld.")
doPlayerAddItem(cid,8890,1)
setPlayerStorageValue(cid,5550,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 8814 then
queststatus = getPlayerStorageValue(cid,5550)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Spellbook of Dark Mysteries.")
doPlayerAddItem(cid,8918,1)
setPlayerStorageValue(cid,5550,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end
When im running server:
www.img171.imageshack.us/my.php?image=bladyl2.jpg
Please help ;<