So add an ondequip simple :S
Code:function onDeEquip(cid, item, slot) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You removed one of the items.") end
not saying it will work either just idea's
Code:local IDHEAD = PUT ITEM ID local IDARMOR = PUT ITEM ID local IDLEGS = PUT ITEM ID local THETEXT = "BINGO" function onDeEquip(cid, item, slot) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You removed one of the items.") end function onEquip(cid, item, slot) if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == IDHEAD and getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid == IDARMOR and getPlayerSlotItem(cid, CONST_SLOT_LEGS).itemid == IDLEGS then doSendAnimatedText(getCreaturePosition(cid), THETEXT, 210) end return true end
<item id="2423" article="a" name="Test Wand">
<attribute key="weight" value="5800" />
<attribute key="weaponType" value="wand" />
<attribute key="range" value="5" />
<attribute key="magiclevelpoints" value="5" />
</item>
<attribute key="magiclevelpoints" value="5" />
So add an ondequip simple :S
Code:function onDeEquip(cid, item, slot) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You removed one of the items.") end
not saying it will work either just idea's
Code:local IDHEAD = PUT ITEM ID local IDARMOR = PUT ITEM ID local IDLEGS = PUT ITEM ID local THETEXT = "BINGO" function onDeEquip(cid, item, slot) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You removed one of the items.") end function onEquip(cid, item, slot) if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == IDHEAD and getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid == IDARMOR and getPlayerSlotItem(cid, CONST_SLOT_LEGS).itemid == IDLEGS then doSendAnimatedText(getCreaturePosition(cid), THETEXT, 210) end return true end
I already told you how to do it, you just aren't willing to learn a damn thing yourself and want everything handed to you. Well you're shit outta luck sunshine.Well Its Works! I want 1 think now aver 1 sec text to can u help me i dont know how to add!
I already told you how to do it, you just aren't willing to learn a damn thing yourself and want everything handed to you. Well you're shit outta luck sunshine.
local IDHEAD = 2461
local IDARMOR = 2467
local IDLEGS = 2649
local IDFEET = 2643
local THETEXT = "*Leather*"
function onDeEquip(cid, item, slot)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have just lost the bonus for wearing a full set of equipment. please equipped the item you remove to get the bonus again.")
end
function onEquip(cid, item, slot)
if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == IDHEAD then
doSendAnimatedText(getCreaturePosition(cid), THETEXT, 99)
local spot = getThingPosition(cid)
doSendDistanceShoot(spot, CONST_ANI_HOLY)
end
return true
end
@tanii
Here is an example of what i did with the ideas we provided you with i am not just going to give this to you but its another idea and an example of what has been done.
Code:local IDHEAD = 2461 local IDARMOR = 2467 local IDLEGS = 2649 local IDFEET = 2643 local THETEXT = "*Leather*" function onDeEquip(cid, item, slot) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have just lost the bonus for wearing a full set of equipment. please equipped the item you remove to get the bonus again.") end function onEquip(cid, item, slot) if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == IDHEAD then doSendAnimatedText(getCreaturePosition(cid), THETEXT, 99) local spot = getThingPosition(cid) doSendDistanceShoot(spot, CONST_ANI_HOLY) end return true end
I also think if you made the equipment change the color of the players feet head shirt and paints according to the color of the armor he is wearing that would be cool as well. Just an idea tho
Taking 1 piece of from the set.
Putin all the pieces needed back on.
I told him exactly what to do, he's just not willing. He has to make an onEquip with a table to check sets, and everytime and item of a set is equipped, add storage + 1, onDeequip remove a storage. Then use onThink to check online players and if players storage = x then send text. Can't spell it out much more for him.@tanii
Here is an example of what i did with the ideas we provided you with i am not just going to give this to you but its another idea and an example of what has been done.
Code:local IDHEAD = 2461 local IDARMOR = 2467 local IDLEGS = 2649 local IDFEET = 2643 local THETEXT = "*Leather*" function onDeEquip(cid, item, slot) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have just lost the bonus for wearing a full set of equipment. please equipped the item you remove to get the bonus again.") end function onEquip(cid, item, slot) if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == IDHEAD then doSendAnimatedText(getCreaturePosition(cid), THETEXT, 99) local spot = getThingPosition(cid) doSendDistanceShoot(spot, CONST_ANI_HOLY) end return true end
I also think if you made the equipment change the color of the players feet head shirt and paints according to the color of the armor he is wearing that would be cool as well. Just an idea tho
Taking 1 piece of from the set.
Putin all the pieces needed back on.
local t = {
-- words,helmet,armor,legs,boots,effect --
{"Leather", 2482, 2484, 2468, 2526, 29},
{"Chain", 2457, 2463, 2647, 2521, 30},
}
function onThink(interval)
for _, cid in ipairs(getPlayersOnline()) do
for i = 1, #t do
if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == t[i][2] and getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid == t[i][3] and getPlayerSlotItem(cid, CONST_SLOT_LEGS).itemid == t[i][4] and getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid == t[i][5] then
doCreatureSay(cid, t[i][1], TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), t[i][6])
end
end
end
return true
end
All Works Fine Thank u so much!
All Works Fine Thank u so much!
But Try Change Color ORANGE to YELLOW for example and see the debug the debug is your client crash automatically!
and the text not float always comes on char head!
He is old and using 0.x.Works fine for me :|
That's what it is tested on 0.3.6/7 lolHe is old and using 0.x.
That's what it is tested on 0.3.6/7 lol
try change orange to yellow!He is old and using 0.x.