• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

is this possible?

zirokiller

New Member
Joined
Jun 24, 2009
Messages
88
Reaction score
0
can i create spells for people that has vip only? an spell that only these who has the Storage of ##### use it? it would be fun if some one has it and know how to do it just post the script. Thats it. Thanks, i hope am clear. My English isn't so good.



Also, I Will Repp
 
Example of Exori Mort:
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)

function onCastSpell(cid, var)
	if getPlayerStorageValue(cid, 5000) == 1 then
		return doCombat(cid, combat, var)
	end
end
 
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)

function onCastSpell(cid, var)
	return getPlayerStorageValue(cid, 5000) == 1 and doCombat(cid, combat, var) or false
end
 
Ok guys I got to admit something...I already have this...b-but Cykotitan...u rox when it comes to scripting ^_^
 
Also, if this is only for the storage number:

getPlayerStorageValue(cid, 5000)

What should be the script for the Value of the storage?


am just trying to make a door that people that has that much reputation points can go in

and the reputation points are added in the Storage->Value

like:

Code:
getPlayerStorageValue(cid, 5000,  450)
                            /\     /\
                          Storage Value

but i don't know if that can be possible?
 
Last edited:
Why not? Provided that you're storing reputation points in storage key 5000:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)

function onCastSpell(cid, var)
	return getPlayerStorageValue(cid, 5000) >= 450 and doCombat(cid, combat, var) or false
end
... This would require that the player has at least 450 reputation points.
 
Back
Top