Jump to content
Sign in to follow this  
WVWMK

[Скрипт]Невидимость ГМ\Запрет атаки гм

Recommended Posts

function.lua

function cha_timer(role, freq, time) 
...

	--Невидимость для ГМ 
	local gmlvl = GetGmLv(role) -- получаем уровень гм из базы
	if gmlvl >=60   then
	local sk_add = SK_KSSQQW  -- скилл запрещающий атаовать(на деле просто скилл без функции)
	local form_sklv = GetSkillLv( role , sk_add )
		if form_sklv<=0 then
			a = AddChaSkill ( role , sk_add, 1  , 1 , 0 ) 
		end
	 AddState( role , role , STATE_YS , 10 , 100 ) -- невидимость
	 SetCharaAttr( 1000 , role , ATTR_STATEV_CON ) -- статы
	 SetCharaAttr( 1000 , role , ATTR_STATEV_STA )
	 SetCharaAttr( 1000 , role , ATTR_STATEV_DEX )
	 SetCharaAttr( 1000 , role , ATTR_STATEV_AGI )
	 SetCharaAttr( 2000 , role , ATTR_STATEV_MSPD ) -- скорость
	 ALLExAttrSet(role)
	end
	...
                       
end

Для работы скрипта в ГС должна быть функция GetGmLv


Делай добро и бросай его в воду

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.

Sign in to follow this  

×
×
  • Create New...