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

06/06/2008 01:58 NoFusion#76
never mine.. fix it!
06/06/2008 07:14 samehvan#77
Quote:
Originally Posted by YukiXian View Post
I still don't understand it...

What to fill in in the Dialog.ini?

I got this :

[10002]
face=4
txt0=What hairstyle do you want?
txt1=Here you go !
opt0=Style 1-Style 2 ( Etc ... )
opt1=Thanks!-Thanks! ( Etc ... )
req=gold,100-gold,100 ( Etc ... )
rew= ( Wtf if this one? Help please ! :p )

I only need to know the rew= ( Reward )
rew=hair,1-hair,2 (Etc...)

but u will need to open the NPCdialog.cs and add that code
if (TheRew[0])=="hair")
{
ClickyClient.MyChar.Hair=TheRew[1];
ClickyClient.MyChar.SaveChar();
}

Quote:
Originally Posted by taylow345 View Post
having trouble with dialog X_x this is what i got...:

[65221]
face=1
txt0=Hi, Come to me if you need to know anything about the Server.
txt1=We're working on the server =p..
txt2=When we get more C# user's help -_-!
opt0=Whats going on?-When will things get working?-I'll be going now
opt1=ok
req=0

im trying to have it so that when someone clicks the 2nd option txt2 to show, its not working xD. any help?
add this
opt2=cool
req=-- (or 0-0)
rew=-- (or 0-0)
06/06/2008 09:09 NoFusion#78
hey.. am noob. i just started learning, been reading... i just learn how to add monster n removing them. i try adding new monster like Turtledove but when i login i only c shadow NO MONSTER IMAGE. i can kill them but i can only c shadow...

i know that somthing is missing that y i cant c the Turtledove. i try to find out wat missing but i counldnt find out. any help?
06/06/2008 09:54 DragonStar#79
I tried to go by the guide on the first page with no success on adding npcs, i can change a npcs location but how can i duplicate and rename then spawn a npc were i wnt? tried to add one to mobs.txt but no clue how exactly that works. Example = spawn 2 BlackSmiths and give them dif. names, editing wut they say was easy.
I also tried the steps u listed to make a npc reward u a item, i did it exactly how u wrote but it does not give my character the item.
__________
if (TheRew[0])=="hair")
{
ClickyClient.MyChar.Hair=TheRew[1];
ClickyClient.MyChar.SaveChar();
}
_______
noticed u edited that to "hair", wut i marked n blue is it suppose to b ther? i tried taken that out n i did every thing u said but still wont change my hair styles, im getting -----Cannot implicitly convert type 'string' to 'short'----- error
it highlites TheRew[1] part
06/06/2008 09:58 Bottingpunk#80
Ok Ok from everything i have done from pgadmin to sql crap this is the best guide ever. samehvan ur like a god at coding haha. just hope u can get mana and stuff in. And also is there a place where i can make a webisite so maybe i could put my server up for more people to join. Is there a way to make somebody beable to turn my server on if im asleep and i didn't want to keep my cpu on. And is there a way u could removed the commands from people and just GMs beable to use them.? but this is truley thee best guide out there =D
06/06/2008 10:06 ~Yuki~#81
SAMEHVAN thx for your guide and mods !
Can u post the MOB ids (with mech,...)
coz i cant encrypt monster.dat...
06/06/2008 10:12 DragonStar#82
Quote:
Originally Posted by DragonStar View Post
I tried to go by the guide on the first page with no success on adding npcs, i can change a npcs location but how can i duplicate and rename then spawn a npc were i wnt? tried to add one to mobs.txt but no clue how exactly that works. Example = spawn 2 BlackSmiths and give them dif. names, editing wut they say was easy.
I also tried the steps u listed to make a npc reward u a item, i did it exactly how u wrote but it does not give my character the item.
__________
if (TheRew[0])=="hair")
{
ClickyClient.MyChar.Hair=TheRew[1];
ClickyClient.MyChar.SaveChar();
}
_______
noticed u edited that to "hair", wut i marked n blue is it suppose to b ther? i tried taken that out n i did every thing u said but still wont change my hair styles, im getting -----Cannot implicitly convert type 'string' to 'short'----- error
it highlites TheRew[1] part
Here are pictures to my probs, first one is the error i get in C# for the hair
2nd one is the hair after i clicked on the barber
3rd one is after i click on the guy to get the item as a reward
06/06/2008 11:17 L1nk1n*P4rK#83
do some1 have a GuildAdmin and GuildWar "instaled" in his server?? I just want to know ;)


and is some1 if know how to add a "hello" mesg at logining like "Welcome To ShadowCO.Enjoy Your Time"
06/06/2008 12:17 ~Yuki~#84
no not now sry
06/06/2008 14:14 L1nk1n*P4rK#85
Quote:
Originally Posted by lolmaster123 View Post
no not now sry
no not now is for guild sistem or "hello" sistem? :confused:
06/06/2008 15:36 mafia03#86
this my file with added Monster:D
if u need just copy Mobs & MobSpawns file in ur server:D..but not all monster:o

Monster added:
HawKing, Pheasant, Bandit, BanditL33, Robin, Turtledove, Birdman, RedDevil, BloodyBat, TombBat, Titan, Macaque, BullMonster, BladeGhost, SandMonster, DisCityMob, Banditti, BanditL98, SeniorBandit...
06/06/2008 16:25 samehvan#87
first of all , i want to ty all for ur patient an trust , but srry to tell all , i am not releasing anymore ubdates , dmn i hate to say so but i am very very angry

i said at my first post i dont care about credits and that things but that doesnt mean .... allowed to claim it is his , u can imagine how awful when someone comes to u saying that he has a great or even bad source made by (anyone) then u discover that it is the one u released ,

it is true i worked on it and released it to all and i hoped we all can enjoy it , i wasn't care about anything but helping and seeing smiles on faces ,but i think it is really unfair

Quote:
Originally Posted by NoFusion View Post
hey.. am noob. i just started learning, been reading... i just learn how to add monster n removing them. i try adding new monster like Turtledove but when i login i only c shadow NO MONSTER IMAGE. i can kill them but i can only c shadow...

i know that somthing is missing that y i cant c the Turtledove. i try to find out wat missing but i counldnt find out. any help?
make sure the Mesh is for turtledove

and next time plz post the txt u added so i can know exactly what is wrong

Quote:
Originally Posted by DragonStar View Post
I tried to go by the guide on the first page with no success on adding npcs, i can change a npcs location but how can i duplicate and rename then spawn a npc were i wnt? tried to add one to mobs.txt but no clue how exactly that works. Example = spawn 2 BlackSmiths and give them dif. names,

you cant do that coz every single NPC has a puplic ID (shows even if u spawn 100 of one type NPC) and a special ID on the index that ID u cant give to more than one NPC , so u cant spawn 2 with one line

editing wut they say was easy.
I also tried the steps u listed to make a npc reward u a item, i did it exactly how u wrote but it does not give my character the item.

***** The screen shots sayes u ddnt put the last number add "1" on the end of the rew line
__________
if (TheRew[0])=="hair")
{
ClickyClient.MyChar.Hair=TheRew[1];
ClickyClient.MyChar.SaveChar();
}
_______
noticed u edited that to "hair", wut i marked n blue is it suppose to b ther?

no


i tried taken that out n i did every thing u said but still wont change my hair styles, im getting -----Cannot implicitly convert type 'string' to 'short'----- error
it highlites TheRew[1] part

The hair stile code i wrote it and said it would be somthing like that , not exactly like i wrote , i ddnt test it but as i can c from ur error msg u can simply add the convert to short to the line like that

ClickyClient.MyChar.Hair=(short)(TheRew[1]);
and when i say somthing like that it means somthing like that not exactly like that :D

that also means u may have some errors but if u are experience with coding u can easy fix it

Quote:
Originally Posted by Bottingpunk View Post
Ok Ok from everything i have done from pgadmin to sql crap this is the best guide ever. samehvan ur like a god at coding haha. just hope u can get mana and stuff in. And also is there a place where i can make a webisite so maybe i could put my server up for more people to join. Is there a way to make somebody beable to turn my server on if im asleep and i didn't want to keep my cpu on. And is there a way u could removed the commands from people and just GMs beable to use them.? but this is truley thee best guide out there =D
actually i got the mana and the skills IDs and Tao skills are now working (not fully done yet but they are working , but i dunno should i release the new edits or what after what happend .may be when i calm down i will

Quote:
Originally Posted by L1nk1n*P4rK View Post
do some1 have a GuildAdmin and GuildWar "instaled" in his server?? I just want to know ;)


and is some1 if know how to add a "hello" mesg at logining like "Welcome To ShadowCO.Enjoy Your Time"
the helloo msg u can add it on the login.cs class , that means when the client login sendmsg "hello" , it is an easy line , u can make it (the login.cs located at source\clientrequests\login.cs

and at that class u can add some amazing things like playback a sound track or a flash movie :P
but take care coz that need a very high performance PC

Quote:
Originally Posted by mafia03 View Post
this my file with added Monster:D
if u need just copy Mobs & MobSpawns file in ur server:D..but not all monster:o

Monster added:
HawKing, Pheasant, Bandit, BanditL33, Robin, Turtledove, Birdman, RedDevil, BloodyBat, TombBat, Titan, Macaque, BullMonster, BladeGhost, SandMonster, DisCityMob, Banditti, BanditL98, SeniorBandit...
thank you , nice work
06/06/2008 16:57 DragonStar#88
@samehvan
Thanks alot on the add item using rew thing, worked like a charm.
Browsing the npc ini's started to think u couldn't duplicate them n u now confirmed that lol. I know your prob bussy but u got a way for gm accounts to broadcast msgs to the server?
If your too bussy dont worry about it, you have done a lot as it is. Asome job on all your work.
06/06/2008 17:10 ~Yuki~#89
At the moment i red your last post i nearly started crying :-(
Pls dont stop working on that source coz we all need u so much!
I wanna do all by myselfe but im not a good coder and i cant code something for it...
Look im a big noob i cant add mobs+spawns!
if i try to do that i have mobs without textures...
i fixed npcs but u can do so much more for us so..
PLS DONT STOP HELPING/WORKING ON THIS SOURCE!
I WILL SUPPORT U AS I CAN
U DID GREAT WORK ON HERE DONT STOP NOW IN SOME WEEKS U ARE DONE AND HAVE A WORKING LVLING SOURCE!

i hope u think about it..

greetings

Lolmaster
06/06/2008 18:26 samehvan#90
Quote:
Originally Posted by DragonStar View Post
@samehvan
Thanks alot on the add item using rew thing, worked like a charm.
Browsing the npc ini's started to think u couldn't duplicate them n u now confirmed that lol. I know your prob bussy but u got a way for gm accounts to broadcast msgs to the server?
If your too bussy dont worry about it, you have done a lot as it is. Asome job on all your work.
yes sure u can broadcast ur msg if u are a gm ,i will post that if i decide to continue working on that ,srry about it but i feel like dummy

Quote:
Originally Posted by lolmaster123 View Post
At the moment i red your last post i nearly started crying :-(
Pls dont stop working on that source coz we all need u so much!
I wanna do all by myselfe but im not a good coder and i cant code something for it...
Look im a big noob i cant add mobs+spawns!
if i try to do that i have mobs without textures...
i fixed npcs but u can do so much more for us so..
PLS DONT STOP HELPING/WORKING ON THIS SOURCE!
I WILL SUPPORT U AS I CAN
U DID GREAT WORK ON HERE DONT STOP NOW IN SOME WEEKS U ARE DONE AND HAVE A WORKING LVLING SOURCE!

i hope u think about it..

greetings

Lolmaster
i cant ty all for ur support , i really appreciate it and blv me i am very sad with i said and i will suffer not helping but on the other side it is awful feeling when someone vex u with ur own work claiming it is his ,

but u know what ? , i know my self , Unfortunately i cant stop :cool: