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

[HELP] With outfit vocations and talkaction transfrom OT Server 8.1

codo

New Member
Joined
May 15, 2011
Messages
5
Reaction score
0
Hi I have a server 8.1 and want to know how to do that vocations have a default outfit that I put, someone knows how to do that?

Also I have a talkaction script that makes the player to transform and change of outfit, I want to know is how to increase life and mana to transform. please if anyone can help me
 
1) config.lua
Set:
LUA:
	allowChangeOutfit = false
	allowChangeColors = false
	allowChangeAddons = false

2) Login.lua - after function onLogin
LUA:
if getPlayerVocation(cid) == 1 then ---------- if player have "revert" vocation
      doPlayerSetVocation(cid,1) ------------ player set revert vocation (this is secure for transform bug)
      doSetCreatureOutfit(cid, {lookType=5}, -1) ----------- player set looktype
else
end

3) Hp & Mana
LUA:
         doPlayerAddMaxHealth(cid, 1000)      ---- giving player 1k health to his max
doPlayerAddMaxMana(cid, 1000) ---- giving player 1k mana to his max

REMEMBER! If you adding max health and mana you must do revert script or set something like transform fall down when player mana is 10 -- you must remove the added Health and mana.
And in Login.lua you must edit my example analogy and add the mana & health deduct -- if player log in the transform dissapear and added mana & hp removes.
If you dont do this, player can easy clone his HP & Mana.

BTW.
You can script transform in spells.
 
I guess this work, the trouble is that the data from my server there is no document called login.lua, will not be because my server is 8.1?
 
Back
Top