Hello Im Trying To Add An Npc That Will Give People Low Level Items Like Armor level 15 Weps Rings Neck And Boots All 1soc.If Anyone Can Help Me Do This That Would Be Really Nice.
Printable View
Hello Im Trying To Add An Npc That Will Give People Low Level Items Like Armor level 15 Weps Rings Neck And Boots All 1soc.If Anyone Can Help Me Do This That Would Be Really Nice.
Why don't you try & code it yourself ?
Thats why im asking for help im just learning the basic codeing
Lol i never asked help for such things, i looked around if there were any guides or something.
Thats is very easy, u just need to find the id for item, use this command
AddItem(120029, 7, 2, 9, 7, 255); this is the command for heartnecklace ..
try to figure out
you have all right in that :}
here the code
go to NPCdialog
Any line after public class NPCdialog : Instances
put this code
Code:public bool CheckItemLimit(COClient _client, int x)
{
int cout = 0;
foreach (int[] FindItem in _client.Char.Inv_items)
{
if (FindItem[0] == 0) { cout++; }
}
if (cout >= x)
return true;
return false;
}
then when you want to add item in Any NPCsCode:public bool AddItem(int id, int plus, int bless, int enchanted, int soc1, int soc2)
{
if (this.CheckItemLimit(_client, 1))
{
foreach (int[] test3 in _client.Char.Inv_items)
{
if (test3[0] == 0)
{
ItemData.ItemData ItemsDetails = (ItemData.ItemData)BackendDB.MainItemData[id];
int Rand_UID = World.RND.Next(1000, 16777215);
test3[0] = id;
test3[1] = 0;
test3[2] = 0;
test3[3] = plus;
test3[4] = bless;
test3[5] = enchanted;
test3[6] = 0;
test3[7] = ItemsDetails._MaxDura;
test3[8] = ItemsDetails._MaxDura;
test3[9] = Rand_UID;
test3[10] = soc1;
test3[11] = soc2;
AddItem add = new AddItem(test3[0], test3[3], test3[4], test3[5], Rand_UID, 0, test3[10], test3[11], test3[7], test3[8]);
_client.SendData(add.writeImpl());
break;
}
}
return true;
}
else
{
return false;
}
}
put this code only
will be like that if you don't understandCode:AddItem(ItemID, plus, bless, enchanted, soc1, soc2);
Code:AddItem(510003, 9, 7, 255, 13, 13);
and what happens if his source doesnt use that system for an inventory?
or if his source doesnt use that system for sending data to the client?
and if his source doesnt use COClient as the class name for a client?
fuck sake...seriously you cant just post code without knowing which source they are using
THINK before you post
any one like this gay use COEMU source
cuse if he don't he will not come here and ask how to add item
cuse he will make his source
if his source not use this system i ask him to show me his source and i make additem code to him
if this guy can't make a source, hadesets source or w/e his name is xD, cofuture(Korvacs + futures source). They run on different inventory systems if im not mistaken.
lol i don't know all thing or any thing
i just try help :Ы
but i think i make worng help
All he's trying to say is theres more than just the coemu source out there with different inventory systems ect. Only give advice when you know it is relevant to the question. Minusing all other possibilities of what this guy might be using.
Atleast the guy is trying to help others even know its stupid to even try and help because they will never grasp any of it.... Anyways what ever its none of my business
Josh
Problem is theres no point. Useless posts are spam.....
Ultimatum, since everyone calls Future's source COFuture, then you can call my source COHadeset. Rofl XD
ye :/ CoFuture + Korvacs xD. Thats why you got to include korvacs because they were both involved in making it.
So Korvacs, server from you and name from Future? :D
What should i call my server then? =(