[HELP] NPC give items +12

10/09/2010 03:56 biohazardous#1
i got this code but its a complete error if anyone could tell me what the proper coding for this code is i can make my npc
GC.MyChar.AddItem("134109-12-12-7-255-3-3");//PineRobe
btw thats Arco's code
EDIT: #Request Close
I will make items given LVL 130 myself
FOUND NPC THANKS ALL LINK FOR ANYONE ELSE WANT NPC:
[Only registered and activated users can see links. Click Here To Register...]
10/09/2010 04:01 Arcо#2
The hell?
That's not my code.
GC.MyChar.AddItem(410339, 12, 7, 255, 13,13);
Seems like it would be my code.
10/09/2010 04:39 biohazardous#3
Quote:
Originally Posted by Аrco View Post
The hell?
That's not my code.
GC.MyChar.AddItem(410339, 12, 7, 255, 13,13);
Seems like it would be my code.
sorry i cant take credit for this code but you posted it heres link
[Only registered and activated users can see links. Click Here To Register...]
if its not yours my bad i was looking around and i found your post :o
edit: thanks arco i can make my npc now:handsdown: :D:D:D
EDIT2: alright i did the best i could without knowledge of this i based it off Arcos codein the quote
here is the best i could do but there is still errors
Code:
#region +12 items
        {
        if (Control == 0)
        {
            GC.AddSend(Packets.NPCSay("Do you want Full + 12 Gears?"));
            GC.AddSend(Packets.NPCLink("Yes.", 1));
            GC.AddSend(Packets.NPCLink("Just passing by.", 255));
            GC.AddSend(Packets.NPCSetFace(N.Avatar));
            GC.AddSend(Packets.NPCFinish());
        }
        if (Control == 1)
        {
            GC.AddSend(Packets.NPCSay("Pick your class."));
            GC.AddSend(Packets.NPCLink("Trojan", 2));
            GC.AddSend(Packets.NPCLink("Warrior", 3));
            GC.AddSend(Packets.NPCLink("Archer", 4));
            GC.AddSend(Packets.NPCLink("Taoist", 5));
            GC.AddSend(Packets.NPCLink("Just passing by.", 255));
            GC.AddSend(Packets.NPCSetFace(N.Avatar));
            GC.AddSend(Packets.NPCFinish());
        }
        if (Control == 2)
        {
            if (GC.MyChar.Inventory.Count < 29)
            {
                GC.MyChar.AddItem(130109, 12, 12, 7, 255, 13, 13);//Conquest Armor
                GC.MyChar.AddItem(117109, 12, 12, 7, 255, 13, 13);//120 Earring
                GC.MyChar.AddItem(118109, 12, 12, 7, 255, 13, 13);//MagicCoronet
                GC.MyChar.AddItem(150249, 12, 12, 7, 255, 13, 13);//Tornado
                GC.MyChar.AddItem(120249, 12, 12, 7, 255, 13, 13);//Thunder
                GC.MyChar.AddItem(201009, 12, 12, 7, 255, 103, 103);//HeavenFan
                GC.MyChar.AddItem(160243, 12, 12, 7, 255, 13, 13);//Blizzard
                GC.MyChar.AddItem(202009, 12, 12, 7, 255, 123, 123);//StarTower
                GC.MyChar.AddItem(420339, 12, 12, 7, 255, 13, 13);//KingOfSword
                GC.MyChar.AddItem(480339, 12, 12, 7, 255, 13, 13);//KingsClub
                GC.MyChar.AddItem(410339, 12, 12, 7, 255, 13, 13);//BuriedBlade
            }
            else
            {
                GC.AddSend(Packets.NPCSay("Go clear your inventory, you don't have any room."));
                GC.AddSend(Packets.NPCLink("Okay", 255));
                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                GC.AddSend(Packets.NPCFinish());
            }
        }
        if (Control == 3)
        {
            if (GC.MyChar.Inventory.Count < 28)
            {
                GC.MyChar.AddItem(131109, 12, 12, 7, 255, 13, 13);//PhoenixArmor
                GC.MyChar.AddItem(117109, 12, 12, 7, 255, 13, 13);//120 Earring
                GC.MyChar.AddItem(111109, 12, 12, 7, 255, 13, 13);//ConquestHelmet
                GC.MyChar.AddItem(150249, 12, 12, 7, 255, 13, 13);//Tornado
                GC.MyChar.AddItem(120249, 12, 12, 7, 255, 13, 13);//Thunder
                GC.MyChar.AddItem(201009, 12, 12, 7, 255, 103, 103);//HeavenFan
                GC.MyChar.AddItem(160243, 12, 12, 7, 255, 13, 13);//Blizzard
                GC.MyChar.AddItem(202009, 12, 12, 7, 255, 123, 123);//StarTower
                GC.MyChar.AddItem(420339, 12, 12, 7, 255, 13, 13);//KingOfSword
                GC.MyChar.AddItem(480339, 12, 12, 7, 255, 13, 13);//KingsClub
                GC.MyChar.AddItem(410339, 12, 12, 7, 255, 13, 13);//BuriedBlade
                GC.MyChar.AddItem(900109, 12, 12, 7, 255, 13, 13);//DragonShield
            }
            else
            {
                GC.AddSend(Packets.NPCSay("Go clear your inventory, you don't have any room."));
                GC.AddSend(Packets.NPCLink("Okay", 255));
                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                GC.AddSend(Packets.NPCFinish());
            }
        }
        if (Control == 4)
        {
            if (GC.MyChar.Inventory.Count < 30)
            {
                GC.MyChar.AddItem(133109, 12, 12, 7, 255, 13, 13);//PhoenixJerkin
                GC.MyChar.AddItem(117109, 12, 12, 7, 255, 13, 13);//120 Earring
                GC.MyChar.AddItem(113109, 12, 12, 7, 255, 13, 13);//PhoenixHat
                GC.MyChar.AddItem(150249, 12, 12, 7, 255, 13, 13);//Tornado
                GC.MyChar.AddItem(120249, 12, 12, 7, 255, 13, 13);//Thunder
                GC.MyChar.AddItem(201009, 12, 12, 7, 255, 103, 103);//HeavenFan
                GC.MyChar.AddItem(160243, 12, 12, 7, 255, 13, 13);//Blizzard
                GC.MyChar.AddItem(202009, 12, 12, 7, 255, 123, 123);//StarTower
                GC.MyChar.AddItem(500329, 12, 12, 7, 255, 13, 13);//ShadowBow
                GC.MyChar.AddItem(1050002, 0, 0, 0, 0, 0, 0);//SpeedArrow
            }
            else
            {
                GC.AddSend(Packets.NPCSay("Go clear your inventory, you don't have any room."));
                GC.AddSend(Packets.NPCLink("Okay", 255));
                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                GC.AddSend(Packets.NPCFinish());
            }
        }
        if (Control == 5)
        {
            if (GC.MyChar.Inventory.Count < 31)
            {
                GC.MyChar.AddItem(134109, 12, 12, 7, 255, 3, 3);//PineRobe
                GC.MyChar.AddItem(117109, 12, 12, 7, 255, 13, 13);//120 Earring
                GC.MyChar.AddItem(114109, 12, 12, 7, 255, 3, 3);//CraneCap
                GC.MyChar.AddItem(152259, 12, 12, 7, 255, 3, 3);//Lightening
                GC.MyChar.AddItem(121249, 12, 12, 7, 255, 3, 3);//SunShine
                GC.MyChar.AddItem(201009, 12, 12, 7, 255, 103, 103);//HeavenFan
                GC.MyChar.AddItem(160243, 12, 12, 7, 255, 13, 13);//Blizzard
                GC.MyChar.AddItem(202009, 12, 12, 7, 255, 123, 123);//StarTower
                GC.MyChar.AddItem(421339, 12, 12, 7, 255, 3, 3);//KingOfBacksword
            }
            else
            {
                GC.AddSend(Packets.NPCSay("Go clear your inventory, you don't have any room."));
                GC.AddSend(Packets.NPCLink("Okay", 255));
                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                GC.AddSend(Packets.NPCFinish());
            }
        }
    }
        break;
    }
    #endregion
10/09/2010 17:17 Macnoo#4
the id for Blizzard should be 160249 for super

your missing the case at start.

Code:
#region +12 items
case NpcID:
        {
        if (Control == 0)
        {
one to many }

Code:
        }
        break;
    }
    #endregion
and GC.MyChar.AddItem(117109, 12, 12, 7, 255, 13, 13);// not needed

Code:
( ID, Plus, bless, ench, soc1, soc2)
10/09/2010 23:50 Adziunia#5
lol i have seen like 10(less/more) threads from u about help/how..... i have never asked for anything about 5165 i was just trying to figure things by myself and i was a noob with c# like u but i learned some things so the advice from me to u is spend more time with it and i am sure u will l;earn more coz the npc's in tanel's source r the easiest things to do
ah before posting anything i was reading some posts about 5165 and with some of em i fixed my isssues... idk what will u think about it i wrote taht coz i seen lot of threads from u about some simple things i guess
10/10/2010 00:19 biohazardous#6
Quote:
Originally Posted by Macnoo View Post
the id for Blizzard should be 160249 for super

your missing the case at start.

Code:
#region +12 items
case NpcID:
        {
        if (Control == 0)
        {
one to many }

Code:
        }
        break;
    }
    #endregion
and GC.MyChar.AddItem(117109, 12, 12, 7, 255, 13, 13);// not needed

Code:
( ID, Plus, bless, ench, soc1, soc2)
thanks but i already knew about the case i didnt add it the extra 12 i thought was for Super i guess i was wrong

Quote:
Originally Posted by Adziunia View Post
lol i have seen like 10(less/more) threads from u about help/how..... i have never asked for anything about 5165 i was just trying to figure things by myself and i was a noob with c# like u but i learned some things so the advice from me to u is spend more time with it and i am sure u will l;earn more coz the npc's in tanel's source r the easiest things to do
ah before posting anything i was reading some posts about 5165 and with some of em i fixed my isssues... idk what will u think about it i wrote taht coz i seen lot of threads from u about some simple things i guess
yeah i know ive been posting alot its that whenever i attempt to make it its always wrong like this npc i tried coding it myself it turned out shitty whenever i try to fix something it screws it up even more i know i post too much even about the simplest things il go post on another website or something i guess like the composer in my server says im too far away to compose and i tried fixing my server so that you can deleted characters which caused the database hashtable problem and then when i tried fixing the guy who makes 1 and 2soc in armor he says you dont have the materials but i have them in my inventory i gues i sort of fixed him because randomly he'll accept that you have the items in you inventory but he's still not working 100%, then when i tried adding a npc who sold +12 horses i fucked up my server so i post just to make sure i did the code right because im too stupid to know anything about this
10/10/2010 03:18 Macnoo#7
@biohazardous

the extra 12 i thought was for Super i guess i was wrong

thats just for when you use in command , the item Quality when using the items ID is done by the last number. 9 being super

@Adziunia

i do it the same way as you have. i have learnt much just from read threads and all the replys in them, even if i dont need what the thread is about to me if it helps me learn then its all good in my book.