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

Change item look

Hindori

New Member
Joined
Jan 24, 2009
Messages
157
Reaction score
2
Hello. I need script which will be changing my items look if they have actionid = xyz.

For example if item have actionid = 1001 then change look for 3567
if item have actionid = 1002 then change look for 3568
etc etc.

And It work only for item with id 2028, 2031, 2025.

Could anyone help?
 
xDDDDD
Good response....
But, yes, he can....
I think this way...
You want to transform a spoon to looktypo of soft boots...
Use doTransformItem into soft boots, and then, in the same scripts, you erase all the attributes of that soft boots....

@Thread: need to know which item do you want to transform in which other item....
 
xDDDDD
Good response....
But, yes, he can....
I think this way...
You want to transform a spoon to looktypo of soft boots...
Use doTransformItem into soft boots, and then, in the same scripts, you erase all the attributes of that soft boots....

@Thread: need to know which item do you want to transform in which other item....

lol wrong. you cannot use dotransformitem like hindori said itll change the item id. he wants the id to stay the same just look different.
 
try it
put iniqueid on the floor then
Data -> Actions -> Actions.xml
Code:
<action uniqueid="2028" event="script" value="changeoutfit.lua"
Data -> Actions -> Scripts -> changeoutfit.lua
Code:
local outfit = {lookType = 350, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
local effect2 = 30
local effect3 = 27
local effect4 = 29
local effect = 28

	function onUse(cid, item, fromPosition, itemEx, toPosition) do
                doCreatureChangeOutfit(cid, outfit)
	        doSendMagicEffect(getCreaturePosition(cid), effect)
	        doSendMagicEffect(getCreaturePosition(cid), effect2)
	        doSendMagicEffect(getCreaturePosition(cid), effect3)
	        doSendMagicEffect(getCreaturePosition(cid), effect4)
		doPlayerSendTextMessage(cid,21,"Your outfit is changed!")
	end
    return true
end
 
try it
put iniqueid on the floor then
Data -> Actions -> Actions.xml
Code:
<action uniqueid="2028" event="script" value="changeoutfit.lua"
Data -> Actions -> Scripts -> changeoutfit.lua
Code:
local outfit = {lookType = 350, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
local effect2 = 30
local effect3 = 27
local effect4 = 29
local effect = 28

	function onUse(cid, item, fromPosition, itemEx, toPosition) do
                doCreatureChangeOutfit(cid, outfit)
	        doSendMagicEffect(getCreaturePosition(cid), effect)
	        doSendMagicEffect(getCreaturePosition(cid), effect2)
	        doSendMagicEffect(getCreaturePosition(cid), effect3)
	        doSendMagicEffect(getCreaturePosition(cid), effect4)
		doPlayerSendTextMessage(cid,21,"Your outfit is changed!")
	end
    return true
end

what. the. fuck.
 
he can put the floor from map editor and use unique id 2028 on it and use this script? -.^
i tried it and it worked ;p
 
Last edited:
Back
Top