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

06/19/2008 02:27 gerble93#721
it is a 8 already
06/19/2008 02:52 Light200#722
Quote:
Originally Posted by samehvan View Post
i hope it is that simple , i slept for a while tho , thank you
*
*
now for who want to forbid the PK at Ma and Lotto , follow this

-open sourcePacketHandler.cs
-add this code line 192

Code:
case 1022: //Attack
                    {
                        int kind = (Data[23] << 24) + (Data[22] << 16) + (Data[21] << 8) + (Data[20]);
                        //Console.WriteLine("Packet - Attack request {0}     {1}", PacketId, kind);
                        [COLOR=blue]if (AClient.MyChar.PosMap == 1036 || AClient.MyChar.PosMap == 700)[/COLOR]
[COLOR=blue]                      {[/COLOR]
[COLOR=blue]                          AClient.SendPacket(ThePackets.SendMsg(AClient.MessageId, "SYSTEM", AClient.MyChar.CharName, "This Map is protected .", 2015));[/COLOR]
[COLOR=blue]                          break;[/COLOR]
[COLOR=blue]                      }[/COLOR]
[COLOR=blue]                      else [/COLOR]
                        Msg = new Attack(Data,AClient);
                        break;
                    }
the blue lines are the adds

for the Exp rate , there are 3 edits needed ,
1- worldhandler.cs line 129
Charr.MyClient.MyChar.AddExp(DMG*TheMob.Level/15);

2-Character.cs line 1036
MyClient.MyChar.AddExp(AttackDMG *Target.Level/22);

3- Character.cs line 1134
MyClient.MyChar.AddExp(AttackDMG *Target.Level/22);

edit the red color numbers

ummm

i went back a couple pages, and it seems sam posted a "protecting" map code, and it screws up the style in my handler packet, i was wondering if someone, (sam included) can you repost the thingy in the packet?
06/19/2008 05:53 Light200#723
heres what i did with a NPC
06/19/2008 06:16 stephanyd#724
Quote:
Originally Posted by Light200 View Post
heres what i did with a NPC
Hi
How did u put the [GM] or[PM] in ur char names? I tried and don't work:(
06/19/2008 06:27 Light200#725
i forgot who i got it from so credit don't go to me, i'm too lazy to explain it my self so...
HOW TO ADD [GM] AND [PM]:
(1) Go To The Character Folder And Find Your Character Name And Rename The .TXT To (Name)[GM] Or (Name)[PM]
(2) Open The .TXT And Add The PM Or Gm To
(3) Go To The Accounts Folder And Open Your Username And And You Will See The Charactername Add That With PM Or GM To And Change The Flag To 8
06/19/2008 08:49 zane203#726
Quote:
Originally Posted by gerble93 View Post
How do you implimate it?


There must be a way


I mean if there are commands you can add more
kinda annoying with the frequent "do this for me" kind of questions :rolleyes:
If you want to learn how, simply look at your chat.cs file and use the trial and error method to learn how to implement your own, just remember that flag8=GM
-
And im just here to inform everyone, i'll be taking a small break from working on my online game, and helping teh peeps herez lol.
-
At any rate, i wont be gone no longer than 2 days, just taking a break to work on some other things lol. :D dont have to much fun wiz outz meh =Þ
06/19/2008 16:27 SweeTFlower#727
Quote:
Originally Posted by zane203 View Post
kinda annoying with the frequent "do this for me" kind of questions :rolleyes:
If you want to learn how, simply look at your chat.cs file and use the trial and error method to learn how to implement your own, just remember that flag8=GM
-
And im just here to inform everyone, i'll be taking a small break from working on my online game, and helping teh peeps herez lol.
-
At any rate, i wont be gone no longer than 2 days, just taking a break to work on some other things lol. :D dont have to much fun wiz outz meh =Þ
awww =( you'll be miss good luck have fun :p
06/19/2008 16:54 .:Saad:.#728
hey guys the guild is very great samehvan u did very good work :D

but i wanted to make a npc to talk it looks like this :

[1061]
face=7
txt0=Hey should i Give you Gm robe ?
opt0=-Dragon-Phoenix-
req=gold,100-gold,100
rew=GMRobe 1 9 7 255 13 13-GMRobe 1 9 7 255 3 3

but when i logging into the server my conquer is freezing on the screen connecting to the account server

i editet this in the file : \Source\bin\Debug\NPCsStuff\Dialog

so anyobdy can help me ? =)
06/19/2008 17:09 SweeTFlower#729
Quote:
Originally Posted by .:Saad:. View Post
hey guys the guild is very great samehvan u did very good work :D

but i wanted to make a npc to talk it looks like this :

[1061]
face=7
txt0=Hey should i Give you Gm robe ?
opt0=-Dragon-Phoenix-
req=gold,100-gold,100
rew=GMRobe 1 9 7 255 13 13-GMRobe 1 9 7 255 3 3

but when i logging into the server my conquer is freezing on the screen connecting to the account server

i editet this in the file : SourcebinDebugNPCsStuffDialog

so anyobdy can help me ? =)
please reread the thread its been addressed a few times
06/19/2008 17:58 adz06676#730
Havn't been on in a few days how is your source coming along sam?
What are you coding now?
06/19/2008 18:44 GRASSHOPPA#731
does anybody have the old sourse?
if so please post it thanks =) (no i dont mean the compiled version)
06/19/2008 19:29 Light200#732
i made captain Li and Warden to work, if any one wants it then add these to your dialouge

[57]
face=7
txt0=Hello, I am the Jailer, I can teleport you to back to TC for just a small fee of
100 cps
opt0=Sure-No thanks, I'd rather kill prisoners here
req=cps,100
rew=teleport, 1002,514,355-

[43]
face=7
txt0=Hi, I am CaptainLi, I can teleport you to jail (so kill them annoying prisoners
for me)for as little as 2000 cps.
opt0=Sure-(cheapskate)
req=cps,2000
rew=teleport,6000,30,70
06/19/2008 19:42 Light200#733
ok i need help on this one

[1001514]
face=46
txt0=Hi,I can give you a legendary weapon, do you want one?
txt1=Here you are
txt2=Here you are
txt3=Here you are
opt0=Blade-Sword-Club-No Thanks
req=0-0-0
rew=item,410399,9,7,255,13,13-item,420339,0,0,0,0,0-item,480339,0,0,0,0,0

everything else worked except for the reward >.>


btw, Sam, theres a bug with the armor color change, if you change your armour, your attack times 10
06/19/2008 19:48 GRASSHOPPA#734
light i believe u need to add a 1 at the end of an items rew
like as in the amount

rew=item,410399,9,7,255,13,13,1-item,420339,0,0,0,0,0,0-item,480339,0,0,0,0,0,0

try that...hope it works gl =)
06/19/2008 20:01 Light200#735
uhh thanks