Jump to content
Sign in to follow this  
Jelly

deljingling what it does

Recommended Posts

function DelJingLing ( role , now_tick)
	local bagnum = GetKbCap( role ) 
	i = 0 
	for i = 0 , bagnum-1 , 1 do
		local Item_bg = GetChaItem ( role , 2 , i  )
		if Item_bg == nil then
			else
			local Get_Item_Type = GetItemType ( Item_bg )
			if Get_Item_Type == 59 then
				local str_Traget = GetItemAttr( Item_bg ,ITEMATTR_VAL_STR )		--Strenght
				local con_Traget = GetItemAttr( Item_bg ,ITEMATTR_VAL_CON )		--Constitution
				local agi_Traget = GetItemAttr( Item_bg ,ITEMATTR_VAL_AGI )		--Accuracy
				local dex_Traget = GetItemAttr( Item_bg ,ITEMATTR_VAL_DEX )		--Agility
				local sta_Traget = GetItemAttr( Item_bg ,ITEMATTR_VAL_STA )		--Spirit
				local lv_Traget = str_Traget + con_Traget + agi_Traget + dex_Traget + sta_Traget  ----Stat To Add For A Level
				if lv_Traget >= 49 then
					SetItemAttr ( Item_bg , ITEMATTR_URE , 0 )
				end
			end
		end
	end
end

i dont understand this script what does it do guys

Share this post


Link to post
Share on other sites

Checks each slot in bag. If that slot has an itme that is type 59 (fairy) then it checks the fairy level. If the fairy level is higher than 48, then stamina is set to 0. Looks like it is a script to prevent people having cheated fairys with high stats (but doesnt prevent people cheating in fairys with other stats on them, like def/pr/max etc, so isnt really a useful script tbh)

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