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

Animation GlobalEvent

Laron25

New Member
Joined
Mar 28, 2010
Messages
127
Reaction score
2
Hi otlanders,I have a simple script on animation for players. I don't know why animation don't be show on player, maybe someone know how fix it?


PHP:
local Trans = {
{["voc"] = 1, ["newVoc"] = 2, ["looktype"] = 5, ["level"] = 50, ["rage"] = 3, ["kiToTrans"] = 10, ["addHp"] = 200, ["addKi"] = 150, ["effectOn"] = 2, ["aura"] = 0, ["text"] = "You have reverted.", ["constant"] = false}, 
{["voc"] = 2, ["newVoc"] = 3, ["looktype"] = 6, ["level"] = 130, ["rage"] = 5, ["kiToTrans"] = 15, ["addHp"] = 450, ["addKi"] = 300, ["effectOn"] = 2, ["aura"] = 0, ["text"] = "You have reverted.", ["constant"] = false},
{["voc"] = 3, ["newVoc"] = 4, ["looktype"] = 7, ["level"] = 180, ["rage"] = 8, ["kiToTrans"] = 20, ["addHp"] = 1600, ["addKi"] = 900, ["effectOn"] = 2, ["aura"] = 104, ["text"] = "You have reverted.", ["constant"] = false},
{["voc"] = 4, ["newVoc"] = 5, ["looktype"] = 8, ["level"] = 270, ["rage"] = 12, ["kiToTrans"] = 25, ["addHp"] = 2900, ["addKi"] = 2700, ["effectOn"] = 2, ["aura"] = 104, ["text"] = "You have reverted.", ["constant"] = false},
{["voc"] = 5, ["newVoc"] = 6, ["looktype"] = 10, ["level"] = 350, ["rage"] = 15, ["kiToTrans"] = 30, ["addHp"] = 4000, ["addKi"] = 4000, ["effectOn"] = 2, ["aura"] = 105, ["text"] = "You have reverted.", ["constant"] = false}
}

function onThink(interval, lastExecution, thinkInterval)
local players = {}
for _, i in pairs(getPlayersOnline()) do
	table.insert(players, i)
end
-------------
	for k, v in pairs(players) do
		for i = 1, #Trans do
			if (Trans[i].newVoc == getPlayerVocation(v)) then
					if Trans[i].aura > 0 then
						doSendMagicEffect(getCreaturePosition(v), Trans[i].aura)
					end
					
					doPlayerAddMana(v, -Trans[i].kiToTrans, false)
					return true
			end
		end
		
	end
return true
end

Thanks for help
Laron
 
The script is fine, but the effects don't exist... at least on my server (8.60 - 0.3.7)

Change:
PHP:
["aura"] = 104

To:
PHP:
["aura"] = 35 -- heart effect

The vocation 1 and 2 don't have any effect selected on the script :p
 
Last edited:
The script is fine, but the effects don't exist... at least on my server (8.60 - 0.3.7)

Change:
PHP:
["aura"] = 104

To:
PHP:
["aura"] = 35 -- heart effect

The vocation 1 and 2 don't have any effect selected on the script :p

On server I added many new effects, i change effects and check it works.

- - - Updated - - -

Doesn't work, someone have a idea why not working?
 
Back
Top