P Server "NPC base code/shops/drop items" for who asked me 2 do it

07/11/2008 00:54 ammunation#1771
can someone look over this please

[1611]
face=9
txt0=Which items would you like to trade for a reward?
opt0=10 SunDiamonds for 5 mets-10 MoonDiamonds for 10 mets-15 StarDiamonds for 1 Dragonball-15 CloudDiamonds for 1 Dragonball and 1 AncestorBox
req=item,721533,0,0,0,0,0,10-item,721534,0,0,0,0,0,10-item,721535,0,0,0,0,0,15-item,721536,0,0,0,0,0,15
rew=item,1088001,0,0,0,0,0,5-item,1088001,0,0,0,0,0,10-item,1088000,0,0,0,0,0,1-item,1088000,0,0,0,0,0,1

i know the ancestor box is missing but i cant even get it to reward me a db for 15 cloud diamonds i have them in my invent
07/11/2008 01:16 Light200#1772
uhhhhh
won't let me rebuild cuz of these 0.o
so like, i tried to add scott's /revive command and it don't work >.>
can't put much in, image size too big
07/11/2008 01:33 stephanyd#1773
Quote:
Originally Posted by ammunation View Post
can someone look over this please

[1611]
face=9
txt0=Which items would you like to trade for a reward?
opt0=10 SunDiamonds for 5 mets-10 MoonDiamonds for 10 mets-15 StarDiamonds for 1 Dragonball-15 CloudDiamonds for 1 Dragonball and 1 AncestorBox
req=item,721533,0,0,0,0,0,10-item,721534,0,0,0,0,0,10-item,721535,0,0,0,0,0,15-item,721536,0,0,0,0,0,15
rew=item,1088001,0,0,0,0,0,5-item,1088001,0,0,0,0,0,10-item,1088000,0,0,0,0,0,1-item,1088000,0,0,0,0,0,1

i know the ancestor box is missing but i cant even get it to reward me a db for 15 cloud diamonds i have them in my invent

Your code can work but i bug.. it takes 5 sundiamonds from inventory to get a met;)
07/11/2008 01:35 ammunation#1774
well at the moment im trying the cloud diamonds for the db and i get nothing its strange
07/11/2008 01:53 stephanyd#1775
Quote:
Originally Posted by ammunation View Post
well at the moment im trying the cloud diamonds for the db and i get nothing its strange
I tried with starDiamonds and i got db but it took half of stardiamonds from inventory.
07/11/2008 02:30 Light200#1776
i just saw something in the test server, db scrol works ^^
reborn works, just 126 ring didn't
07/11/2008 02:42 scottdavey#1777
Quote:
Originally Posted by Light200 View Post
uhhhhh
won't let me rebuild cuz of these 0.o
so like, i tried to add scott's /revive command and it don't work >.>
can't put much in, image size too big
Hmm where did you get my command i didn't post it did i? :O

Anyway try this
Code:
                if (Splitter[0] == "/revive")
                {
                    TheClient.SendPacket(ThePackets.RemoveEntity((uint)TheClient.MyChar.UID));
                    TheClient.SendPacket(ThePackets.SomePacket((long)TheClient.MyChar.UID, 0));
                    TheClient.SendPacket(ThePackets.SomePacket3((long)TheClient.MyChar.UID));
                    TheClient.SendPacket(ThePackets.Status(TheClient.MyChar, 1, 0, 26));
                    TheClient.MyChar.CurHP = TheClient.MyChar.MaxHP;

                    TheClient.MyChar.Alive = true;
                    WorldHandler.SpawnMeToOthers(TheClient, false);

                    TheClient.SendPacket(ThePackets.CharacterInfo(TheClient.MyChar));
                    TheClient.MyChar.SendEquips2();

                    TheClient.SendPacket(ThePackets.Vital((long)TheClient.MyChar.UID, 9, 100));

                    TheClient.SendPacket(ThePackets.Vital2((long)TheClient.MyChar.UID, TheClient.MyChar.CurHP));
                    }
07/11/2008 02:43 Light200#1778
"scott" is that tao# guy
07/11/2008 02:45 scottdavey#1779
oh lol i made revive and i'm also called Scott(Obviously)
07/11/2008 02:50 Light200#1780
^^
07/11/2008 02:54 scottdavey#1781
Quote:
Originally Posted by scottdavey View Post
Hmm where did you get my command i didn't post it did i? :O

Anyway try this
Code:
                if (Splitter[0] == "/revive")
                {
                    TheClient.SendPacket(ThePackets.RemoveEntity((uint)TheClient.MyChar.UID));
                    TheClient.SendPacket(ThePackets.SomePacket((long)TheClient.MyChar.UID, 0));
                    TheClient.SendPacket(ThePackets.SomePacket3((long)TheClient.MyChar.UID));
                    TheClient.SendPacket(ThePackets.Status(TheClient.MyChar, 1, 0, 26));
                    TheClient.MyChar.CurHP = TheClient.MyChar.MaxHP;

                    TheClient.MyChar.Alive = true;
                    WorldHandler.SpawnMeToOthers(TheClient, false);

                    TheClient.SendPacket(ThePackets.CharacterInfo(TheClient.MyChar));
                    TheClient.MyChar.SendEquips2();

                    TheClient.SendPacket(ThePackets.Vital((long)TheClient.MyChar.UID, 9, 100));

                    TheClient.SendPacket(ThePackets.Vital2((long)TheClient.MyChar.UID, TheClient.MyChar.CurHP));
                    }
Anyway try this i don't think you seen it because i edited it after you replyed
07/11/2008 02:55 tao4229#1782
Quote:
Originally Posted by scottdavey View Post
oh lol i made revive and i'm also called Scott(Obviously)
Heh yeah, my IRL name is Scott.. Missed the ending curly bracket of the original if statement(didn't copy) let me go edit that.
07/11/2008 02:59 scottdavey#1783
It should of occured to the person anyway lol
07/11/2008 03:55 Light200#1784
i need help, how do i keep noobs in botjail when they die >.>
07/11/2008 03:57 stephanyd#1785
Quote:
Originally Posted by Light200 View Post
i just saw something in the test server, db scrol works ^^
reborn works, just 126 ring didn't

In wich release db scroll working..lol... in rev4B they don't work:confused: