lokolokio
Well-Known Member
Well this is my first aportation, to this server (own aportation, maybe someother got the same idea but im the first on post it, i hope you like and enjoy it)
My idea consist on the following thing:
Put in: data/talkactions.xml the next code:
after this, create a file in data/talkactions/scripts/ called: outfit.lua and paste the next code inside it:
and thats all mi script, its simple but useful XD enjoy it XD >.<
-.- just open the npc_file.xml and paste the code that the talkactions gaves you
on my case the msge returned was: 15:51 <look type="143" head="114" body="114" legs="114" feet="94" addons="" />
now ill open armor buyer.xml and paste the code:
Now just change these code with the code that the talkactions gaves you
My idea consist on the following thing:
Put in: data/talkactions.xml the next code:
Code:
<talkaction words="/outfit" access="5" event="script" value="outfit.lua"/>
after this, create a file in data/talkactions/scripts/ called: outfit.lua and paste the next code inside it:
Code:
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '<look type="' .. getCreatureOutfit(cid).lookType ..'" head="' .. getCreatureOutfit(cid).lookHead ..'" body="' .. getCreatureOutfit(cid).lookBody ..'" legs="' .. getCreatureOutfit(cid).lookLegs ..'" feet="' .. getCreatureOutfit(cid).lookFeet ..'" addons="" />')
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '<look type="' .. getCreatureOutfit(cid).lookType ..'" head="' .. getCreatureOutfit(cid).lookHead ..'" body="' .. getCreatureOutfit(cid).lookBody ..'" legs="' .. getCreatureOutfit(cid).lookLegs ..'" feet="' .. getCreatureOutfit(cid).lookFeet ..'" addons="" />')
return true
end
return true
end
and thats all mi script, its simple but useful XD enjoy it XD >.<
-.- just open the npc_file.xml and paste the code that the talkactions gaves you
on my case the msge returned was: 15:51 <look type="143" head="114" body="114" legs="114" feet="94" addons="" />
now ill open armor buyer.xml and paste the code:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Armor Buyer" script="data/npc/scripts/armor_buyer.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
[B][COLOR="red"]<look type="131" head="114" body="20" legs="1" feet="58" addons="3" />[/COLOR][/B]
</npc>
Last edited: