THINGS YOU NEED!
*OldCOBD items.txt file
*OldCOBD Shop.Dat file
*OldCOBD NPCs file
*client ini folder, itemtype.txt
*client ini folder, itemtype.dat
*client ini folder, shop.dat
***A itemtype decrytor/encryptor***
Right, i'll start with the npc.
first of all, go to OldCODB folder and open:
NPCs file
at the very button add:
save it and close.
now you need to open up OldCODB folder and open:
Shop.Dat file
change:
to:
scroll to the button of the page and add:
save and close.
now go to your client, open up ini folder and open up:
shop.dat
do the same as what we did in the OldCOBD shop.dat
npc is done.
NPCs file
at the very button add:
Code:
010101 9650 1 68 1002 425 361
now you need to open up OldCODB folder and open:
Shop.Dat file
change:
Code:
Amount=[COLOR="red"]40[/COLOR]
Code:
Amount=[COLOR="red"]41[/COLOR]
Code:
[Shop40] ID=010101 Name=SugarVendor Type=1 MoneyType=1 ItemAmount=8 Item0=723829 Item1=723830 Item2=723831 Item3=723828 Item4=723827 Item5=723826 Item6=723824 Item7=723823
now go to your client, open up ini folder and open up:
shop.dat
do the same as what we did in the OldCOBD shop.dat
npc is done.
ok, thats the easy part done.
now we will add the packs and items into the source.
open up the newestcoserver source, go to Character.cs
use Ctrl+F and type in misc.
once there you will need to add:
now open us Chat.cs
use CTRL+F and type in /gems
under this:
add:
what we just added were the commands players will use to gain there special item.
Note: command will only work if player has the correct item in their inventory.
now thats that part done.
use Ctrl+F and type in misc.
once there you will need to add:
Code:
#region Equiptment gift boxes #region bag case 723829: //elite 1 soc lvl 67 bag token, +1 stone pack, 3 exp balls, medium praying stone, 1 met tear pack. { RemoveItem(I); AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723712); //+1 stone pack AddItem(723711); //Met tear pack AddItem(1200001); //praying stone(M) AddItem(721100); //Elite 1 soc lvl 67 bag token break; } #endregion #region bracelet case 723830: //elite 1 soc lvl 75 bracelet token, +1 stone pack, 3 expballs, medium pray stone, 1 met tear box. { RemoveItem(I); AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723712); //+1 stone pack AddItem(723711); //Met tear pack AddItem(1200001); //praying stone(M) AddItem(721101); //elite 1 soc lvl 75 bracelet token break; } #endregion #region ears case 723831: //elite 1 soc lvl 67 ears, +1 pack, 3 balls, (M) stone, 1 Met tear box { RemoveItem(I); AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723712); //+1 stone pack AddItem(723711); //Met tear pack AddItem(1200001); //praying stone(M) AddItem(721102); //elite 1 soc lvl 67 ears token break; } #endregion #region ring case 723828: // 1 soc elite lvl 70 ring, +1 pack, 3 balls, (M) stone, 1 met tear box { RemoveItem(I); AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723712); //+1 stone pack AddItem(723711); //Met tear pack AddItem(1200001); //praying stone(M) AddItem(721103); //elite 1 soc lvl 70 ring token break; } #endregion #region Necklace case 723827: // elite 1 soc lvl 67 necklace, +1 pack, 3 balls, (M) stone, met tear box { RemoveItem(I); AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723712); //+1 stone pack AddItem(723711); //Met tear pack AddItem(1200001); //praying stone(M) AddItem(721104); //elite 1 soc lvl 67 necklae token break; } #endregion #region boots case 723826: // elite 1 soc lvl 70 boots, +1 pack, 3 balls, (M) stone, met tear box { RemoveItem(I); AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723712); //+1 stone pack AddItem(723711); //Met tear pack AddItem(1200001); //praying stone(M) AddItem(721105); //elite 1 soc lvl 70 boots token break; } #endregion #region Tower case 723824: // elite +6 tower, 2 ref gems, 3 expballs, (M) stone, 1 met tear box { RemoveItem(I); AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(700122); //1 ref glory gem AddItem(700122); //1 ref glory gem AddItem(723711); //Met tear pack AddItem(1200001); //praying stone(M) AddItem(721106); //elite +6 tower token break; } #endregion #region Fan case 723823: // elite +6 fan, 2 ref gems, 3 expballs, (M) stone, 1 met tear box { RemoveItem(I); AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(723700); //exp ball AddItem(700102); //1 ref Thunder gem AddItem(700102); //1 ref Thunder gem AddItem(723711); //Met tear pack AddItem(1200001); //praying stone(M) AddItem(721107); //elite +6 fan token break; } #endregion #endregion
use CTRL+F and type in /gems
under this:
Code:
if (Cmd[0] == "/gems") { if (GC.MyChar.Inventory.Count <= 32) { GC.MyChar.AddItem(700001); GC.MyChar.AddItem(700011); GC.MyChar.AddItem(700021); GC.MyChar.AddItem(700031); GC.MyChar.AddItem(700041); GC.MyChar.AddItem(700051); GC.MyChar.AddItem(700061); GC.MyChar.AddItem(700071); GC.MyChar.AddItem(700101); GC.MyChar.AddItem(700121); } }
Code:
if (Cmd[0] == "/bag") { if (GC.MyChar.InventoryContains(721100, 1)) { GC.MyChar.RemoveItem(GC.MyChar.NextItem(721100)); Game.Item I = new NewestCOServer.Game.Item(); I.Effect = NewestCOServer.Game.Item.RebornEffect.Shield; I.ID = 121128; I.Plus = 0; I.Soc1 = NewestCOServer.Game.Item.Gem.EmptySocket; I.Bless = 0; I.Enchant = 0; I.CurDur = 47; I.UID = (uint)Program.Rnd.Next(10000000); GC.AddSend(Packets.AddItem(I, 0)); } } if (Cmd[0] == "/bracelet") { if (GC.MyChar.InventoryContains(721101, 1)) { GC.MyChar.RemoveItem(GC.MyChar.NextItem(721101)); Game.Item I = new NewestCOServer.Game.Item(); I.Effect = NewestCOServer.Game.Item.RebornEffect.Shield; I.ID = 152148; I.Plus = 0; I.Soc1 = NewestCOServer.Game.Item.Gem.EmptySocket; I.Bless = 0; I.Enchant = 0; I.CurDur = 47; I.UID = (uint)Program.Rnd.Next(10000000); GC.AddSend(Packets.AddItem(I, 0)); } } if (Cmd[0] == "/ears") { if (GC.MyChar.InventoryContains(721102, 1)) { GC.MyChar.RemoveItem(GC.MyChar.NextItem(721102)); Game.Item I = new NewestCOServer.Game.Item(); I.Effect = NewestCOServer.Game.Item.RebornEffect.Shield; I.ID = 117068; I.Plus = 0; I.Soc1 = NewestCOServer.Game.Item.Gem.EmptySocket; I.Bless = 0; I.Enchant = 0; I.CurDur = 47; I.UID = (uint)Program.Rnd.Next(10000000); GC.AddSend(Packets.AddItem(I, 0)); } } if (Cmd[0] == "/ring") { if (GC.MyChar.InventoryContains(721103, 1)) { GC.MyChar.RemoveItem(GC.MyChar.NextItem(721103)); Game.Item I = new NewestCOServer.Game.Item(); I.Effect = NewestCOServer.Game.Item.RebornEffect.Shield; I.ID = 150138; I.Plus = 0; I.Soc1 = NewestCOServer.Game.Item.Gem.EmptySocket; I.Bless = 0; I.Enchant = 0; I.CurDur = 47; I.UID = (uint)Program.Rnd.Next(10000000); GC.AddSend(Packets.AddItem(I, 0)); } } if (Cmd[0] == "/necklace") { if (GC.MyChar.InventoryContains(721104, 1)) { GC.MyChar.RemoveItem(GC.MyChar.NextItem(721104)); Game.Item I = new NewestCOServer.Game.Item(); I.Effect = NewestCOServer.Game.Item.RebornEffect.Shield; I.ID = 120128; I.Plus = 0; I.Soc1 = NewestCOServer.Game.Item.Gem.EmptySocket; I.Bless = 0; I.Enchant = 0; I.CurDur = 47; I.UID = (uint)Program.Rnd.Next(10000000); GC.AddSend(Packets.AddItem(I, 0)); } } if (Cmd[0] == "/boots") { if (GC.MyChar.InventoryContains(721105, 1)) { GC.MyChar.RemoveItem(GC.MyChar.NextItem(721105)); Game.Item I = new NewestCOServer.Game.Item(); I.Effect = NewestCOServer.Game.Item.RebornEffect.Shield; I.ID = 160138; I.Plus = 0; I.Soc1 = NewestCOServer.Game.Item.Gem.EmptySocket; I.Bless = 0; I.Enchant = 0; I.CurDur = 47; I.UID = (uint)Program.Rnd.Next(10000000); GC.AddSend(Packets.AddItem(I, 0)); } } if (Cmd[0] == "/tower") { if (GC.MyChar.InventoryContains(721106, 1)) { GC.MyChar.RemoveItem(GC.MyChar.NextItem(721106)); Game.Item I = new NewestCOServer.Game.Item(); I.Effect = NewestCOServer.Game.Item.RebornEffect.Shield; I.ID = 202008; I.Plus = 6; I.Bless = 0; I.Enchant = 0; I.CurDur = 47; I.UID = (uint)Program.Rnd.Next(10000000); GC.AddSend(Packets.AddItem(I, 0)); } } if (Cmd[0] == "/fan") { if (GC.MyChar.InventoryContains(721107, 1)) { GC.MyChar.RemoveItem(GC.MyChar.NextItem(721107)); Game.Item I = new NewestCOServer.Game.Item(); I.Effect = NewestCOServer.Game.Item.RebornEffect.Shield; I.ID = 201008; I.Plus = 6; I.Bless = 0; I.Enchant = 0; I.CurDur = 47; I.UID = (uint)Program.Rnd.Next(10000000); GC.AddSend(Packets.AddItem(I, 0)); } }
Note: command will only work if player has the correct item in their inventory.
now thats that part done.
OK, now we are up to the last part, and that is changing what the items say.
You don't have to do this part, but it would look weird and players will not know what command to type to get there reward.
Go to OldCOBD folder and open up items.txt
use CTRL+F and type in 721100
now, from 721100 to 721107 copy and paste this, over the current ones:
Code:
721100 Elite1socbag 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 GiftToken When~in~inventory~type~'/bag'~to~gain~reward. 5 721101 Elite1socbracelet 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/bracelet'~to~gain~reward. 5 721102 Elite1socearings 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/ears'~to~gain~reward. 5 721103 Elite1socring 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/ring'~to~gain~reward. 5 721104 Elite1socnecklace 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/necklace'~to~gain~reward. 5 721105 Elite1socboots 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/boots'~to~gain~reward. 5 721106 Elite+6tower 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/tower'~to~gain~reward. 5 721107 Elite+6fan 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/fan'~to~gain~reward. 5
and add this, copy and paste it over 723823 and 723824:
Code:
723823 +6EliteHeavenFanPack 0 0 0 0 0 0 0 0 0 0 0 9019330 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 2599 Gift List:~a~+6~Elite~Heaven~Fan,~2~Refined~Thunder~Gems,~3~EXP~Balls,~a~7~Days`~Blessing~Stone~and~1~Meteor~Tear~Packs. 9 723824 +6EliteStarTowerPack 0 0 0 0 0 0 0 0 0 0 0 9019340 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 2599 Gift List:~a~+6~Elite~Star~Tower,~2~Refined~Glory~Gems,~3~EXP~Balls,~a~7~Days`~Blessing~Stone~and~1~Meteor~Tear~Packs. 9
from 723826 to 723831, copy and paste this:
Code:
723826 1SocketEliteBootsPack 0 0 0 0 0 0 0 0 0 0 0 9019400 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 2399 Gift List:~the~1~Socket~Lv70~Elite~Boots,~a~+1~StonePack,~3~EXPBalls,~a~7~Days`~Blessing~Stone,~and~1~Meteor~Tear~Packs. 9 723827 1SocketEliteNecklacePack 0 0 0 0 0 0 0 0 0 0 0 9019410 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 2199 Gift List:~a~1~Socket~Lv67~Elite~Necklace,~a~+1~Stone~Pack,~3~EXP~Balls,~a~7~Days`~Blessing~Stone,~and~1~Meteor~Tear~Packs. 9 723828 1SocketEliteRingPack 0 0 0 0 0 0 0 0 0 0 0 9019420 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 2199 Gift List:~a~1~Socket~Lv70~Elite~Ring,~a~+1~Stone~Pack,~3~EXP~Balls,~a~7~Days`~Blessing~Stone,~and~1~Meteor~Tear~Packs. 9 723829 1SocketEliteTaoist`sBagPack 0 0 0 0 0 0 0 0 0 0 0 9019430 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1299 Gift List:~a~1~Socket~Lv67~Elite~Bag~token,~a~+1~Stone~Pack,~3~EXP~Balls,~a~7~Days`~Blessing~Stone~and~1~Meteor~Tear~Packs. 9 723830 1SocketEliteBraceletPack 0 0 0 0 0 0 0 0 0 0 0 9019440 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1299 Gift List:~a~1~Socket~Lv75~Elite~Bracelet,~a~+1StonePack,~3~EXPBalls,~a~7~Days`~Blessing~Stone~and~1~Meteor~Tear~Packs. 9 723831 1SocketEliteEarringsPack 0 0 0 0 0 0 0 0 0 0 0 9019450 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 2199 Gift List:~the~1~Socket~Lv67~Elite~Earrings,~a~+1~Stone~Pack,~3~EXPBalls,~a~7~Days`~Blessing~Stone~and~1~Meteor~Tear~Packs. 9
part B:
open up your client, ini folder:
itemtype.txt
do the following, excactly the same of what we did to the item.txt file in OldCOBD
use CTRL+F and type in 721100
now, from 721100 to 721107 copy and paste this, over the current ones:
Code:
721100 Elite1socbag 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 GiftToken When~in~inventory~type~'/bag'~to~gain~reward. 5 721101 Elite1socbracelet 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/bracelet'~to~gain~reward. 5 721102 Elite1socearings 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/ears'~to~gain~reward. 5 721103 Elite1socring 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/ring'~to~gain~reward. 5 721104 Elite1socnecklace 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/necklace'~to~gain~reward. 5 721105 Elite1socboots 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/boots'~to~gain~reward. 5 721106 Elite+6tower 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/tower'~to~gain~reward. 5 721107 Elite+6fan 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem When~in~inventory~type~'/fan'~to~gain~reward. 5
and add this, copy and paste it over 723823 and 723824:
Code:
723823 +6EliteHeavenFanPack 0 0 0 0 0 0 0 0 0 0 0 9019330 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 2599 Gift List:~a~+6~Elite~Heaven~Fan,~2~Refined~Thunder~Gems,~3~EXP~Balls,~a~7~Days`~Blessing~Stone~and~1~Meteor~Tear~Packs. 9 723824 +6EliteStarTowerPack 0 0 0 0 0 0 0 0 0 0 0 9019340 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 2599 Gift List:~a~+6~Elite~Star~Tower,~2~Refined~Glory~Gems,~3~EXP~Balls,~a~7~Days`~Blessing~Stone~and~1~Meteor~Tear~Packs. 9
from 723826 to 723831, copy and paste this:
Code:
723826 1SocketEliteBootsPack 0 0 0 0 0 0 0 0 0 0 0 9019400 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 2399 Gift List:~the~1~Socket~Lv70~Elite~Boots,~a~+1~StonePack,~3~EXPBalls,~a~7~Days`~Blessing~Stone,~and~1~Meteor~Tear~Packs. 9 723827 1SocketEliteNecklacePack 0 0 0 0 0 0 0 0 0 0 0 9019410 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 2199 Gift List:~a~1~Socket~Lv67~Elite~Necklace,~a~+1~Stone~Pack,~3~EXP~Balls,~a~7~Days`~Blessing~Stone,~and~1~Meteor~Tear~Packs. 9 723828 1SocketEliteRingPack 0 0 0 0 0 0 0 0 0 0 0 9019420 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 2199 Gift List:~a~1~Socket~Lv70~Elite~Ring,~a~+1~Stone~Pack,~3~EXP~Balls,~a~7~Days`~Blessing~Stone,~and~1~Meteor~Tear~Packs. 9 723829 1SocketEliteTaoist`sBagPack 0 0 0 0 0 0 0 0 0 0 0 9019430 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1299 Gift List:~a~1~Socket~Lv67~Elite~Bag~token,~a~+1~Stone~Pack,~3~EXP~Balls,~a~7~Days`~Blessing~Stone~and~1~Meteor~Tear~Packs. 9 723830 1SocketEliteBraceletPack 0 0 0 0 0 0 0 0 0 0 0 9019440 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1299 Gift List:~a~1~Socket~Lv75~Elite~Bracelet,~a~+1StonePack,~3~EXPBalls,~a~7~Days`~Blessing~Stone~and~1~Meteor~Tear~Packs. 9 723831 1SocketEliteEarringsPack 0 0 0 0 0 0 0 0 0 0 0 9019450 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 2199 Gift List:~the~1~Socket~Lv67~Elite~Earrings,~a~+1~Stone~Pack,~3~EXPBalls,~a~7~Days`~Blessing~Stone~and~1~Meteor~Tear~Packs. 9
this part done
now, you will need an ItemTypeEditor to finish this off.
start up the itemtype editor.
in the first section click 'choose sourcefile'
now find the itemtype.txt located in your client, and save it.
in the second section click 'choose sourcefile'
now find the itemtype.dat located in your client, and save it
tick 'check for encryption'
and then 'do it'
thats it.
NPC will appear in tc, near wharehouse. Thank me if you like this post.
NOTE: i did not test it with a non pm gm player, i have now, and found the command will not work on my source. it may work on yours. i will figure away around this eventually, sorry for any problems.