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

GM Aura ~ Addons with no premmy

armitxe

New Member
Joined
Feb 15, 2009
Messages
65
Reaction score
1
Hello

First of all, thank you very much for reading!

Well my first question is:

How i can make that players that aren't premmy can wear addons? I'm using the premmy like a VIP system, but i want the normal players wear addons :/

Ok my second question is:

How to make a spell that attacks around you, killing any monster that is in your screen till you log out?

I tried to make something like that, but when i logout i have to reload the spells because it give me an error that crash the server a few seconds later...

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_LIFEDRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 255)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0, -999999999, -0, -999999999)

arr = {
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

local function m(parameters)
doCombat(parameters.cid, parameters.combat, parameters.var)
end

function onCastSpell(cid, var)
	local delay = 500
	local seconds = 0
	local parameters = { cid = cid, var = var, combat = combat }
	repeat
		addEvent(m, seconds, parameters)
		seconds = seconds + delay
	until seconds == 2200000
end

Thank you in advance for your answer!

Greetings
 
in config.lua
PHP:
addonsOnlyPremium = false

/data/XML/outfits.xml
PHP:
<outfit id="16" premium="yes" default="0">
<outfit id="16" premium="yes" default="0">
		<list gender="0" lookType="252" name="Norsewoman" default="0" />
		<list gender="1" lookType="251" name="Norseman" default="0" />
	</outfit
change premium="no"
change default to 1 and you can wear this.
 
Last edited:
I just have to say... BRAVO!!
You're awesome...

It works perfect!!!

Thank you very much!!! For real, thank you very much for help me with that!
 
Back
Top