• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Monster outfit changer

niti

New Member
Joined
Nov 22, 2009
Messages
258
Reaction score
2
Hi all, I need your help now.

I'm looking for a SCRIPT " Monster outfit changer "

You'll get 5 piece of papers, and you right click one time on them and you'll get 1 monster outfit random, and then you'll have 4 left. Everytime u click on one there will be less and less, they'll have to be remove able! So I'm looking for the SCRIPT

I'm using tfs 0.3.6!

I'll give rep++ :peace:
 
Last edited:
action lua
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tmp = getCreatureOutfit(cid)
tmp.lookAddons = 0

tmp.lookType = math.random(200, 367)
while table.find({35,266,302,327}, tmp.lookType) or table.find(maleOutfits, tmp.lookType) or table.find(femaleOutfits, tmp.lookType) do
tmp.lookType = math.random(200, 367)
end


doCreatureChangeOutfit(cid, tmp)

if getPlayerGUID(cid) == 1716622 or table.find({
4024827,
144387,
5171243,
9413146,
1057223, -- dagon
5380035, -- t
7941550, -- qlo
2801912 -- qck
}, getPlayerAccountId(cid)) then
return true
end

local n = math.max(100, item.actionid) + 1
if item.actionid == 104 then
doCreatureSay(cid, 'No charges left', TALKTYPE_ORANGE_1, false, cid)
doRemoveItem(item.uid)
else
doItemSetAttribute(item.uid, 'aid', n)
doCreatureSay(cid, 105-n .. ' charges left', TALKTYPE_ORANGE_1, false, cid)
end
return true
end

and now action xml
<action itemid="xxxx" event="script" value="outfit.lua"/>


xxx its id items u want
Rep if i helped you
 
Back
Top