function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerItemCount(cid, 2159) >= 50 then -- edit how scarabs 50? etc
doPlayerRemoveItem(cid,2159,50) -- 50 how scarab remove in buy item
doPlayerAddItem(cid,IDITEM)
doSendMagicEffect(getPlayerPosition(cid), 13)
else
doPlayerSendTextMessage(cid,19,"You need ?? Scarab Coints for buy ??.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return true
end
local outfitmale = 110
local outfitfemale = 110
local addons = 2
local storage = 1213
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, storage) == -1 then
doPlayerAddOutfit(cid, outfitmale, addons)
doPlayerAddOutfit(cid, outfitfemale, addons)
doPlayerSendTextMessage(cid, 21, "You get addons for assassin outfit!")
doSendMagicEffect(getCreaturePosition(cid), 28)
setPlayerStorageValue(cid, storage, 1)
else
doPlayerSendCancel(cid, "Already you have this addons.")
end
return true
end
21:56 You get addons for Snow Man outfit!
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, storage) == -1 then
doPlayerAddOutfit(cid, 150) -- edit Outfit id.. for your monster
doPlayerSendTextMessage(cid, 21, "You get addon for NAME outfit!")
doSendMagicEffect(getCreaturePosition(cid), 28)
setPlayerStorageValue(cid, 1213, 1)
else
doPlayerSendCancel(cid, "Already you have this addons.")
end
return true
end
<outfit id="25" premium="yes">
<list gender="0-3" lookType="110" name="Name Outfit"/>
</outfit>
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, storage) == -1 then
doPlayerAddOutfit(cid, 110) -- edit Outfit id.. for your monster
doPlayerSendTextMessage(cid, 21, "You get addon for NAME outfit!")
doSendMagicEffect(getCreaturePosition(cid), 28)
setPlayerStorageValue(cid, 1213, 1)
else
doPlayerSendCancel(cid, "Already you have this addons.")
end
return true
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, storage) == -1 then
doPlayerAddOutfit(cid,110,3)
doPlayerSendTextMessage(cid, 21, "You get addon for NAME outfit!")
doSendMagicEffect(getCreaturePosition(cid), 28)
setPlayerStorageValue(cid, 1213, 1)
else
doPlayerSendCancel(cid, "Already you have this addons.")
end
return true
end
00:43 You has ben Added The (10 Reb Addon) Good Luck!!
<outfit id="28" premium="yes">
<list gender="0" lookType="110" name="10 Reb Addon"/>
<list gender="1" lookType="110" name="10 Reb Addon"/>
</outfit>
<outfit id="28" premium="yes">
<list gender="0" lookType="110" name="10 Reb Addon"/>
<list gender="1" lookType="110" name="10 Reb Addon"/>
</outfit>
<outfit id="28" premium="yes">
<list gender="0-3" lookType="110" name="10 Reb Addon"/>
</outfit>
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, storage) == -1 then
doCreatureChangeOutfit(cid, 110)
doPlayerSendTextMessage(cid, 21, "You get addon for NAME outfit!")
doSendMagicEffect(getCreaturePosition(cid), 28)
setPlayerStorageValue(cid, 1213, 1)
else
doPlayerSendCancel(cid, "Already you have this addons.")
end
return true
end
<outfit id="28" premium="yes">
<list gender="0-3" lookType="110" name="10 Reb Addon"/> <!-- storageId="1213" storageValue="1"-->
</outfit>
function onUse(cid, item, fromPosition, itemEx, toPosition)
if (getPlayerStorageValue(cid, 1213) == EMPTY_STORAGE) then
setPlayerStorageValue(cid, 1213, 1)
doPlayerAddOutfit(cid,110, 0)
doPlayerSendTextMessage(cid, 21, "You get addon for NAME outfit!")
doSendMagicEffect(getCreaturePosition(cid), 28)
else
doPlayerSendCancel(cid, "Already you have this addons.")
end
return true
end
Data/actions/scripts/AddonsxQuest/10Reb.lua
function onUse(cid, item, fromPosition, itemEx, toPosition)
if (getPlayerStorageValue(cid, 1213) == EMPTY_STORAGE) then
setPlayerStorageValue(cid, 1213, 1)
doPlayerAddOutfit(cid,110, 0)
doPlayerSendTextMessage(cid, 21, "You get addon for NAME outfit!")
doSendMagicEffect(getCreaturePosition(cid), 28)
else
doPlayerSendCancel(cid, "Already you have this addons.")
end
return true
end
<action actionid="4581" script="AddonsxQuest/10Reb.lua"/>
<outfit id="29" premium="yes">
<list gender="0-3" lookType="110" name="10 Reb Addon"/> <!-- storageId="1213" storageValue="1"-->
</outfit>
01:12 You get addon for 10 Reb outfit!