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

Transformation NPC/Spell/talkaction

Reyn

On to the next One
Joined
May 15, 2010
Messages
259
Reaction score
1
Location
Germany ;3
Hei Otlanders :)
I need a script for a NPC/Spell/ Talkactions w/e which works like this:
Only possible with vocation 1 & level 50... Outfit should stay forever... so not disapear after logout, vocation too..
It should transform u to outfit 50 and vocation 5 for example
the transformation shouldnt decrease mana or money or anything just stay forever..
oh yeah and it shouldnt take an item to transform.. only spell/talkaction or npc
I tried to script many scripts on my own... all worked but the outfit and vocation disapeared after dieing or logging ;/
So i Hope anyone can help me :)
Regards,
Reyn
 
Last edited:
Spell:
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

function onCastSpell(cid, var)
	local config = {
		promotion_lvl = 1, --standart promotion
		outfit = {lookType=145, lookHead=124, lookAddons=1, lookLegs=45, lookBody=11, lookFeet=87}
	}
	doPlayerSetPromotionLevel(cid, config.promotion_lvl)
	doCreatureChangeOutfit(cid, config.outfit)
	doCombat(cid,combat,var)
	return true
end

spells.xml:
HTML:
	<instant name="Promotion/Outfit" words="exana hur" lvl="20" mana="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="sip.lua">
		<vocation id="1"/>
	</instant>

But if you change your outfit you can't get it back. Just by saying the spell again (if it is monster outfit)
You could explain more about outfit part..
 
Back
Top