First of all, Credits got to Lightblade at Serverdev.net!!!!!
Making a gem isn't as easy like making an item. It Takes more time. First time for me it took like 10-15 Min
Well Lets get Started
First You Need these Components
Stoneinfo.Txt //If you dont have you can get from downloading V2 server files
Bin. Compiler //
Compiler Download: zSHARE - bin compile.bat
BIN COMPILER NEEDS TO BE PUT IN YOUR CLIENT FOLDER
Guide for compiler: YouTube - ToP compiler for v2 iteminfo
=================================================================
Lets Get Started shall we???
Lets Start out Easy go to Server Files>Resource>ItemInfo
Press Ctrl+F then type in 863 then press Enter.
(Its Gem of Rage but it isnt gonna change the stats of ur gem XD)
Copy and paste it somewhere in your Iteminfo Give it a New Id and Name then Save and Close Out
Here are some good Icons anonym.to - free dereferer service
================================================================
LightBlade's Guide starts here..
================================================================
:NOTICE WHEN PASTING BLANK VALUES YOU MAY NEED TO SPACE IT CORRECTLY TO MATCH OTHERS :
Now heres where things get tricky
Goto Server files / resource / scripts / calculation / variable.lua
Ctrl + f ( FIND ) "StoneAttrType_Num"
edit the number to + 1 w/e it is currently is (adding 1 gem) this will be known as ##
(For example if StoneAttrType_Num = 45)
and ur adding 1 gem chang it to StoneAttrType_Num = 46)
Continue scrolling to the end of "StoneAttrType" list, add, and edit thisStoneAttrType_Num = ##
## = same as aboveStoneAttrType [##] = ITEMATTR_VAL_AAAA
Replace AAAA with one of the following
Next Find "StoneEff_Num"STR --Strength
DEX --Accuracy
AGI --Agility
CON --Constitution
STA --Spirit
MXHP --Max Hp
MXSP --Max Sp
MNATK --Attack
DEF --Defense
HIT --Hit rate
FLEE --Dodge
MF --Raise drop rate o_O untested --lol pick pocket--
CRT --Crit rate
HREC --Hp rec
SREC --Sp rec
ASPD --Attack speed
MSPD --Movement speed
PDEF --Physical resistance
Then edit the number ## to same as above
Continue Scrolling to the end of "StoneEff" list, add, and edit this
## = same as aboveStoneEff [##] = #
Replace # with the amount of stats the gem will give
Next Find "StoneTpye_ID_Num"
Then edit the number ## to same as above
Continue Scrolling to the end of "StoneTpye_ID" list, add, and edit this
## = same as aboveStoneTpye_ID [##] = ####
Replace #### with Iteminfo.txt ID
Next find "StoneEffType"
Continue Scrolling to the end of "StoneEffType" list, add, and edit this
## = same as aboveStoneEffType[##] = #
Replace # with effect type 1-4
Next find "StoneItemType"1) attack
2) defense
3) havent seen it used
4) other
Continue Scrolling to the end of "StoneItemType" list, add, and edit this
## = same as aboveStoneItemType[##] = { #,0 }
Replace # with where u want the gem to go (can be more than one ex: {11,22,27,0})DO NOT DELETE THE '0'
Save and close out1) 1 handed sword
2) 2 handed sword
3) Bow
4) Firegun
7) daggers
9) Staffs
11) shield
20) ami caps
22) armors
23) gloves
24) shoes
27) tattoos
==================================================================================================================================
That was Hard part now here is easy part.
ALMOST DONE ^^
Next
Server files / resource / Stoneinfo.txt
The very bottom add and edit this
(add spacing if needed)
ID = ## from above## ASDF #### #,#,# # ItemHint_QWERTY
ASDF = Name u gave it in Iteminfo.txt
#### = Iteminfo ID
#,#,# = ItemType from above(where it goes)
# = EffType from above(1-4)
ItemHint_QWERTY = the function hint in the client (see scripts.lua)
change QWERTY to whatever you want
Now go to
Client / scripts / lua / table / scripts.lua
add this at the very bottom
change QWERTY to whatever you wantfunction ItemHint_QWERTY( Lv )
local eff = Lv * #
local Hint ="Gem Bonus AAAA +"..eff
return Hint
end
# is the stat amount
replace AAAA with one the one that matchs "ITEMATTR_VAL_AAAA"Then Save and Close outStrength
Accuracy
Agility
Constitution
Spirit
Max Hp
Max Sp
Attack
Defense
Hit rate
Dodge
Raise drop rate
Crit rate
Hp rec
Sp rec
Attack speed
Movement speed
Physical resistance
==================================================================================================================================
COMPILING :)
Now Go to ClientFolder>Scripts>table
Delete Or Cut Iteminfo.Bin and StoneInfo.Bin
Now go to ServerFiles>resourse
Copy Iteminfo.txt and Stoneinfo.txt and paste them in
Clientfolder>scripts>table
Go to ur clientfolder
Start the Compiler
Click 'OK' for all the errors. (THE ERRORS ARE SUPPOSED TO COME UP!!!!)
GO back to your Table folder and chest and see you have iteminfo.bin and Stoneinfo.bin
If you do, thats great because your Done and you can enjoy your gems now :))
=================================================================
If you get a missing Stoneinfo You might of made a gem wrong.
(Ussualy I get errors when making attack type gems)
Possible reasons
You messed up configuring the gem
You made too many gems at a time and made mistake
you forgot to change the Max gems in Variable.LUA
================================================================
CONGRATS YOU MADE A GEM :)
TY AGAIN Lightblade for this Guide!!!
---------- Post added at 10:49 PM ---------- Previous post was at 10:47 PM ----------
Oh and please dont request Support ty :)




Reply With Quote

