• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

spellbooks and quest ;\

exeq93

New Member
Joined
Nov 29, 2007
Messages
11
Reaction score
0
Hi. I'm using tfs 0.3a1 and I got two problems...

1st.

Spellbook of Dark Mysteries, etc doesnt add magic lvl...

Code:
<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...

Code:
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:
http://img171.imageshack.us/my.php?image=bladyl2.jpg


Please help ;<
 
Last edited by a moderator:
For the quest, try this:
PHP:
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
    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
 
thanks a lot guys :) its working!

I got one more question.... could anyone make me or give link npc which will changes items like royal steel, chunk of crude iron? all these addons shits... ?

ofc 0.3a1 8.22

down#
im going to do it now ;p
 
Find this line in Sweetycyclop.lua:
PHP:
true, text = "There is many kind of steel please look on tibia wikia for more
and change to:
PHP:
true, text = "There is many kind of steel please look on tibia wikia for more"})


This is my addon NPC, however I doubt it works for the latest TFS, works for 0.22.
http://otland.net/f83/release-addon-npc-11068/
 
Hehe I'm just glad I can assist you in some way. Anyhow, I took a closer look at the Sweety Cyclops script and it seems that it's not proper. If you can wait until tomorrow, I'll create a brand new one for you.
 
Omg... i have started test server for me and my friend.... he is knight, and in 3,5hour he get only 69 skill... (skill rate was first 20, later 30). And I was pally... in 1-1,5 h i get 68 dist... What can i do to slow down paladin skills ? ;\ When i changed skillmultiplayers in vocations.xml, for example and 1.0 it was like now, at 1.1 knight at skill 70 get almost 1skill for 1 hit and if i change paladin to 0.9, he gets 1 skill longer than knight...

There is no way to do this in vocations.xml... so? ;<

Any ideas?
 
Back
Top