[HELP]special drop

10/22/2008 19:43 ~jochemke~#1
hey can someone help me with this idea

i wanna make an item that gives u cps or money if u give it to the right npc but i got some problems with it
i got the drop part already but the problem is the npc
how to make a npc that gives u like 300 cps
10/22/2008 19:52 randomnoob#2
better (imo) would be to make it give you cp if you right klick it.
for how to get a npc to do it; look at the code for the npc wich changes dbs to cp.

to make it give cp if you use it;
Code:
            else if (ItemParts[0] == "item id")
            {
                MyChar.CPs += amount;
                MyClient.SendPacket(General.MyPackets.Vital(UID, 4, Silvers));
                RemoveItem(ItemUID);
            }
10/22/2008 20:07 ~jochemke~#3
can u tell me where to add that ?
10/22/2008 20:55 _Emme_#4
Wrong packet sent,it should be for CPs.
10/22/2008 21:01 randomnoob#5
Quote:
Originally Posted by ~jochemke~ View Post
can u tell me where to add that ?
character.cs
ctrl + f to find where in it.

Quote:
Originally Posted by emildayan1 View Post
Wrong packet sent,it should be for CPs.
lmao oops ._.
i made it give you cp but make it show as silver:p.
ah well, jochemke could fix that. (i hope for him...)
10/22/2008 21:05 ~jochemke~#6
yea should be no problem to me (i hope :p)