Jump to content
Sign in to follow this  
blazi10

Gem error

Recommended Posts

Any one Know how fix it? It happened after make one new Gem,  i was following a guide from pkodev so im sure on 95% i did all right,  Any one Know? :) help if you can, Thanks. 

Screenshot_2017-02-02-20-07-06.png

Share this post


Link to post
Share on other sites

Did you add the new gem to Stoneinfo?

ex:

87    Curse Rune    8523    26,0,0    1    ItemHint_WuZhouFW

Edited by Julio

Share this post


Link to post
Share on other sites

Maybe you forgot to modify the client. Try to:

 

Follow X:\Your Client Name\scripts\lua\table and open scripts.lua

You'll see something like this: 

function ItemHint_GGW ( Lv )
	local eff = Lv * 6	
	local Hint ="Gem Bonus Agility +"..eff	
	return Hint	
end 

 

Copy and past below changing to the gem information you created. Example:

function ItemHint_XxxX ( Lv ) -- Same name of your gem in StoneInfo.txt
	local eff = Lv * X	-- Number of attributes the gem gives
	local Hint ="Gem Bonus xXxXXxx +"..eff	-- Attribute Description
	return Hint	
end 

If not, you probably forgot to fill in some part, filled it wrong, or did not compile StoneInfo.txt....


“So the problem is not so much to see what nobody has yet seen, as to think what nobody has yet thought concerning that which everybody sees.”


― Arthur Schopenhauer

Share this post


Link to post
Share on other sites

You can forge a gem even if you do not have stoneinfo compiled on the client
For it is a visual part

If you are forging as an "error" is to create the missing part thrown by @Methz

 

Share this post


Link to post
Share on other sites

Hmm when i forge all is fine, stats add, but with new gems no see what's add, so i need fix it xD Just not showing information about bonus Gem, and no calculate them automathicly

Share this post


Link to post
Share on other sites

Here's topic about gems, so question can be: how i can increasse max lvl chip gems from 3 to 9? Im using 1.36 files and in forge lua cant see function about max lvl Gem, Any ideas? :)

Share this post


Link to post
Share on other sites
4 hours ago, blazi10 said:

Here's topic about gems, so question can be: how i can increasse max lvl chip gems from 3 to 9? Im using 1.36 files and in forge lua cant see function about max lvl Gem, Any ideas? :)

I think you can change that looking for function can_unite_item_main ( Table ) in forge.lua

  • Like 1

“So the problem is not so much to see what nobody has yet seen, as to think what nobody has yet thought concerning that which everybody sees.”


― Arthur Schopenhauer

Share this post


Link to post
Share on other sites
2 hours ago, Methz said:

I think you can change that looking for function can_unite_item_main ( Table ) in forge.lua

I trying find but in 1.36 files no information about lvl 3 or 9 chipped Gem :/

Share this post


Link to post
Share on other sites
8 minutes ago, blazi10 said:

I trying find but in 1.36 files no information about lvl 3 or 9 chipped Gem :/

So try to looking for to the gem ID, error messages, parts of codes, functions.... Examples: 

if ItemID2 >= 6817 and ItemID2 <= 6831 then 
"Gem can improved to level 3 at most."
Get_StoneLv
>=3

If nothing works, maybe you need to change your server file.


“So the problem is not so much to see what nobody has yet seen, as to think what nobody has yet thought concerning that which everybody sees.”


― Arthur Schopenhauer

Share this post


Link to post
Share on other sites
8 hours ago, Methz said:

I think you can change that looking for function can_unite_item_main ( Table ) in forge.lua

Here you have my function can_unite_item_main (Table):

function can_unite_item_main ( Table )
--	SystemNotice ( Table[1] , "Entering combining main function")
	local role = 0
	local ItemBag = {}										--µŔľß±ł°üλÖĂ
	local ItemCount = {}										--µŔľßĘýÁż
	local ItemBagCount = {}										--µŔľß¶ÔĎóĘýÁż
	local Get_Count = 4
	local ItemReadCount = 0
	local ItemReadNow = 1
	local ItemReadNext = 0
	local ItemBag_Now = 0
	local ItemCount_Now = 0
	local ItemBagCount_Num = 0

--	SystemNotice( arg[1] , "start transfer parameter analysis")

	
	role , ItemBag , ItemCount , ItemBagCount , ItemBag_Now , ItemCount_Now , ItemBagCount_Num = Read_Table ( Table )

--	for kkk = 0 , 2 , 1 do
--		SystemNotice ( role , ItemBagCount[kkk])
--		SystemNotice ( role , ItemBag[kkk])
--		SystemNotice ( role , ItemCount[kkk])
--	end
	
--	Notice(role , "11111")
	local i = 0
	for i = 0 , 2 , 1 do							--ĹжϵŔľß¶ÔĎó¸öĘýşÍµŔľß¸öĘýĘÇ·ńşÍ·¨
		if ItemBagCount[i] ~= 1 or ItemCount[i] ~= 1 then
--			SystemNotice( role , "ItemBagCount[i] = "..ItemBagCount[i])
--			SystemNotice( role , "ItemCount[i] = "..ItemCount[i])
			SystemNotice( role , "Item target unit and item unit illegal")
			return 0
		end
	end

	
	
	local BagItem1 = ItemBag [0]
	local BagItem2 = ItemBag [1]
	local BagItem3 = ItemBag [2]

	local Item1 = GetChaItem ( role , 2 , BagItem1 )			--ȡµŔľßÖ¸Őë
	local Item2 = GetChaItem ( role , 2 , BagItem2 )
	local Item3 = GetChaItem ( role , 2 , BagItem3 )
	
	local ItemID1 = GetItemID ( Item1 )					--ȡµŔľß±ŕşĹ
	local ItemID2 = GetItemID ( Item2 )
	local ItemID3 = GetItemID ( Item3 )

	local ItemType1 = GetItemType ( Item1 )
	local ItemType2 = GetItemType ( Item2 )
	local ItemType3 = GetItemType ( Item3 )

	if ItemType1 ~= 47 then					--ĹжϾíÖáĘÇ·ńŐýČ·
		
		SystemNotice( role ,"This is not a combining scroll")
		return 0
	end

	if ItemType2 ~= 49 or ItemType3 ~= 49 then			--ĹжĎĘÇ·ńĘDZ¦ĘŻ
		if ItemType2 ~= 50 or ItemType3 ~= 50 then
			SystemNotice( role , "This is not a Gem")
			return 0
		end
	end

	if ItemID2 ~= ItemID3 then						--ĹжĎÁ˝¸ö±¦ĘŻĘÇ·ńͬŔŕ
		SystemNotice(role ,"Gem mismatch")

		return 0
	end

	local Item2_Lv = Get_StoneLv ( Item2 )					--ȡ±¦ĘŻµČĽ¶
	local Item3_Lv = Get_StoneLv ( Item3 )
	
	if ItemType2 == 49 and ItemType3 == 49 then
		if Item2_Lv >= 9 or Item3_Lv >= 9 then
			SystemNotice ( role , "Gem Lv max")
			return 0
		end
	end

	if Item2_Lv ~= Item3_Lv then 
		
		SystemNotice(role ,"Level of 2 gems does not match")
		return 0
	end
--	SystemNotice ( role , "determination successful")
	local Money_Need = getunite_money_main ( Table )
	local Money_Have = GetChaAttr ( role , ATTR_GD )
	if Money_Need > Money_Have then
		SystemNotice( role ,"Insufficient gold. Unable to combine")
		return 0
	end
	

	return 1
end

 

Share this post


Link to post
Share on other sites

I don't know why...


“So the problem is not so much to see what nobody has yet seen, as to think what nobody has yet thought concerning that which everybody sees.”


― Arthur Schopenhauer

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