Jump to content
Unkn0wn

Stealth bug + effect bug

Recommended Posts

My respect to everyone.

I have problem Sharpshoter can't use stealth i did changes in skillinfo still can't please can someone check?

 

123    Stealth    1    9,10;10,10    1,1    1,1    1,-1    -1    2    1    1    -1    -1    1    1    1    0    1    1    0    0    0    0    0    SkillSp_Ys    0    0    0    0    Skill_Ys_End    0    0    43    0    0    0    0    0    0    0    0    0    0    0    SkillCooldown_Ys    1    1    12,0,0,0,0,0,0,0,0,0    0    52    -1,0,0    121,0,0    0,0,0    -1    0,0    0,0    -1    -1    -1    0    0    -1    -1    0    0    0    812843008    s0123.tga    0    0,0    Become invisible to others    Conceals for 30s and consumes 5.5 SP every 5s at level 1. Reduces SP consumption by 0.5 SP and duration increases by 5s per ski    Fix consumption of 10 sp    0


My second problem is glow effect i added glow to item but i cant see glow IG all is updated.

 

240	GODEMBLEM STATE	-1	0	State_GODEMBLEM_Add	State_GODEMBLEM_Rem	3	0	1	1	1	1	1	1	1	1	1	1	1	1	0	0	0	-1	0	0	0	490	0	0	0	0	0	0	0	0
3086	God Emblem	n1819	10130005	0	0	0	0	0	00	41	0	0	0	0	0	0	0	1	1	1	1	5000	-1	0	-1	0	0	-1	-1	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0	0	0,0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	Must be placed at 15th Slot.																																																																																									

Thanks.

Share this post


Link to post
Share on other sites

replace  this

2 hours ago, Unkn0wn said:

123    Stealth    1    9,10;10,10

with this: 

123    Stealth    1    9,10,12;10,10


 

 

2 hours ago, Unkn0wn said:

3086	God Emblem	n1819	10130005	0	0	0	0	0	00	41	0	0	0	0	0	0	0	1	1	1	1	5000	-1	0	-1	0	0	-1	-1	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0,0	0	0	0,0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	Must be placed at 15th Slot.																																																																																									

 

it seems like you want it to work on the 15th slot, which doesn't come out of the box, you need to check for it separately. find cha_timer function inside function.lua & insert this.
 

local emblemSlot = GetChaItem(role, 2, 14)
local emblemID   = GetItemID(emblemSlot)

if (emblemID == 3086) then
    AddState(role, role, EMBLEM_STATE, 1, 5)
else
     if GetChaStateLv(role, EMBLEM_STATE) ~= 0 then
          RemoveState(role, EMBLEM_STATE) 
     end    
end



 

in variables.lua add this

EMBLEM_STATE = 240

 

  • Like 1

Kind regards, AG.

Share this post


Link to post
Share on other sites
1 hour ago, J0k3r said:

replace  this

with this: 


123    Stealth    1    9,10,12;10,10


 

 

it seems like you want it to work on the 15th slot, which doesn't come out of the box, you need to check for it separately. find cha_timer function inside function.lua & insert this.
 


local emblemSlot = GetChaItem(role, 2, 14)
local emblemID   = GetItemID(emblemSlot)

if (emblemID == 3086) then
    AddState(role, role, EMBLEM_STATE, 1, 5)
else
     if GetChaStateLv(role, EMBLEM_STATE) ~= 0 then
          RemoveState(role, EMBLEM_STATE) 
     end    
end



 

in variables.lua add this


EMBLEM_STATE = 240

 

Thank you for the frist one.

For emblem ye i did everytinh.


variable.lua

STATE_GODEMBLEM            =    240

Skileff

240	GODEMBLEM STATE	-1	0	State_GODEMBLEM_Add	State_GODEMBLEM_Rem	3	0	1	1	1	1	1	1	1	1	1	1	1	1	0	0	0	-1	0	0	0	490	0	0	0	0	0	0	0	0


funcions.lua

	local pet_num = GetPetNum(role)
	local pet_numid = GetChaItem ( role , 2 , 14 )
	local pet_num_id = GetItemID ( pet_numid )
	if pet_num_id == 3086 then
		local statelv = 1
		local statetime = 3600
			AddState( role , role , STATE_GODEMBLEM , statelv , statetime )
	else
		local state_godemblem = GetChaStateLv ( role , STATE_GODEMBLEM )
		if state_godemblem ~= 0 then
			RemoveState ( role , STATE_GODEMBLEM )
		end
	end	

 

The emblem like stats work but the glow effect dont work.

Share this post


Link to post
Share on other sites
21 hours ago, J0k3r said:

Did you compile and update skilleff.txt/bin?

Yeah i did. I also have problme with stealth dont work i updated evrything... Wierd

Share this post


Link to post
Share on other sites
On 5/30/2021 at 12:27 AM, J0k3r said:

Did you compile and update skilleff.txt/bin?

So wierd... I added stealth skill to ss open the book but when i double clikc on stealth no stealth 

Share this post


Link to post
Share on other sites

show the script you are using 
otherwise you can use the exist code of stealth of ss called cloak or something like that
 

0474	Cloak	1	2,10;12,10	1,-1	1,-1	9999	-1	2	1	1	-1	-1	1	1	1	0	1	1	0	0	0	0	0	SkillSp_Ys	0	0	0	Skill_Ys_Begin	Skill_Ys_End	0	0	43	0	0	0	0	0	0	0	0	0	0	0	SkillCooldown_Ys	1	1	12	0	52	-1	121	0	-1	0,0	0,0	-1	-1	-1	0	0	-1	-1	0	0	0	0	x1087.png	0	0	Become invisible to others	Conceals for 30s and consumes 5.5 SP every 5s at level 1. Reduces SP consumption by 0.5 SP and duration increases by 5s per skill level	Fix consumption of 10 sp	0

or just check how is your 
function Skill_Ys_End ( ATKER , DEFER , sklv ) 
works or post it here 

Share this post


Link to post
Share on other sites
19 hours ago, mkhzaleh said:

show the script you are using 
otherwise you can use the exist code of stealth of ss called cloak or something like that
 


0474	Cloak	1	2,10;12,10	1,-1	1,-1	9999	-1	2	1	1	-1	-1	1	1	1	0	1	1	0	0	0	0	0	SkillSp_Ys	0	0	0	Skill_Ys_Begin	Skill_Ys_End	0	0	43	0	0	0	0	0	0	0	0	0	0	0	SkillCooldown_Ys	1	1	12	0	52	-1	121	0	-1	0,0	0,0	-1	-1	-1	0	0	-1	-1	0	0	0	0	x1087.png	0	0	Become invisible to others	Conceals for 30s and consumes 5.5 SP every 5s at level 1. Reduces SP consumption by 0.5 SP and duration increases by 5s per skill level	Fix consumption of 10 sp	0

or just check how is your 
function Skill_Ys_End ( ATKER , DEFER , sklv ) 
works or post it here 

Thanks now i have this problem skill cannot be casted ... What's next?

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...