Jump to content
Sign in to follow this  
Vasil

[Question] Forging Level Restriction

Recommended Posts

Sup guys, i made a custom system that contains an item and this item is forgeable, but since the gem is kinda custom i don't want it to be forgeable until Level 9

I'd like to make max Gem level for this item as level 2 or 3.

 

 

If anyone knows how, or got an idea how to create this function,can you nicely tell me in the replies? :D thanks

 

  • ~Vasil 

Share this post


Link to post
Share on other sites
57 minutes ago, Vasil said:

Sup guys, i made a custom system that contains an item and this item is forgeable, but since the gem is kinda custom i don't want it to be forgeable until Level 9

I'd like to make max Gem level for this item as level 2 or 3.

 

 

If anyone knows how, or got an idea how to create this function,can you nicely tell me in the replies? :D thanks

 

  • ~Vasil 

hello vasil. you can try and check the function or broken/cracked/chipped gems. and copy that for those custom gems.

Share this post


Link to post
Share on other sites
26 minutes ago, Jelo said:

hello vasil. you can try and check the function or broken/cracked/chipped gems. and copy that for those custom gems.

Hi, i'm actually using 1.36 server files, and these gems doesn't have any restriction for max forge level.

Share this post


Link to post
Share on other sites

forge.lua check function can_unite_item_main ( Table )

if ItemID2 >= 6817 and ItemID2 <= 6831 then 
		if Item2_Lv>=3 or Item3_Lv >= 3 then 
			SystemNotice ( role , "Gem can improved to level 3 at most.")
			return 0
		end
	end

 

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