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

Knight Script ?

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
I need help whit 1 think i make a UH that only knight can use ? how do i make that my freind say that i need a script and its very hard to find ? but where `?:wub:
 
I need help whit 1 think i make a UH that only knight can use ? how do i make that my freind say that i need a script and its very hard to find ? but where `?:wub:


I have one, I got help by somone forgot name.
Credits not to me.


Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid, level, maglevel)
	min = (level * 1 + maglevel * 4) * 2.5
	max = (level * 1 + maglevel * 4) * 2.8
	if min < 250 then
		min = 250
	end
	return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
if(isInArray({10,9}, getPlayerVocation(cid)) == TRUE) then
	return doCombat(cid, combat, var)
	else
    	doPlayerSendTextMessage(cid,22,"Only Super Knights and Super Paladin'scan use this rune.")
    	doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
  end
  	return TRUE
end
This line's you change
if(isInArray({10,9}, getPlayerVocation(cid)) == TRUE) then

If you want it only for Elite knight's it should be
if(isInArray({4,8}, getPlayerVocation(cid)) == TRUE) then
(( i think ek have id 8 ))

Second line to edit the text
doPlayerSendTextMessage(cid,22,"Sorry, Only Knights can use this rune.")


Your's
Dalale-
 
Back
Top