Jump to content
Graf

VIP ожерелье

Recommended Posts

VIP ожерелье.

Взято с архива. Сделал "Sultan".

Эффект выглядит так:

VIP.JPG.83e36c0f578fbf355e0aebb0a2ba7c5c.JPG

А теперь разберемся, как нам это все добавить...

Открываем свою папочку resource. Заходим в scripts. Видим там Calculate. И в ней мы открываем файл function.lua

Ищем там "cha_timer" и вставляем:

local Necklace = GetEquipItemP( role, 5 )
		local Necklace_ID = GetItemID ( Necklace )
		if(Necklace_ID == ID ожерелья)then
			local statelv = 1
			local statetime = 3600
			AddState ( role , role , VIPNECKY , statelv , statetime ) 
		else
			local state_vipnecky = GetChaStateLv ( role , VIPNECKY )
			if state_vipnecky ~= 0 then
				SystemNotice( role , "Вы сняли VIP ожерелье. Эффект снят!")
				RemoveState ( role , VIPNECKY )
			end
		end

Возвращаемся в resource и видим файл sceneeffectinfo.txt

Вставляем в него:

4022	vipneck.par	VIPПоБґ	єЈАЛ	1	0	-1,-1,-1,-1,-1,-1,-1,-1	-1	3	0.0	0.0	-1.0

Там же открываем skilleff.txt

####	VIP Necklace	-1	0	VIPNECKY_Add	VIPNECKY_Rem	1	0	1	1	1	1	1	1	1	1	1	1	1	1	0	0	0	-1	0	0	0	4022	1	0	0	0	0	0	0	0

И в resouce/calculate открываем  skilleffect.txt

Ищем "BBRING1" и добавляем над ним:

----------------------
--   VIP ожерелье	--
----------------------
function VIPNECKY_Add ( role , statelv )
--Тут придумываем, какой эффект будет даваться персонажу.
end 

function VIPNECKY_Rem ( role , statelv )
--А тут не забываем удалять его при снятии с персонажа.
end

А затем variable.txt

Тут также ищем BBRING1 и вставляем:

VIPNECKY	=	ID в skilleff.txt

Так-с.. Осталось залить текстурки в клиент. ===> ССЫЛОЧКА

  • Thanks 1

Share this post


Link to post
Share on other sites
On 9/19/2021 at 11:43 PM, Mesut said:

my skill and item are unvisible i mean i cant use them there must a trouble.... anyone can help me i can upload picture if u want.

Effect ID in silleff.txt should be less than 240.


Share this post


Link to post
Share on other sites
On 10/30/2021 at 2:38 PM, Mesut said:

pls upload the link i need it too!!!

Simple Archive -> Vip Necklace.rar


Share this post


Link to post
Share on other sites
20 hours ago, Mesut said:

is there any iteminfo neck i can use to this?

Yes, look at the code @Graf posted:

local Necklace = GetEquipItemP( role, 5 )
		local Necklace_ID = GetItemID ( Necklace )
		if(Necklace_ID == ID ожерелья)then
			local statelv = 1
			local statetime = 3600
			AddState ( role , role , VIPNECKY , statelv , statetime ) 
		else
			local state_vipnecky = GetChaStateLv ( role , VIPNECKY )
			if state_vipnecky ~= 0 then
				SystemNotice( role , "Вы сняли VIP ожерелье. Эффект снят!")
				RemoveState ( role , VIPNECKY )
			end
		end

 

You have to write your necklace item ID here:

if(Necklace_ID == ID ожерелья)then

 

  • Like 2
  • Thanks 1

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