• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

lvl 500 = animation

Coca Cola

New Member
Joined
Apr 10, 2010
Messages
164
Reaction score
0
can somebody make a script that when player get level 500 he receives an animation ? like when you make !x 29 and show a effect, that effect will be around the player

ty,cya
 
Put this in data\creaturescripts\creaturescripts.xml:
Code:
<event type="think" name="Aura" event="script" value="aura.lua"/>


Put this in data\creaturescripts\scripts\login.lua at the bottom with the others that look like it:
LUA:
registerCreatureEvent(cid, "Aura")


Make a file in the data\creaturescripts\scripts folder and name it "aura.lua". Put this in it:
LUA:
function onThink(cid, interval)
	if getPlayerLevel(cid) >= 500 then
		local position = getPlayerPosition(cid)
		position.x = position.x - 3
		position.y = position.y - 1

		for i = 1, 6 do
			doSendMagicEffect(position, 28)
			doSendMagicEffect(position, 29)
			position.x = position.x + 1
		end
		doSendMagicEffect(position, 28)
		doSendMagicEffect(position, 29)
		position.y = position.y + 1
		for i = 1, 6 do
			doSendMagicEffect(position, 28)
			doSendMagicEffect(position, 29)
			position.x = position.x - 1
		end
		doSendMagicEffect(position, 28)
		doSendMagicEffect(position, 29)
		position.y = position.y + 1
		for i = 1, 6 do
			doSendMagicEffect(position, 28)
			doSendMagicEffect(position, 29)
			position.x = position.x + 1
		end
		doSendMagicEffect(position, 28)
		doSendMagicEffect(position, 29)
	end

	return true
end

Should work, just tested it on my serv :)
 
Back
Top