• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

How to editing spellbook please Help

prezes12

Im Black Widow
Joined
Mar 25, 2012
Messages
189
Reaction score
10
how to edit spellbook that it look like at the pic?
8701460.png
 
script is in actions/scripts/other/spellbook.lua tfs 0.3.6: im kinda beginner but ill try to help
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
  
local text = "here probably write all that you need"
doShowTextDialog(cid, item.itemid, text)
return true
end
 
  • Code:
    local sorc = { {"pandora bomb",0}, {"energy bomb",5}, {"fire mort",10}, {"energy vis strike",25}, {"ultra strike",40} , {"mega vis",50} , {"ultra energy",100} , {"super strike sorc",200} }
    local druid = { {"pandora bomb",0}, {"energy bomb",5}, {"ice tornado",10}, {"death strike",25}, {"explosion strike",40} , {"mega frigo",50} , {"ultra nature",100} , {"super strike druid",200} }
    local pally = { {"pandora bomb",0}, {"exevo con san",5}, {"exevo poison san",10}, {"exevo energy san",25}, {"exevo assassin star",40} , {"mega holy",50} , {"exevo mega con",100} , {"super strike pally",200} }
    local knight = { {"pandora bomb",0}, {"exori physical mort",5}, {"exori frozen",10}, {"exori supreme fire",25}, {"exori ultra strike",40} , {"mega gran",50} , {"exori mort bomb",100} , {"super strike knight",200} }
    function onSay(cid,words,param)
    local text = ""
        if isSorcerer(cid) then
            for i = 1,#sorc do
                text = ""..text.."Words: "..sorc[i][1].." - Rebirths: "..sorc[i][2].."\n"
            end
        elseif isDruid(cid) then
            for i = 1,#druid do
                text = ""..text.."Words: "..druid[i][1].." - Rebirths: "..druid[i][2].."\n"
            end
        elseif isPaladin(cid) then
            for i = 1,#pally do
                text = ""..text.."Words: "..pally[i][1].." - Rebirths: "..pally[i][2].."\n"
            end
        elseif isKnight(cid) then
            for i = 1,#knight do
                text = ""..text.."Words: "..knight[i][1].." - Rebirths: "..knight[i][2].."\n"
            end
        end
        doShowTextDialog(cid, 2175, text)
        return true
    end

  • I see you working on a rebirth spell, so this is made for rebirth spells easy to understand as you see its my script from pandora "made by @tetra20" you just have to change pandora bomb to your spell name then you just have to change the number at which reb level it should work :P tested on tfs 0.4, working well.
  • Put the script in: talkacation/spells
 

Similar threads

Replies
0
Views
296
Back
Top