How to create a Item

Welcome to the Tutorial, how to create or edit your Items.


First of all we need some things:
- Inititem
- A tool for open config.pk and e.pk like PKED
-*\data\config\config.pk 
-*\data\HyperText

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

First Part,

Serverside:

Open the Inititem.txt

Example 1 :
;GM Speed Up
(item (name 647) (Index 15) (Image "item550") (desc 834) (class general refresh) (code 4 8 0 0) (country 2) (use 1) (plural 1) (cooltime 2000) (buy 0) (sell 0) (specialty (buff 12 1800 300) ) )
Example 2 :
;Mage - ARMOR
(item (name 1035) (Index 2035) (Image "Def328m") (Action 13 1) (class defense upperarmor) (code 2 3 3 0) (country 0 1 2) (level 95) (wear 1) (limit mage 95) (buy 0) (sell 520000) (endurance 24) (specialty (Str 4) (Hth 1) (Int 16) (Wis 2)(Dex 3) (defense 45) (dodge 35) (absorb 2) (resistfire 9) (resistice 9) (resistlitning 9) (resistcurse 6) (resistpalsy 6) ) )

The black text are different variables, and the blue text different values.
  • " ; " Its good for setting name there
  • item = Told us, its a Item
  • name = Index/Number for message-e.dat
  • Index = Item Index/Number ( unique )
  • Image = Name of the .bmp picturefile which is placed at *\data\Hypertext and is the Icon for the Item
  • desc = Its the description for the Item, I will explain this later at config.pk. Its not for Armors or Weapons.
  • Action = Its for the moves/actions .gb model files for Items.
  • class = Different types of items,
  1. money coin = For geons
  2. general refresh = For Items like. Medecine or Speed Ups
  3. general etc = For items like Gold Pot
  4. quest common = For Questitems which will placed at Task
  5. transform cocoon = For Eggs like Tiger
  6. general charm = For Talis like. ToA or ToE
  7. general repair = For Fixingitems like Fixing Tool
  1. defense upperarmor = For Chest 
  2. defense helmet = For Helmet / Deco
  3. defense gauntlet = For Gloves
  4. defense boots = For Boots
  5. defense lowerarmor = For Shorts
  1. weapon sword = For 1Handed Swords
  2. weapon sword2h = For 2Handed Swords
  3. weapon bow = For Bows
  4. weapon wand = For Sticks
  5. weapon dagger = For Dagger
  1. ornament trinket = For Trinkets
  2. ornament necklace = For Belt
  3. ornament ring = For Ring
  1. pet egg = Pet 
  2. defense mask = Assasin Mask
  3. event = Dont know, sorry
  4. defense standard = Flaggs.
  5. quest fish = For Fishquests
  • code = Told us which kind of Item we create
  1. 3 5 13 0 = ToP
  2. 3 5 12 0 = ToI
  3. 3 5 14 0 = ToW
  4. 5 15 0 0 = Ring
  5. 5 14 0 0 = Necklace / Belt
  6. 1 2 1 3 = Pet
  7. 1 1 1 1 = Sword
  8. 1 2 2 2 = Bow
  9. 1 2 1 3 = Stick
  10. 1 2 1 1 = Dagger
  11. The rest you can copy from other Repacks or your Repack
  • country = Version of Client
  • level = Grade of Item
  • wear = Told us, that u can wear the Item
  • limit = Limit for the weapon
  • <class> = Which Class <level> Which Level
  1. Like "Knight 30",Now you can wear this item with a lvl 30 Knight
  • buy = NPC buy price
  • sell = NPC sell price
  • endurance = Max endurance
  • speciality = Different conditions:
  1. event = Dont know, sorry
  2. quest = Link to Quest.txt 
  3. taskquest = Dont know sry
  4. buff = Which kind of  Buff the Item will add ( see macro.dat )
  5. limitdate = How long the Item will avaible
  6. mixItem = Dont know, sorry
  7. Changeprefix ornament = Which Prefix the ToW will add
  8. Changeprefix weapon = Which Prefix the ToI will add
  9. Changeprefix defense = Which Prefix the ToP will add
  • str = Strength (stattpoint)
  • hth = Health (stattpoint)
  • int = Intelligence (stattpoint)
  • wis = Wisdom (stattpoint)
  • dex = Agility (stattpoint)
  • defense = Defense
  • dodge = Eva
  • hit = Otp 
  • resist:

  1. resistice = Ice resist
  2. resistfire = Fire resist
  3. resistlitning  Lightning resist
  4. resistcurse = Versus Curse 
  5. resistpalsy =  Non Element resistens 

Now it need to look like this :

Now save all.
Now we go to the next Part,

Client Side:

The first thing:

open config.pk with PKED tool
like at the top *\data\config\config.pk. Look for the art of entcrypting! Never forget to check if you safe which pk you want to safe!.

Now it need to look like this, open the Inititem.dat.


Now you copy the Inititem.txt and paste it to this Inititem.

Now we open message.dat


Now we can write our Itemname and Itemdesc.


( itemname 648 "Test")
and
;Test 
( itemdesc 834 "Test Item for this Tutorial.")
Now save.
File\Save as [save to:] and search for the right Config.pk "replace".
Push the last time save and done!

Open the folder *\data\Hypertext
The we can place our Icons for the Items.
Every name is a unique!

Example : 
def001 for Armor 
Wea001 for Waffen


shop001 for KalCash
item001 for Items



Greets



LordMin 

Keine Kommentare:

Kommentar veröffentlichen