Synthetic_
deathzot.net
- Joined
- Dec 30, 2008
- Messages
- 2,535
- Reaction score
- 574
I make a lot of custom NPC's in my server and it's pretty annoying to get your colors through the database or whatever. So I made a simple talkaction to create the XML line that is used in the NPC's xml.
outfit.lua
talkactions.xml
outfit.lua
Code:
function onSay(cid, words, param)
local o = getCreatureOutfit(cid)
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "<look type =\"".. o.lookType .."\" head =\"".. o.lookHead .."\" body =\"".. o.lookBody .."\" legs =\"".. o.lookLegs.."\" feet =\"".. o.lookFeet .."\" addons =\"".. o.lookAddons .."\"/>")
end
talkactions.xml
Code:
<talkaction log="yes" access="5" words="/looktype" event="script" value="outfit.lua"/>
Last edited: