Jump to content
Fajar

How to make set Can't Forge, Socket, Fuse, Upg?

Recommended Posts

On 2017-5-16 at 10:05 AM, Fajar said:

Hello! Can someone help me? How to make set Can't Forge, Socket, Fuse, Upg?

 

Thanks who can help me :smile:

 

   
    Locked forging on ItemID

 function of can_forge_item_main

	local ItemID = GetItemID ( Item_Jinglian )
	if ItemID == itemid then
		SystemNotice(role, "Item locked! Forging failed!")
		return 0
	end
	

 

You can figure out the rest, same principle. All within forge.lua

Edited by Gamez Pirates

Share this post


Link to post
Share on other sites

Hello @Fajar!

 

Open file GameServer\resource\script\calculate\forge.lua and find these functions:

 

function can_forge_item_main() - Check if item can be forged.

function can_fusion_item_main()  - Check if item can be fused.

function can_beuplv_item_main() - Check if item can be upgraded.

function can_milling_item_main() - Check if it is possible to create a socket in the item.

 


Share this post


Link to post
Share on other sites

how to creat a script?

Im Newbie, and i've tried only can't extract work

I use this

	if ItemID_mainitem == 825 or ItemID_mainitem == 826 or ItemID_mainitem == 827 then
		SystemNotice( role ,"Cannot plier starter set!")
		return 0	
end

can help me?

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