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

06/30/2008 20:05 jamized#1261
hey adz does rb and guild work cuz i do have the newest source but not sure how to rb and make guilds
06/30/2008 20:22 adz06676#1262
Quote:
Originally Posted by jamized View Post
hey adz does rb and guild work cuz i do have the newest source but not sure how to rb and make guilds
Reborns are 100% Guilds are 40% (Createable)
But this is just a test release and because the features aren't completed yet i'm not giving any support.
06/30/2008 20:35 YukiXian#1263
Quote:
Originally Posted by adz06676 View Post
Reborns are 100% Guilds are 40% (Createable)
But this is just a test release and because the features aren't completed yet i'm not giving any support.
Hey, Thanks for ur help, I got ur new source now, But i found some bugs, ( Not all bugs, :p )
Here they are :
Quote:
- Account won't be saved when ur using the /dc command,
- The skill FireOfHell, is hitting to low, other skills hit like 75K and FireOfHell 10K,
- Wrong spelling, When it loads the guilds, its like this : Guild 1 NameHere laoded,
- Wrong spelling of "Friend" its now : HandelFreind.cs :p
- When u drop an item, U can't pick it up anymore,
- The /gm Command don't work,
Hope u can fix it, I'll tell you when I'll find more :D

Here are some fixes of things, :
The /mana command, You can find it in ur Chat.cs, replace this with the old one :
Quote:
if (Splitter[0] == "/mana")
{
TheClient.MyChar.CurMana=TheClient.MyChar.MaxMana;
TheClient.SendPacket(ThePackets.Vital((long)TheCli ent.MyChar.UID, 2, TheClient.MyChar.MaxMana));
//TheClient.SendPacket(ThePackets.CharacterInfo(TheC lient.MyChar));
TheClient.MyChar.SaveChar();
}
The /hair command, You can find it in ur Chat.cs, replace this with the old one :
Quote:
if (Splitter[0] == "/hair")
{
TheClient.MyChar.Hair = Convert.ToInt16(Splitter[1]);
TheClient.SendPacket(ThePackets.Vital((long)TheCli ent.MyChar.UID, 27, TheClient.MyChar.Hair));
TheClient.MyChar.SaveChar();

}
The sex reward , You can find it in ur NPCDialog.cs, replace this with the old one :
Quote:
if (TheRew[0] == "smallmale") //Small Male Look
{
ClickyClient.MyChar.Model = 671003;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 12, Convert.ToInt32(ClickyClient.MyChar.Model)));
ClickyClient.MyChar.SaveChar();
}
if (TheRew[0] == "bigmale") //Big Male Look
{
ClickyClient.MyChar.Model = 671004;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 12, Convert.ToInt32(ClickyClient.MyChar.Model)));
ClickyClient.MyChar.SaveChar();

}
if (TheRew[0] == "bigfemale") //Big Female Look
{
ClickyClient.MyChar.Model = 2012002;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 12, Convert.ToInt32(ClickyClient.MyChar.Model)));
ClickyClient.MyChar.SaveChar();
}
if (TheRew[0] == "smallfemale") //Small Female Look
{
ClickyClient.MyChar.Model = 2012001;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 12, Convert.ToInt32(ClickyClient.MyChar.Model)));
ClickyClient.MyChar.SaveChar();
}
The HP Bar when logging in for the First time , You can find it in ur WorldHandler.cs , add those lines :
Quote:
TheClient.MyChar.CurHP = TheClient.MyChar.MaxHP;
TheClient.SendPacket(ThePackets.Vital2((long)TheCl ient.MyChar.UID, TheClient.MyChar.CurHP));
My First reborn fixes :
Quote:
if (TheRew[0] == "reborn1tro") //Trojan
{
ClickyClient.MyChar.Rb = 1;
ClickyClient.MyChar.Level = 15;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 13, ClickyClient.MyChar.Level));
ClickyClient.MyChar.Exp = 0;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 5, Convert.ToInt32(ClickyClient.MyChar.Exp)));
ClickyClient.MyChar.CharClass = 11;
ClickyClient.MyChar.Strength = 300;
ClickyClient.MyChar.Agility = 300;
ClickyClient.MyChar.Vitality = 300;
ClickyClient.MyChar.Spirit = 300;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 14, Convert.ToInt32(ClickyClient.MyChar.Strength)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 15, Convert.ToInt32(ClickyClient.MyChar.Vitality)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 16, Convert.ToInt32(ClickyClient.MyChar.Spirit)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 17, Convert.ToInt32(ClickyClient.MyChar.Agility)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 7, Convert.ToInt32(ClickyClient.MyChar.CharClass)));
ClickyClient.MyChar.Eq_Armor = "130209-5-3-255-13-0";
ClickyClient.MyChar.Eq_Boots = "160019-5-3-255-13-0";
ClickyClient.MyChar.Eq_HeadGear = "118909-5-3-255-13-0";
ClickyClient.MyChar.Eq_LeftHand = "410029-5-3-255-13-13";
ClickyClient.MyChar.Eq_Necklace = "120009-5-3-255-13-0";
ClickyClient.MyChar.Eq_RightHand = "480029-5-3-255-13-13";
ClickyClient.MyChar.Eq_Ring = "150019-5-3-255-13-0";
ClickyClient.SendPacket(ThePackets.SendMsg(ClickyC lient.MessageId, "System", ClickyClient.MyChar.CharName, "Congratulations! You have been reborned for the first time!", 2011));
ClickyClient.MyChar.SendEquips2();
ClickyClient.MyChar.SaveChar();
Done = true;
}
if (TheRew[0] == "reborn1tao") //Taoist
{
ClickyClient.MyChar.Rb = 1;
ClickyClient.MyChar.Level = 15;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 13, ClickyClient.MyChar.Level));
ClickyClient.MyChar.Exp = 0;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 5, Convert.ToInt32(ClickyClient.MyChar.Exp)));
ClickyClient.MyChar.CharClass = 101;
ClickyClient.MyChar.Strength = 300;
ClickyClient.MyChar.Agility = 300;
ClickyClient.MyChar.Vitality = 300;
ClickyClient.MyChar.Spirit = 300;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 14, Convert.ToInt32(ClickyClient.MyChar.Strength)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 15, Convert.ToInt32(ClickyClient.MyChar.Vitality)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 16, Convert.ToInt32(ClickyClient.MyChar.Spirit)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 17, Convert.ToInt32(ClickyClient.MyChar.Agility)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 7, Convert.ToInt32(ClickyClient.MyChar.CharClass)));
ClickyClient.MyChar.CurMana = ClickyClient.MyChar.MaxMana;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 2, ClickyClient.MyChar.MaxMana));
ClickyClient.MyChar.Eq_Armor = "134209-5-3-255-3-0";
ClickyClient.MyChar.Eq_Boots = "160019-5-3-255-3-0";
ClickyClient.MyChar.Eq_HeadGear = "114909-5-3-255-3-0";
ClickyClient.MyChar.Eq_LeftHand = "0";
ClickyClient.MyChar.Eq_Necklace = "121009-5-3-255-3-0";
ClickyClient.MyChar.Eq_RightHand = "421029-5-3-255-3-3";
ClickyClient.MyChar.Eq_Ring = "152019-5-3-255-3-0";
ClickyClient.SendPacket(ThePackets.SendMsg(ClickyC lient.MessageId, "System", ClickyClient.MyChar.CharName, "Congratulations! You have been reborned for the first time!", 2011));
ClickyClient.MyChar.SendEquips2();
ClickyClient.MyChar.SaveChar();
Done = true;
}
if (TheRew[0] == "reborn1war") //Warrior
{
ClickyClient.MyChar.Rb = 1;
ClickyClient.MyChar.Level = 15;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 13, ClickyClient.MyChar.Level));
ClickyClient.MyChar.Exp = 0;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 5, Convert.ToInt32(ClickyClient.MyChar.Exp)));
ClickyClient.MyChar.CharClass = 21;
ClickyClient.MyChar.Strength = 300;
ClickyClient.MyChar.Agility = 300;
ClickyClient.MyChar.Vitality = 300;
ClickyClient.MyChar.Spirit = 300;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 14, Convert.ToInt32(ClickyClient.MyChar.Spirit)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 15, Convert.ToInt32(ClickyClient.MyChar.Vitality)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 16, Convert.ToInt32(ClickyClient.MyChar.Strength)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 17, Convert.ToInt32(ClickyClient.MyChar.Agility)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 7, Convert.ToInt32(ClickyClient.MyChar.CharClass)));
ClickyClient.MyChar.Eq_Armor = "131909-5-3-255-13-0";
ClickyClient.MyChar.Eq_Boots = "160019-5-3-255-13-0";
ClickyClient.MyChar.Eq_HeadGear = "111309-5-3-255-13-0";
ClickyClient.MyChar.Eq_LeftHand = "0";
ClickyClient.MyChar.Eq_Necklace = "120009-5-3-255-13-0";
ClickyClient.MyChar.Eq_RightHand = "561029-5-3-255-13-13";
ClickyClient.MyChar.Eq_Ring = "150019-5-3-255-13-0";
ClickyClient.SendPacket(ThePackets.SendMsg(ClickyC lient.MessageId, "System", ClickyClient.MyChar.CharName, "Congratulations! You have been reborned for the first time!", 2011));
ClickyClient.MyChar.SendEquips2();
ClickyClient.MyChar.SaveChar();
Done = true;
}
( Based on Adz his source ! )
06/30/2008 20:37 adz06676#1264
Quote:
Originally Posted by YukiXian View Post
Hey, Thanks for ur help, I got ur new source now, But i found some bugs, ( Not all bugs, :p )
Here they are :

Hope u can fix it, I'll tell you when I'll find more :D
Like i said this is a test release there is bound to be bugs also on the skills i have no problems with, the spelling thats hardly a bug lol.

Friends is only at 10% coded.
06/30/2008 21:10 netplace#1265
I am posting the Source Rev 4

that has many people with work to download

Samehvan

Ty for source
06/30/2008 21:24 netplace#1266
how do I create Guild?

and the rest of the codes?
06/30/2008 21:29 mysteryman1#1267
so uh how do i make a guard that revs u?
06/30/2008 21:51 adz06676#1268
Quote:
f (TheRew[0] == "reborn1tro") //Trojan
{
ClickyClient.MyChar.Rb = 1;
ClickyClient.MyChar.Level = 15;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 13, ClickyClient.MyChar.Level));
ClickyClient.MyChar.Exp = 0;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 5, Convert.ToInt32(ClickyClient.MyChar.Exp)));
ClickyClient.MyChar.CharClass = 11;
ClickyClient.MyChar.Strength = 300;
ClickyClient.MyChar.Agility = 300;
ClickyClient.MyChar.Vitality = 300;
ClickyClient.MyChar.Spirit = 300;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 14, Convert.ToInt32(ClickyClient.MyChar.Strength)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 15, Convert.ToInt32(ClickyClient.MyChar.Vitality)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 16, Convert.ToInt32(ClickyClient.MyChar.Spirit)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 17, Convert.ToInt32(ClickyClient.MyChar.Agility)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 7, Convert.ToInt32(ClickyClient.MyChar.CharClass)));
ClickyClient.MyChar.Eq_Armor = "130209-5-3-255-13-0";
ClickyClient.MyChar.Eq_Boots = "160019-5-3-255-13-0";
ClickyClient.MyChar.Eq_HeadGear = "118909-5-3-255-13-0";
ClickyClient.MyChar.Eq_LeftHand = "410029-5-3-255-13-13";
ClickyClient.MyChar.Eq_Necklace = "120009-5-3-255-13-0";
ClickyClient.MyChar.Eq_RightHand = "480029-5-3-255-13-13";
ClickyClient.MyChar.Eq_Ring = "150019-5-3-255-13-0";
ClickyClient.SendPacket(ThePackets.SendMsg(ClickyC lient.MessageId, "System", ClickyClient.MyChar.CharName, "Congratulations! You have been reborned for the first time!", 2011));
ClickyClient.MyChar.SendEquips2();
ClickyClient.MyChar.SaveChar();
Done = true;
}
if (TheRew[0] == "reborn1tao") //Taoist
{
ClickyClient.MyChar.Rb = 1;
ClickyClient.MyChar.Level = 15;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 13, ClickyClient.MyChar.Level));
ClickyClient.MyChar.Exp = 0;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 5, Convert.ToInt32(ClickyClient.MyChar.Exp)));
ClickyClient.MyChar.CharClass = 101;
ClickyClient.MyChar.Strength = 300;
ClickyClient.MyChar.Agility = 300;
ClickyClient.MyChar.Vitality = 300;
ClickyClient.MyChar.Spirit = 300;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 14, Convert.ToInt32(ClickyClient.MyChar.Strength)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 15, Convert.ToInt32(ClickyClient.MyChar.Vitality)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 16, Convert.ToInt32(ClickyClient.MyChar.Spirit)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 17, Convert.ToInt32(ClickyClient.MyChar.Agility)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 7, Convert.ToInt32(ClickyClient.MyChar.CharClass)));
ClickyClient.MyChar.CurMana = ClickyClient.MyChar.MaxMana;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 2, ClickyClient.MyChar.MaxMana));
ClickyClient.MyChar.Eq_Armor = "134209-5-3-255-3-0";
ClickyClient.MyChar.Eq_Boots = "160019-5-3-255-3-0";
ClickyClient.MyChar.Eq_HeadGear = "114909-5-3-255-3-0";
ClickyClient.MyChar.Eq_LeftHand = "0";
ClickyClient.MyChar.Eq_Necklace = "121009-5-3-255-3-0";
ClickyClient.MyChar.Eq_RightHand = "421029-5-3-255-3-3";
ClickyClient.MyChar.Eq_Ring = "152019-5-3-255-3-0";
ClickyClient.SendPacket(ThePackets.SendMsg(ClickyC lient.MessageId, "System", ClickyClient.MyChar.CharName, "Congratulations! You have been reborned for the first time!", 2011));
ClickyClient.MyChar.SendEquips2();
ClickyClient.MyChar.SaveChar();
Done = true;
}
if (TheRew[0] == "reborn1war") //Warrior
{
ClickyClient.MyChar.Rb = 1;
ClickyClient.MyChar.Level = 15;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 13, ClickyClient.MyChar.Level));
ClickyClient.MyChar.Exp = 0;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 5, Convert.ToInt32(ClickyClient.MyChar.Exp)));
ClickyClient.MyChar.CharClass = 21;
ClickyClient.MyChar.Strength = 300;
ClickyClient.MyChar.Agility = 300;
ClickyClient.MyChar.Vitality = 300;
ClickyClient.MyChar.Spirit = 300;
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 14, Convert.ToInt32(ClickyClient.MyChar.Spirit)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 15, Convert.ToInt32(ClickyClient.MyChar.Vitality)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 16, Convert.ToInt32(ClickyClient.MyChar.Strength)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 17, Convert.ToInt32(ClickyClient.MyChar.Agility)));
ClickyClient.SendPacket(ThePackets.Vital((long)Cli ckyClient.MyChar.UID, 7, Convert.ToInt32(ClickyClient.MyChar.CharClass)));
ClickyClient.MyChar.Eq_Armor = "131909-5-3-255-13-0";
ClickyClient.MyChar.Eq_Boots = "160019-5-3-255-13-0";
ClickyClient.MyChar.Eq_HeadGear = "111309-5-3-255-13-0";
ClickyClient.MyChar.Eq_LeftHand = "0";
ClickyClient.MyChar.Eq_Necklace = "120009-5-3-255-13-0";
ClickyClient.MyChar.Eq_RightHand = "561029-5-3-255-13-13";
ClickyClient.MyChar.Eq_Ring = "150019-5-3-255-13-0";
ClickyClient.SendPacket(ThePackets.SendMsg(ClickyC lient.MessageId, "System", ClickyClient.MyChar.CharName, "Congratulations! You have been reborned for the first time!", 2011));
ClickyClient.MyChar.SendEquips2();
ClickyClient.MyChar.SaveChar();
Done = true;
}
The only thing u changed is SendEquips to SendEquips2 and the rb message not much of a fix, i wouldnt reccomend this because now u wont see the left hand weapon.
06/30/2008 21:57 Bottingpunk#1269
ok rb dont work for me /reborn 1 2 3 dont work nothing works ! and also adz how did u get ur client to look like it does and also does any one know a way i could make my own client
06/30/2008 22:06 jamized#1270
yea /reborn 1 2 3 doesnt work for me either
06/30/2008 22:24 anerax#1271
Hello :

[47]
face=8
txt0=Hello, i can trad some pk pts vs item you know...
opt0=Xp !-Money !-Cps !-nothing
req=PKPoints,10-PKPoints,10-PKPoints,10-
rew=exp,2000000-gold,100000-cps,100,-0

Dont worck, please help.
06/30/2008 22:25 YukiXian#1272
Quote:
Originally Posted by adz06676 View Post
The only thing u changed is SendEquips to SendEquips2 and the rb message not much of a fix, i wouldnt reccomend this because now u wont see the left hand weapon.
Aww, I see...

Someone know the Flags of the Training Ground Stacks?

Quote:
Originally Posted by anerax View Post
Hello :

[47]
face=8
txt0=Hello, i can trad some pk pts vs item you know...
opt0=Xp !-Money !-Cps !-nothing
req=PKPoints,10-PKPoints,10-PKPoints,10-
rew=exp,2000000-gold,100000-cps,100,-0

Dont worck, please help.
Well, That " req=PKPoints,10-PKPoints,10-PKPoints,10- " won't work, Just make it " req=gold,0gold,-gold,0-gold,0-gold,0 "
That should work, Because you have to code TheReq PKPoints in the NPCDialog.cs , Thats not coded yet, So far i know :rolleyes:
06/30/2008 22:30 jamized#1273
umm just wanna kno does ya /reborn command work
06/30/2008 23:09 YukiXian#1274
Quote:
Originally Posted by jamized View Post
umm just wanna kno does ya /reborn command work
Well, Look this :
1. Try it ...
2. Look into the Chat.cs and see if its coded !
06/30/2008 23:14 ~Yuki~#1275
LoL owned...

If u use adz source /reborn1 - /reborn3 work