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

06/29/2008 19:40 anerax#1186
Hello, i can't find they map ID, somebody can give me theire ?

Thx ;)
06/29/2008 19:41 anerax#1187
Hello, i can't find they map ID, somebody can give me theire ?

Thx ;)
06/29/2008 19:47 YukiXian#1188
Quote:
Originally Posted by stephanyd View Post
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
Rebuild the File, Than copy "TheCOServer" from ur release folder to ur Debug folder, Done ... :p

Quote:
Originally Posted by anerax View Post
Ok thx and for rename /skill herc in /skill avezole ?

Thx :)
Open ur Chat.cs, Look for herc and rename it... than rebuild your file and than copy "TheCOServer" from ur release folder to ur Debug folder, Done ... :p
06/29/2008 19:49 GRASSHOPPA#1189
the map ids have been posted at least 10 times...
please stop double posting so much

@adz
grats on guilds btw =o
06/29/2008 19:57 adz06676#1190
Quote:
Originally Posted by GRASSHOPPA View Post
the map ids have been posted at least 10 times...
please stop double posting so much

@adz
grats on guilds btw =o
Sam made them i'm just bug fixing there is still alot to be done on the guilds which i'm gonna need alot of help from Sam (he is probably gonna have to do the majority of it)

But i am working on a few things at once, guilds are going ok.

Oh that reminds me does anyone know how to code skills? If you can, can you code a few that I already havent? Would save me alot of time.
06/29/2008 20:18 stephanyd#1191
[QUOTE=YukiXian;1222663]Rebuild the File, Than copy "TheCOServer" from ur release folder to ur Debug folder, Done ... :p


I tried but still no changes:(
06/29/2008 20:37 anerax#1192
Ive problem.

In dialog.ini i've prog this :

Code:
[3825]
face=6
txt0=Je peux vous vendre quelques items vous savez...
opt0=Met-DB-SDG-SPG-SMG-SRG-Non merci
req=gold,200000-gold,10000000-gold,20000000-gold,20000000-
gold,20000000-gold,20000000
rew=item,1088001,0,0,0,0,0,1-item,1088000,0,0,0,0,0,1-
item,700013,0,0,0,0,0,1-item,700003,0,0,0,0,0,1-item,700063,0,0,0,0,0,1-
item,700033,0,0,0,0,0,1
The guys take my money but he don't give me a sdg, spg, srg, smg.

Help me please :) Thx :D
06/29/2008 20:57 Light200#1193
Quote:
Originally Posted by adz06676 View Post
Sam made them i'm just bug fixing there is still alot to be done on the guilds which i'm gonna need alot of help from Sam (he is probably gonna have to do the majority of it)

But i am working on a few things at once, guilds are going ok.

Oh that reminds me does anyone know how to code skills? If you can, can you code a few that I already havent? Would save me alot of time.
Code:
 
if (SkillId == 1045 || SkillId == 1046)
{
byte Range = 10;
Hashtable Targets = new Hashtable();
Hashtable PTargets = new Hashtable();
byte SkillLvl = (byte)Skills[(short)SkillId];
IDictionaryEnumerator en = MobsFunctions.AllMobs.GetEnumerator();
double Aim = MyMath.PointDirecton((short)ToX, (short)ToY, PosX, PosY);
 
while (en.MoveNext())
{
SingleMob TheMob = (SingleMob)en.Value;
double MobDir = MyMath.PointDirecton(TheMob.PosX, TheMob.PosY, PosX, PosY);
int MobDist = MyMath.PointDistance(TheMob.PosX, TheMob.PosY, PosX, PosY);
long DMG = (long)Rand.Next((int)MinAtk, (int)MaxAtk);
if ((Level - 2) > TheMob.Level)
{
int AddDamage = (int)(2 + (Level - (TheMob.Level + 2)) / 2);
DMG *= AddDamage;
DMG = DMG * 3 / 4;
}
if (TheMob.Map == PosMap)
if (MobDist < Range + 1)
if (MobDir == Aim)
if (!Targets.Contains(TheMob))
Targets.Add(TheMob,DMG);
}
en = WorldHandler.AllClients.GetEnumerator();
 
while (en.MoveNext())
{
Character ThePlayer = ((Client)en.Value).MyChar;
double CharDir = MyMath.PointDirecton(ThePlayer.PosX, ThePlayer.PosY, PosX, PosY);
int CharDist = MyMath.PointDistance(ThePlayer.PosX, ThePlayer.PosY, PosX, PosY);
long DMG = (long)Rand.Next((int)MinAtk, (int)MaxAtk);
DMG -= ThePlayer.Defense;
if (DMG < 1)
DMG = 1;

if (PKMode == 0 || PKMode == 2)
if (ThePlayer.PosMap == PosMap)
if (CharDist < Range + 1)
if (CharDir == Aim)
if (ThePlayer != this)
if (ThePlayer.Alive)
PTargets.Add(ThePlayer, DMG);
}
normal fb and ss
06/29/2008 21:39 adz06676#1194
Quote:
Originally Posted by Light200 View Post
Code:
 
if (SkillId == 1045 || SkillId == 1046)
{
byte Range = 10;
Hashtable Targets = new Hashtable();
Hashtable PTargets = new Hashtable();
byte SkillLvl = (byte)Skills[(short)SkillId];
IDictionaryEnumerator en = MobsFunctions.AllMobs.GetEnumerator();
double Aim = MyMath.PointDirecton((short)ToX, (short)ToY, PosX, PosY);
 
while (en.MoveNext())
{
SingleMob TheMob = (SingleMob)en.Value;
double MobDir = MyMath.PointDirecton(TheMob.PosX, TheMob.PosY, PosX, PosY);
int MobDist = MyMath.PointDistance(TheMob.PosX, TheMob.PosY, PosX, PosY);
long DMG = (long)Rand.Next((int)MinAtk, (int)MaxAtk);
if ((Level - 2) > TheMob.Level)
{
int AddDamage = (int)(2 + (Level - (TheMob.Level + 2)) / 2);
DMG *= AddDamage;
DMG = DMG * 3 / 4;
}
if (TheMob.Map == PosMap)
if (MobDist < Range + 1)
if (MobDir == Aim)
if (!Targets.Contains(TheMob))
Targets.Add(TheMob,DMG);
}
en = WorldHandler.AllClients.GetEnumerator();
 
while (en.MoveNext())
{
Character ThePlayer = ((Client)en.Value).MyChar;
double CharDir = MyMath.PointDirecton(ThePlayer.PosX, ThePlayer.PosY, PosX, PosY);
int CharDist = MyMath.PointDistance(ThePlayer.PosX, ThePlayer.PosY, PosX, PosY);
long DMG = (long)Rand.Next((int)MinAtk, (int)MaxAtk);
DMG -= ThePlayer.Defense;
if (DMG < 1)
DMG = 1;

if (PKMode == 0 || PKMode == 2)
if (ThePlayer.PosMap == PosMap)
if (CharDist < Range + 1)
if (CharDir == Aim)
if (ThePlayer != this)
if (ThePlayer.Alive)
PTargets.Add(ThePlayer, DMG);
}
normal fb and ss
Already had that.
06/29/2008 21:45 anerax#1195
Hello :)
Sniff, How can I make to throw an object on the ground and it will be visible on the ground ?

Thank you. (verry important please)
06/29/2008 21:47 adz06676#1196
Quote:
Originally Posted by anerax View Post
Hello :)
Sniff, How can I make to throw an object on the ground and it will be visible on the ground ?

Thank you. (verry important please)
You can't, wait for me sam or gfun to code it.
06/29/2008 21:51 anerax#1197
Thanks a lot :)
And there is a comand for put -7% on 1 item if i've 6 mystic gems ?

EDIT : Big problem, i can't see the life of monsters, look :

[Only registered and activated users can see links. Click Here To Register...]

It's a ini...no ?

Thx :D
06/29/2008 22:19 stephanyd#1198
My Taoist in birth village won't teach my noob a skill ... someone cant tell me what's wrong in my dialog?
06/29/2008 23:03 adz06676#1199
Quote:
Originally Posted by stephanyd View Post
My Taoist in birth village won't teach my noob a skill ... someone cant tell me what's wrong in my dialog?
You need to code it in NpcDialog.cs
06/29/2008 23:39 stephanyd#1200
Quote:
Originally Posted by adz06676 View Post
You need to code it in NpcDialog.cs
ok... here is a screeny from my NPCdialog.cs... tell me plz if i'm wrong in my coding or if i have to add something:( when i make that one working i'll be able to code all others in BV