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

Learning all the spell

Status
Not open for further replies.

Jesper_Kladden

Donator
Joined
May 16, 2008
Messages
458
Reaction score
1
Location
Sweden
I'm in a need of a script that learns all the spells for the current vocation.

This is not set automaticly in my Server ;'( (Mystic Spirit 0.2).
PHP:
local spells = 
{
"Light Healing",
"Antidote"
}

function onLogin(cid)
	playerLearnInstantSpell(cid, spells)
end

I've tried that, but doesn't work. Sum1 help me please?
 
I'm in a need of a script that learns all the spells for the current vocation.

This is not set automaticly in my Server ;'( (Mystic Spirit 0.2).
PHP:
local spells = 
{
"Light Healing",
"Antidote"
}

function onLogin(cid)
	playerLearnInstantSpell(cid, spells)
end

I've tried that, but doesn't work. Sum1 help me please?

i think you may need a for loop? i've never personally done it but i think you can only learn 1 spell at a time

so u need something like for
Code:
i=1,#spells do
 playerLearnInstantSpell(cid,spells[i])
end
 
I'm in a need of a script that learns all the spells for the current vocation.

This is not set automaticly in my Server ;'( (Mystic Spirit 0.2).
PHP:
local spells = 
{
"Light Healing",
"Antidote"
}

function onLogin(cid)
	playerLearnInstantSpell(cid, spells)
end

I've tried that, but doesn't work. Sum1 help me please?

/data/spells/spells.xml
Code:
needlearn = 0
 
Status
Not open for further replies.
Back
Top