Jump to content
dragontechi

ayuda con slot

Recommended Posts

quiero activar el 6to slot para effecto especiales alguien tiene una idea que parte tengo que modificar 

 

I want to activate the 6th slot for special effects someone has an idea which part I have to modify

  • Like 1

Share this post


Link to post
Share on other sites

en functions.lua dentro de cha_timer

local 6toSloth = GetChaItem(role,2,5) -- GetChaItem(role,TYPE,SLOTH ID)
local 6toSlothID = GetItemID(6toSloth) -- OBTERNER ID DEL ITEM

if 6toSlothID == XXXX -- ID DEL ITEM QUE USARAS PARA EL EFF
	AddState(role,role,STATE_BBRING1,1,3600) -- AddState(PERSONAJE,TARGET,EFF QUE USARAS,LV DEL EFF,TIEMPO)
else
	local Get_State = GetChaStateLv(role,STATE_BBRING1) -- BUSCA SI TIENES EL EFF ACTIVO
	if Get_State ~= 0 then -- Get_State NO ES IGUAL A 0
		RemoveState(role,STATE_BBRING1) -- ELIMINA EL ESTADO(ESTA CONDICION PASA SI CAMBIAS EL ITEM O NO ESTA)
	end
end

 

Edited by wolfenx
  • Like 1

Discord:Wolfen#1498

https://www.patreon.com/ReTop

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...