• 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!

Need !Spellbook & Healing Rune Script!

halloboss123

New Member
Joined
May 29, 2013
Messages
17
Reaction score
0
Hello,

I need a Script for :

- !Spellbook ~ If you say that, a Spellbook will opened.

and:

- Healing Rune , who i cant edit the Text and the TP & Magic effect, when i use it.


Greetz
 
Healing Rune
LUA:
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, 
COMBAT_PARAM_TARGETCASTERORTOPMOST, 1) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) 

function onCastSpell(cid, var) 
        doCreatureSay(cid,"Infinite UH!",19)
        doCreatureAddHealth(cid, math.random(6500, 7500)) 
        return doCombat(cid, combat, var) 
end
 
XML:
<talkaction words="!spellbook" event="script" value="script.lua"/>

LUA:
function onSay(cid, words, param, channel)
	local t = {}
	for i = 0, getPlayerInstantSpellCount(cid) - 1 do
		local spell = getPlayerInstantSpellInfo(cid, i)
		if(spell.level ~= 0) then
			if(spell.manapercent > 0) then
				spell.mana = spell.manapercent .. "%"
			end


			table.insert(t, spell)
		end
	end


	table.sort(t, function(a, b) return a.level < b.level end)
	local text, prevLevel = "", -1
	for i, spell in ipairs(t) do
		local line = ""
		if(prevLevel ~= spell.level) then
			if(i ~= 1) then
				line = "\n"
			end


			line = line .. "Spells for Level " .. spell.level .. "\n"
			prevLevel = spell.level
		end


		text = text .. line .. "  " .. spell.words .. " - " .. spell.name .. " : " .. spell.mana .. "\n"
	end


	doShowTextDialog(cid, 2175, text)
	return true
end
 
I need a Complete Script where i can Set the Magic Effet as Example the Command /z 31
And if i use that i can see the Healing and a Text who i have paste in lua..
Please help me !
 
Back
Top