Add This Type Of Npc

Results 1 to 20 of 20
  1. #1
    Sorcerer Supreme petertoft is offline
    Member +Rank
    Jan 2008 Join Date
    In ur mom!Location
    417Posts

    Add This Type Of Npc

    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.


  2. #2
    Elite Member XeroRecoil is offline
    Member +Rank
    May 2007 Join Date
    In Hell Called HeavenLocation
    192Posts

    Re: Add This Type Of Npc

    Why don't you try & code it yourself ?

  3. #3
    Sorcerer Supreme petertoft is offline
    Member +Rank
    Jan 2008 Join Date
    In ur mom!Location
    417Posts

    Re: Add This Type Of Npc

    Thats why im asking for help im just learning the basic codeing

  4. #4
    Elite Member hadeset is offline
    Member +Rank
    Dec 2006 Join Date
    240Posts

    Re: Add This Type Of Npc

    Lol i never asked help for such things, i looked around if there were any guides or something.

  5. #5
    Member Superman4 is offline
    MemberRank
    Feb 2008 Join Date
    31Posts

    Re: Add This Type Of Npc

    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

  6. #6
    Sorcerer Supreme Korvacs is offline
    Member +Rank
    Jan 2008 Join Date
    298Posts

    Re: Add This Type Of Npc

    Quote Originally Posted by Superman4 View Post
    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
    and if hes not using that source?

    ffs you people are stupid -.-"

  7. #7
    Elite Member host3rbe is offline
    Member +Rank
    Apr 2006 Join Date
    125Posts

    Re: Add This Type Of Npc

    Quote Originally Posted by Korvacs View Post
    and if hes not using that source?

    ffs you people are stupid -.-"
    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;
    
    
            }
    Code:
    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;
                }
    
    
            }
    then when you want to add item in Any NPCs

    put this code only

    Code:
    AddItem(ItemID, plus, bless, enchanted, soc1, soc2);
    will be like that if you don't understand

    Code:
    AddItem(510003, 9, 7, 255, 13, 13);

  8. #8
    Sorcerer Supreme Korvacs is offline
    Member +Rank
    Jan 2008 Join Date
    298Posts

    Re: Add This Type Of Npc

    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

  9. #9
    Elite Member host3rbe is offline
    Member +Rank
    Apr 2006 Join Date
    125Posts

    Re: Add This Type Of Npc

    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

  10. #10
    Sorcerer Supreme Ultimatum is offline
    Member +Rank
    Feb 2008 Join Date
    EnglandLocation
    334Posts

    Re: Add This Type Of Npc

    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.

  11. #11
    Sorcerer Supreme Korvacs is offline
    Member +Rank
    Jan 2008 Join Date
    298Posts

    Re: Add This Type Of Npc

    Quote Originally Posted by host3rbe View 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
    you dont know that, he could be using the cofuture source, which is also incredibly simple to use

    god...im sick of people like you, thinking they know it all =/

  12. #12
    Elite Member host3rbe is offline
    Member +Rank
    Apr 2006 Join Date
    125Posts

    Re: Add This Type Of Npc

    lol i don't know all thing or any thing

    i just try help :Ы

    but i think i make worng help

  13. #13
    Sorcerer Supreme Ultimatum is offline
    Member +Rank
    Feb 2008 Join Date
    EnglandLocation
    334Posts

    Re: Add This Type Of Npc

    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.

  14. #14
    Member metalicgecko is offline
    MemberRank
    Dec 2007 Join Date
    45Posts

    Re: Add This Type Of Npc

    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

  15. #15
    Sorcerer Supreme Ultimatum is offline
    Member +Rank
    Feb 2008 Join Date
    EnglandLocation
    334Posts

    Re: Add This Type Of Npc

    Problem is theres no point. Useless posts are spam.....

  16. #16
    Elite Member hadeset is offline
    Member +Rank
    Dec 2006 Join Date
    240Posts

    Re: Add This Type Of Npc

    Ultimatum, since everyone calls Future's source COFuture, then you can call my source COHadeset. Rofl XD

  17. #17
    Sorcerer Supreme Korvacs is offline
    Member +Rank
    Jan 2008 Join Date
    298Posts

    Re: Add This Type Of Npc

    Quote Originally Posted by hadeset View Post
    Ultimatum, since everyone calls Future's source COFuture, then you can call my source COHadeset. Rofl XD
    you know, it is atually my source -.-"

  18. #18
    Sorcerer Supreme Ultimatum is offline
    Member +Rank
    Feb 2008 Join Date
    EnglandLocation
    334Posts

    Re: Add This Type Of Npc

    ye :/ CoFuture + Korvacs xD. Thats why you got to include korvacs because they were both involved in making it.

  19. #19
    Elite Member hadeset is offline
    Member +Rank
    Dec 2006 Join Date
    240Posts

    Re: Add This Type Of Npc

    So Korvacs, server from you and name from Future? :D
    What should i call my server then? =(

  20. #20
    Sorcerer Supreme Korvacs is offline
    Member +Rank
    Jan 2008 Join Date
    298Posts

    Re: Add This Type Of Npc

    Quote Originally Posted by hadeset View Post
    So Korvacs, server from you and name from Future? :D
    What should i call my server then? =(
    CoFuckYourself :juggle:



Advertisement