Solutions
-
egyptPOWER's post in (Resolvido)Ajuda em ot old 7.4 was marked as the answer@RAJADAO
Primeiramente, qual tfs você esta utilizando?
São muitas coisas que você esta solicitando, irei tentar ajuda-lo com algumas de meu conhecimento.
-
egyptPOWER's post in (Resolvido)[Pedido] Script de que troca vocação was marked as the answerNão tive tempo de testar. Veja ai se funfa
promoteitems.lua
-- Created by egyptPOWER -- function onUse(cid, item, fromPosition, itemEx, toPosition) local item1 = ID ITEM SORC local item2 = ID ITEM DRUID local item3 = ID ITEM PALADIN local item4 = ID ITEM KNIGHT -- CONFIG MS if (getPlayerLevel(cid) == 8) then if (getPlayerVocation(cid) == 1 and item.itemid == item1) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) doSendMagicEffect(getPlayerPosition(cid),10) else doPlayerSay(cid, "To use it, you need be a master sorcerer.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You need level 8 to do it!", TALKTYPE_MONSTER_SAY) end -- CONFIG ED if (getPlayerLevel(cid) == 8) then if (getPlayerVocation(cid) == 2 and item.itemid == item2) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) doSendMagicEffect(getPlayerPosition(cid),10) else doPlayerSay(cid, "To use it, you need be a elder druid.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You need level 8 to do it!", TALKTYPE_MONSTER_SAY) end -- CONFIG RP if (getPlayerLevel(cid) == 8) then if (getPlayerVocation(cid) == 3 and item.itemid == item3) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) doSendMagicEffect(getPlayerPosition(cid),10) else doPlayerSay(cid, "To use it, you need be a royal paladin.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You need level 8 to do it!", TALKTYPE_MONSTER_SAY) end -- CONFIG EK if (getPlayerLevel(cid) == 8) then if (getPlayerVocation(cid) == 4 and item.itemid == item4) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) doSendMagicEffect(getPlayerPosition(cid),10) else doPlayerSay(cid, "To use it, you need be a elite knight.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You need level 8 to do it!", TALKTYPE_MONSTER_SAY) end return true end
action.xml
<action itemid="ID ITEM MS" event="script" value="promoteitem.lua"/> <action itemid="ID ITEM ED" event="script" value="promoteitem.lua"/> <action itemid="ID ITEM RP" event="script" value="promoteitem.lua"/> <action itemid="ID ITEM EK" event="script" value="promoteitem.lua"/>
-
egyptPOWER's post in (Resolvido)iTem nao da atributos que coloquei was marked as the answer@theeross Pelo que pude perceber, o erro esta no seu movements.
Coloque desta forma:
<movevent type="Equip" itemid="11415" slot="head" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="11415" slot="head" event="function" value="onDeEquipItem"/>
-
egyptPOWER's post in (Resolvido)[PEDIDO] Remover itens do tile através da alavanca was marked as the answerOpa, testa agora meu bom
function onUse(cid, item, frompos, item2, topos) -- POSIÇÃO DOS ALTARES -- altar1 = {x = 111, y = 111, z = 1, stackpos = 1} -- ALTAR 1 -- getaltar1 = getThingfromPos(altar1) altar2 = {x = 222, y = 222, z = 2, stackpos = 1} -- ALTAR 2 -- getaltar2 = getThingfromPos(altar2) altar3 = {x = 333, y = 333, z = 3, stackpos = 1} -- ALTAR 3 -- getaltar3 = getThingfromPos(altar2) altar4 = {x = 444, y = 444, z = 4, stackpos = 1} -- ALTAR 4 -- getaltar4 = getThingfromPos(altar3) altar5 = {x = 555, y = 555, z = 5, stackpos = 1} -- ALTAR 5 -- getaltar5 = getThingfromPos(altar4) altar6 = {x = 666, y = 666, z = 6, stackpos = 1} -- ALTAR 6 -- getaltar6 = getThingfromPos(altar6) switchUID= 10102 -- UID da Alavanca switchID = 1945 -- ID da Alavanca switch2ID = 1946 -- ID da Alavanca após utilizada item1 = 1111 -- Item de sacrificio 1 item2 = 1111 -- Item de sacrificio 2 item3 = 1111 -- Item de sacrificio 3 item4 = 1111 -- Item de sacrificio 4 item5 = 1111 -- Item de sacrificio 5 item6 = 1111 -- Item de sacrificio 6 tpto = {x = 111, y = 111, z = 1, stackpos = 1} -- Aonde o player será teleportado -- if item.uid == switchUID and item.itemid == switchID and getaltar1.itemid == item1 and getaltar2.itemid == item2 and getaltar3.itemid == item3 and getaltar4.itemid == item4 and getaltar5.itemid == item5 and getaltar6.itemid == item6 then doSendMagicEffect(cid, 2) doTeleportThing(cid, tpto) doSendMagicEffect(tpto, 10) doRemoveItem(getaltar1.uid, 1) doRemoveItem(getaltar2.uid, 1) doRemoveItem(getaltar3.uid, 1) doRemoveItem(getaltar4.uid, 1) doRemoveItem(getaltar5.uid, 1) doRemoveItem(getaltar6.uid, 1) elseif item.uid == switchUID and item.itemid == switch2ID then doTransformItem(item.uid, item.itemid-1) else doPlayerSendCancel(cid, "Desculpe, você precisa colocar os items corretos nos altares.") end return true end !
-
egyptPOWER's post in (Resolvido)[Pedido] Transformar Hds em Scaraby Coin was marked as the answerProcure pelo arquivo changegold.lua na pasta actions/scripts/... e substitua por este. Substitua ID DA SCARAB COIN pelo id do item.
Me de feedback sobre o ocorrido.