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

06/09/2008 16:33 abdomiky7#241
same7 ana 3awz a5le el server fe 7aga mohema y3ne ama aft7 a3mlha msln zy hybrirdco kant btgm3 cps men el 3mod y3ne ay 7aga tt3mel 3.er el PK bs ok
06/09/2008 19:46 Mister_spy#242
ncie word but i have a problem i can't connect due to not have the password !
06/09/2008 19:55 zane203#243
lol, the 1st password will be your password.
06/09/2008 20:00 NoFusion#244
kk i dont want to double post... so any1 know my last question... plz help?
06/09/2008 20:35 samehvan#245
ok , srry for not being here , but i am back

Quote:
Originally Posted by YukiXian View Post
Nps :p Can i just download the Source.rar again? With the fixed thing? :):):):)
And... One question left :D : What project ur busy with now? Attacking monsters or something? I'm waiting till u got Exp and lvls up from monsters ^^. Would be sooo cool ! :cool:

Thx, Yuki:cool:
i am busy with fixing bugs ,hehe

Quote:
Originally Posted by Bottingpunk View Post
@zane203 lmao wtf i cant get fastblade etc grr. and then the mana idk haha i used a pot and its still 0
fast blade just type /skill fb

the mana is allready worked , u just may need to DC and relog on

Quote:
Originally Posted by Bottingpunk View Post
well i got the mana but theres still not fastblade scentsword etc
/skill fb = fast blade
/skill ss=scentsword

Quote:
Originally Posted by YukiXian View Post
I don't understand the Rebuild... When i do it nothing is different, Someone said to me i had to rebuild before my Char.cs is working, Cuz i deleted the /item Things...
Someone can help me?

And found another bug... U Fb Twice ... All skills come Twice ... :confused:
no u dont , u may forget to del a line or deleted a more line , just delete the section from "if (Splitter[0]=="/item")
{
to
}
06/09/2008 20:46 samehvan#246
Quote:
Originally Posted by bobtin777 View Post
I've Edit the Dialog.ini under the NPCsStuff so some are working but no all it will help you just copy it in the dialog.ini file

Code:
[10063]
face=3
txt0=I have a great Quest for you if you - answer my question i will get u to lvl 

30
txt1=well done u got it
opt0=sure-no i am not that talent
opt1=Ok thank you
req=gold,100
rew=lvl,130

[10050]
face=2
txt0=Hello there how are you i am the teleporter magician where do u want to go
opt0=Ape Mountain-Bird Island-Phoenix Castle-Desert City-Mine Cave-Market-

Lottory-No I will stay
req=gold,100-gold,100-gold,100-gold,100-gold,100-gold,100-cps,27
rew=teleport,1020,567,576-teleport,1015,723,573-teleport,1011,190,271-

teleport,1000,500,650-teleport,1003,70,50-teleport,1036,210,195-

teleport,700,40,47

[923]
face=4
txt0=Hey , u feel lucky today :P ,ok i will let you try your luck if you give me 

1CPs
opt0=Ok here you are the 1 CPs-No thanks
req=cps,1
rew=teleport,700,40,47

[924]
face=4
txt0=So had a good luck ?, hope u a better one next time
opt0=Yes i wanna leave-No i will try it again-
req=0-cps,1
rew=teleport,1036,220,190

[104797]
face=6
txt0=I'm not a working NPC yet!
opt0=-ok


[380]
face=1
txt0=I'm not a working NPC yet!
opt0=-ok


[44]
face=2
txt0=I'm not a working wherehouse yet!
opt0=-ok

[7050]
face=2
txt0=I'm Not a Working Weapon Master Yet!
opt0=-Ok

[35501]
face=2
txt0=I'm Not a ArtisanRow Yet!
opt0=-Ok

[390]
face=4
txt0=Do You Wish to get married?
opt0=Yes-No 
req= level 20
rew=

[10065]
face=2
txt0=I'm Not a GodlyArtism Yet!
opt0=-Ok

[10062]
face=3
txt0=I'm Not a MagicArtisan Yet!
opt0=-Ok

[45]
face=2
txt0=Where do u want to go out market ?
opt0=Twin City-Ape Mountain-Bird Island-Phoenix Castle-Desert City-Mine Cave

-No I will stay
req=0
rew=teleport,1002,438,377-teleport,1020,567,576-teleport,1015,723,573-

teleport,1011,190,271-teleport,1000,500,650-teleport,1003,70,50

[47]
face=3
txt0=I will get u to level 30
txt1=well done u got it
opt0=sure-no i am not that talent
opt1=Ok thank you
req=gold,100
rew=lvl,30

[10161]
face=2
txt0=Hello there how are you i am the teleporter magician where do u want to go
opt0=Ape Mountain-Bird Island-Phoenix Castle-Desert City-Mine Cave-Market-

Lottory-No I will stay
req=gold,100-gold,100-gold,100-gold,100-gold,100-gold,100-cps,27
rew=teleport,1020,567,576-teleport,1015,723,573-teleport,1011,190,271-

teleport,1000,500,650-teleport,1003,70,50-teleport,1036,210,195-

teleport,700,40,47

[10051]
face=2
txt0=Hello there how are you i am the teleporter magician where do u want to go
opt0=Ape Mountain-Bird Island-Phoenix Castle-Desert City-Mine Cave-Market-

Lottory-No I will stay
req=gold,100-gold,100-gold,100-gold,100-gold,100-gold,100-cps,27
rew=teleport,1020,567,576-teleport,1015,723,573-teleport,1011,190,271-

teleport,1000,500,650-teleport,1003,70,50-teleport,1036,210,195-

teleport,700,40,47

[10056]
face=2
txt0=Hello there how are you i am the teleporter magician where do u want to go
opt0=Ape Mountain-Bird Island-Phoenix Castle-Desert City-Mine Cave-Market-

Lottory-No I will stay
req=gold,100-gold,100-gold,100-gold,100-gold,100-gold,100-cps,27
rew=teleport,1020,567,576-teleport,1015,723,573-teleport,1011,190,271-

teleport,1000,500,650-teleport,1003,70,50-teleport,1036,210,195-

teleport,700,40,47


[10052]
face=2
txt0=Hello there how are you i am the teleporter magician where do u want to go
opt0=Ape Mountain-Bird Island-Phoenix Castle-Desert City-Mine Cave-Market-

Lottory-No I will stay
req=gold,100-gold,100-gold,100-gold,100-gold,100-gold,100-cps,27
rew=teleport,1020,567,576-teleport,1015,723,573-teleport,1011,190,271-

teleport,1000,500,650-teleport,1003,70,50-teleport,1036,210,195-

teleport,700,40,47
very nice , i ddnt test it yet but i am sure it will work great , so ty
06/09/2008 21:42 YukiXian#247
here is the updated one :p:p:p

Question :
I still don't realy understand the Rebuild... Cuz when i edit my Chat.cs ( Deleted the Items commands like u said ) still Nothing happents, And once someone told me to rebuild it...
When i rebuild it, again nothing happents, How to let my edit work? in the Chat.cs? i Deleted everything of the /item command... Down here is what i deleted :


if (Splitter[0] == "/item")
{
string ItemName;
string ItemId;
byte ItemPlus;
byte ItemBless;
byte ItemEnchant;
byte Soc1;
byte Soc2;
byte ItemAdd;

Ini ItemNamesToId = new Ini(System.Windows.Forms.Application.StartupPath + @"\ItemNamesToId.ini");
ItemName = Splitter[1];


if (Splitter[2].Length > 0)
ItemAdd = Convert.ToByte(Splitter[2]);
else
ItemAdd = 1;

if (Splitter[3].Length > 0)
{
ItemPlus = Convert.ToByte(Splitter[3]);
if (ItemPlus > 12)
ItemPlus = 12;
}
else
ItemPlus = 0;

if (Splitter[4].Length > 0)
{
ItemBless = Convert.ToByte(Splitter[4]);
if (ItemBless > 15)
ItemBless = 15;
}
else
ItemBless = 0;

if (Splitter[5].Length > 0)
ItemEnchant = Convert.ToByte(Splitter[5]);
else
ItemEnchant = 0;

if (Splitter[6].Length > 0)
Soc1 = Convert.ToByte(Splitter[6]);
else
Soc1 = 0;

if (Splitter[7].Length > 0)
Soc2 = Convert.ToByte(Splitter[7]);
else
Soc2 = 0;

ItemId = Convert.ToString(Convert.ToInt64(ItemNamesToId.Rea dValue("Items", ItemName))+ItemAdd-1);



long eUID = (long)(1000 + Rand.Next(16777215));
TheClient.MyChar.AddAnItem(ItemId + "-" + ItemPlus + "-" + ItemBless + "-" + ItemEnchant + "-" + Soc1 + "-" + Soc2, 0, true, eUID, false);
}


-----------------

It doesn't work...
So what about the rebuild?

Bugs :
And found another bug... U Fb Twice ... All skills come Twice ...
And mana not working anymore on ur Source.rar

Thx, Yuki:cool:
06/09/2008 22:33 abdomiky7#248
same7 ana 3awz a5le el server fe 7aga mohema y3ne ama aft7 a3mlha msln zy hybrirdco kant btgm3 cps men el 3mod y3ne ay 7aga tt3mel 3.er el PK bs ok
06/09/2008 22:51 adz06676#249
Quote:
Originally Posted by samehvan View Post
very nice , i ddnt test it yet but i am sure it will work great , so ty
I've been working on my own fixes in the character.cs and you need to include these in them. I'm sure you know where they go :p,

Quote:
if (ItemGem1 == 3)
AddMAtkPc -= 0.12;
if (ItemGem2 == 3)
AddMAtkPc -= 0.12;
Quote:
public void AddMAtk()
{
MAtk *= AddMAtkPc;
}
public void RemoveMAtk()
{
MAtk /= AddMAtkPc;
}
Quote:
public double AddMAtkPc = 1;
there is alot more thing that it needs but after that its pretty clear, thats my fix it works but not as well as i'd hoped i hope you can fix it better then my attempt.
06/09/2008 22:59 abdomiky7#250
@adz06676 can u send data beez your server
06/09/2008 23:02 adz06676#251
Quote:
Originally Posted by abdomiky7 View Post
@adz06676 can u send data beez your server
No i was only telling samehvan my way of fixing it, its not perfect but it may help him fix it fully.
06/09/2008 23:26 bobtin777#252
Quote:
Originally Posted by samehvan View Post
very nice , i ddnt test it yet but i am sure it will work great , so ty
Thanks i will try my best to help you!

But i have a ?-tion
Quote:
Originally Posted by samehvan View Post
Adding Mobs :-
-Goto Sourcebindebug or Compileddebug
-Open the mobs.txt file
-choose the mob name
-r8 down it's ID ,
-Open the Mobspawns.txt file
-Add the next number to the last line ,, means if the file ends with
4 3 430 381 431 382 1002 1
Then ur first number will be 5
Then add the code in that order
Id MobID x1 y1 x2 y2 MapID Number_of_mobs
Whill MobID is the number u wrote down from the Mobs.txt file
-x1,y1 are the first spawning point coordinates
-x2,y2 are the last spawning point coordinates
-MapID is the map where the mobs will spawn (u can find them at the Maps.txt file)
-Number of Mobs how many monsters will spawn in this square
so the next one you start with a 5 but then after that what do you put in?
06/10/2008 00:24 abdomiky7#253
ya momkn 5dma ana 3awz el server dh CoPvP a3ml zayo momkn aw 5odo menha hya msh rdya tdhol momkn lw sm7t dh fe 7gat 3.er el PK
06/10/2008 00:44 bobtin777#254
Quote:
Originally Posted by abdomiky7 View Post
ya momkn 5dma ana 3awz el server dh CoPvP a3ml zayo momkn aw 5odo menha hya msh rdya tdhol momkn lw sm7t dh fe 7gat 3.er el PK
What??
06/10/2008 00:50 abdomiky7#255
i need make server CoPvP