Thorn
Spriting since 2013
hii, well like i said in the title, when a players use his soft boots instantly they get worn :/ plzz i need help, here i all i have of soft boost
that's on actions
here is in items.xml
plz guys help
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local moneyneed = 50000 -- price to get new soft boots
local playermoney = getPlayerMoney(cid)
if playermoney >= moneyneed then
if doPlayerTakeItem(cid, 10021, 1) then
doRemoveItem(item.uid,1)
doPlayerAddItem(cid, 6132, 1)
doPlayerRemoveMoney(cid, moneyneed)
doSendMagicEffect(fromPosition,12)
else
doPlayerSendTextMessage(cid,20, "Tu No Tienes Unas Soft Boots Hecha Mierda xd.")
end
else
doPlayerSendTextMessage(cid,20, "Disculpa, Tu Necesitas ".. moneyneed .." Gold Coins Para Tener Unas Nuevas Soft Boots.")
end
end
that's on actions
here is in items.xml
LUA:
<item id="2640" name="soft boots">
<attribute key="weight" value="800"/>
<attribute key="slotType" value="feet"/>
<attribute key="decayTo" value="10021"/>
<attribute key="transformDeEquipTo" value="6132"/>
<attribute key="duration" value="14400"/>
<attribute key="healthGain" value="1"/>
<attribute key="healthTicks" value="2000"/>
<attribute key="manaGain" value="2"/>
<attribute key="manaTicks" value="1000"/>
<attribute key="showduration" value="1"/>
</item>
LUA:
<item id="6132" article="a" name="pair of soft boots">
<attribute key="weight" value="800" />
<attribute key="slotType" value="feet" />
<attribute key="transformEquipTo" value="10021" />
<attribute key="stopduration" value="1" />
<attribute key="showduration" value="1" />
</item>
plz guys help