Hello everybody
This Script will make it able that you can change your outfit within a talkaction just by saying the monsters name like
/outfit "demon
The access atm is set to "1" Tutors or higher can use it
UPDATE! Now you can use it for evo or tfs and some not needed things are deleted.
If there are bugs post them here I'll try to make it work for you then
and here is the Script:
and put this into "talkactions.xml"
hope some people might enjoy this
kind regards, Evil Hero
This Script will make it able that you can change your outfit within a talkaction just by saying the monsters name like
/outfit "demon
The access atm is set to "1" Tutors or higher can use it
UPDATE! Now you can use it for evo or tfs and some not needed things are deleted.
If there are bugs post them here I'll try to make it work for you then
and here is the Script:
PHP:
--Monster Outfit V3.0 Made by Evil Hero (TFS)--
function onSay(cid, words, param)
local counsellor = 1 --Access to use the Command
local time = -1 --Infinity time at the moment
if getPlayerGroupId(cid) >= counsellor then
if param ~= "" then
doSetMonsterOutfit(cid, param, time)
doPlayerSendTextMessage(cid, 25, "You have changed your outfit to a ".. param ..".")
else
doPlayerSendCancel(cid,"Param can't be nil.")
end
else
doPlayerSendCancel(cid,"You cannot execute this command.")
end
return FALSE
end
PHP:
--Monster Outfit V3.0 Made by Evil Hero (EVO)--
function onSay(cid, words, param)
local counsellor = 1 --Access to use the Command
local time = -1 --Infinity time at the moment
if getPlayerAccess(cid) >= counsellor then
if param ~= "" then
doSetMonsterOutfit(cid, param, time)
doPlayerSendTextMessage(cid, 25, "You have changed your outfit to a ".. param ..".")
else
doPlayerSendCancel(cid,"Param can't be nil.")
end
else
doPlayerSendCancel(cid,"You cannot execute this command.")
end
return FALSE
end
and put this into "talkactions.xml"
Code:
<talkaction words="/outfit" script="outfit.lua" />
hope some people might enjoy this
kind regards, Evil Hero
Last edited: