Ir para conteúdo

Featured Replies

Postado

I have a small problem, Im using tfs 0.4 rev 3777, well i have made a script

 

local IDFEET = 13499


local IDARMOR = 13497

local IDLEGS = 13498

 

 

function onDeEquip(cid, item, slot)

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You just lost bonus from set.")

end

 

function onEquip(cid, item, slot)

if getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == IDFEET and getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid == IDARMOR and getPlayerSlotItem(cid, CONST_SLOT_LEGS).itemid == IDLEGS then

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Bonus activated.")

 

end

return true

end[/CODE]

And it works, but there's another problem, i have registered it into movements.xml as:

 

 <movevent type = "Equip" itemid = "13499" slot = "feet" event = "script" value = "bills set.lua" />

<movevent type = "DeEquip" itemid = "13499" slot = "feet" event = "script" value = "bills set.lua" />

 

and the problem is the event is duplicated cuz of:

<movevent type = "Equip" itemid = "13499" slot = "feet" event = "function" value = "onEquipItem" />

    <movevent type = "DeEquip" itemid = "13499" slot = "feet" event = "function "value =" onDeEquipItem "/>

And because of that "THE SET BONUS" works but the boots doesnt add their bonus stats thats are made at items.xml

How can i fix that? Any idea / tips / help?

Ok i just noticed that it gives bonus when i wear boots even without full set so Im still doing something wrong

Editado por kobrapl (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo