Stronda Fusion
New Member
- Joined
- Oct 27, 2011
- Messages
- 31
- Reaction score
- 0
Need a clone rune.. but not to clone outfits of god, cm, gm..
thanks!
thanks!
local notAllowedOutfits = {75, 266, 302}
function onUse(cid, item, frompos, item2, topos)
local outfit = getCreatureOutfit(item2.uid)
if (isInArray(outfit, notAllowedOutfits)
doSendAnimatedText(cid, "This outfit cannot be accessed."
return true
end
doSetCreatureOutfit(cid, outfit, 3600000 )
doSendAnimatedText(topos,"Cloned!!",12)
doSendMagicEffect(getPlayerPosition(cid),27)
return true
end
Lua:local notAllowedOutfits = {75, 266, 302} function onUse(cid, item, frompos, item2, topos) local outfit = getCreatureOutfit(item2.uid) if (isInArray(outfit, notAllowedOutfits) doSendAnimatedText(cid, "This outfit cannot be accessed." return true end doSetCreatureOutfit(cid, outfit, 3600000 ) doSendAnimatedText(topos,"Cloned!!",12) doSendMagicEffect(getPlayerPosition(cid),27) return true end
6: ')' expected (to close '(' at line 5) near 'doSendAnimatedText'
doSendAnimatedText(cid, "This outfit cannot be accessed.")
local notAllowedOutfits = {75, 266, 302}
local time = 10 --time for wear outfit in seconds -1 for infinite time
function onUse(cid, item, fromPosition, itemEx, toPosition)
if not(isPlayer(itemEx.uid)) then
return false
end
local pos = getThingPos(cid)
local outfit = getCreatureOutfit(itemEx.uid)
if not (isInArray(notAllowedOutfits, outfit.lookType)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your outfit has been changed." )
doSetCreatureOutfit(cid, outfit, time)
doSendAnimatedText(fromPosition,"Cloned!!",12)
doSendMagicEffect(toPosition,27)
else
doPlayerSendCancel(cid, "Sorry, you can't clone that outfit")
end
return true
end
try:
Lua:local notAllowedOutfits = {75, 266, 302} local time = 10 --time for wear outfit in seconds function onUse(cid, item, fromPosition, itemEx, toPosition) if not(isPlayer(itemEx.uid)) then return false end local pos = getThingPos(cid) local outfit = getCreatureOutfit(itemEx.uid) if not (isInArray(notAllowedOutfits, outfit)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your outfit has been changed." ) doSetCreatureOutfit(cid, outfit, time) doSendAnimatedText(fromPosition,"Cloned!!",12) doSendMagicEffect(toPosition,27) else doPlayerSendCancel(cid, "Sorry, you can't clone that outfit") end return true end
local notAllowedOutfits = {75, 266, 302}
local notAllowedOutfits = {75, 266, 302}
local time = 3600000 --time for wear outfit in seconds
function onUse(cid, item, fromPosition, itemEx, toPosition)
if not(isPlayer(itemEx.uid)) then
return false
end
local pos = getThingPos(cid)
local outfit = getCreatureOutfit(itemEx.uid)
if not (isInArray(notAllowedOutfits, outfit)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your outfit has been changed." )
doSetCreatureOutfit(cid, outfit, time)
doSendAnimatedText(fromPosition,"Cloned!!",12)
doSendMagicEffect(toPosition,27)
else
doPlayerSendCancel(cid, "Sorry, you can't clone that outfit")
end
return true
end