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

06/29/2008 10:53 mindula#1171
Quote:
Originally Posted by adz06676 View Post
Oh thanks glad you told me before i spent ages trying.



If you use any other then curse you have to change it in the WorldHandler.cs. Its the only one that looks like an aura. If anyone knows a better one please post.
I'm making rbs:D:D:D:D
06/29/2008 11:12 adz06676#1172
Quote:
Originally Posted by mindula View Post
I'm making rbs:D:D:D:D
I already coded them, and i've found a good 3rd rb aura but i'll need to upload my C3 which will go in your qo folder.
06/29/2008 13:50 adz06676#1173
Guilds will be working soon
[Only registered and activated users can see links. Click Here To Register...]
06/29/2008 15:14 mindula#1174
Quote:
Originally Posted by adz06676 View Post
Guilds will be working soon
[Only registered and activated users can see links. Click Here To Register...]
I changed theDB.cs (lvl 1, eqipe 0 etc) but the player start in lvl 110, full elite equipe, etc!!!!

WHY????
06/29/2008 16:17 yaso#1175
Guys i have big big problem i cant use any commands i use only /dc
and Thnxx For DirtyDozenz Source u really best
and i hope to be best in the best
06/29/2008 16:43 mindula#1176
Quote:
Originally Posted by yaso View Post
Guys i have big big problem i cant use any commands i use only /dc
and Thnxx For DirtyDozenz Source u really best
and i hope to be best in the best
adz06676 Source has this problem.,...
06/29/2008 16:58 anerax#1177
Hello :)
What is the file for edit they commands please ?

Thx :)
06/29/2008 17:21 yaso#1178
hey U Can Fix the command to work with normal player
06/29/2008 18:11 stephanyd#1179
Quote:
Originally Posted by yaso View Post
hey U Can Fix the command to work with normal player
LMAO... are you serious.??? only GMs can use the commands... Normal players just have to play normally and work hard... so i.m against ur idea
06/29/2008 18:25 YukiXian#1180
Quote:
Originally Posted by mindula View Post
I changed theDB.cs (lvl 1, eqipe 0 etc) but the player start in lvl 110, full elite equipe, etc!!!!

WHY????
Did you rebuild your file?
06/29/2008 18:56 stephanyd#1181
Quote:
Originally Posted by YukiXian View Post
Did you rebuild your file?
i changed lvl and equipped gears and when i create a new char it is lvl 110 and full sup tro gears ... i don't understand why... see my screenshot of my TheDB.cs
06/29/2008 19:10 anerax#1182
Hello :)
I have need you're help.
Sorry for my spelling i'm french.

I would like removed the skill "hercule", why can I do ?

Thx !!!
06/29/2008 19:10 anerax#1183
Hello :)
I have need you're help.
Sorry for my spelling i'm french.

I would like removed the skill "hercule", why can I do ?
or changed the name of the comand in :

/skill hercule become /skill avezole
Thx !!!
06/29/2008 19:13 adz06676#1184
Quote:
Originally Posted by anerax View Post
Hello :)
I have need you're help.
Sorry for my spelling i'm french.

I would like removed the skill "hercule", why can I do ?

Thx !!!
Go into character.cs and remove this:
Quote:
else if (SkillId == 1115) //Herc
{
byte Range = 0;
byte SkillLvl = (byte)Skills[(short)SkillId];
Hashtable Targets = new Hashtable();
Hashtable PTargets = new Hashtable();

if (SkillLvl == 1)
Range = 3;
if (SkillLvl == 2)
Range = 4;
if (SkillLvl == 3)
Range = 4;
if (SkillLvl == 4)
Range = 5;

IDictionaryEnumerator Mobs = MobsFunctions.AllMobs.GetEnumerator();

while (Mobs.MoveNext())
{
SingleMob TheMob = (SingleMob)Mobs.Value;

long DMG = (long)Rand.Next((int)MinAtk, (int)MaxAtk) / 2;


if ((Level - 2) > TheMob.Level)
{
int AddDamage = (int)(2 + (Level - (TheMob.Level + 2)) / 2);
DMG *= AddDamage;
DMG = DMG * 3 / 4;
}

if (MyMath.PointDistance(TheMob.PosX, TheMob.PosY, PosX, PosY) < Range + 1)
if (TheMob.Alive)
if (TheMob.Map == PosMap)
if (!Targets.Contains(TheMob))
Targets.Add(TheMob, DMG);

IDictionaryEnumerator Chars = WorldHandler.AllClients.GetEnumerator();

while (Chars.MoveNext())
{
Character ThePlayer = ((Client)Chars.Value).MyChar;

DMG = (long)Rand.Next((int)MinAtk, (int)MaxAtk) / 2;
DMG -= ThePlayer.Defense;

if (DMG < 1)
DMG = 1;

if (PKMode == 0 || PKMode == 2)
if (MyMath.PointDistance(ThePlayer.PosX, ThePlayer.PosY, PosX, PosY) < Range + 1)
if (ThePlayer != this)
if (ThePlayer.Alive)
if (ThePlayer.PosMap == PosMap)
if (!PTargets.Contains(ThePlayer))
PTargets.Add(ThePlayer, DMG);

}
}
WorldHandler.SkillAttack(this, Targets, PTargets, 0, 0, 1115, SkillLvl);
}
Then Build, copy from the release folder and paste in debug.
06/29/2008 19:22 anerax#1185
Ok thx and for rename /skill herc in /skill avezole ?

Thx :)