P Server "NPC base code/shops/drop items" for who asked me 2 do it
Discussion on P Server "NPC base code/shops/drop items" for who asked me 2 do it within the CO2 Private Server forum part of the Conquer Online 2 category.
[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 ! )
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
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)
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?
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
Ok Ok from everything i have done from pgadmin to sql **** this is the best guide ever. samehvan ur like a *** 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
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
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
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
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
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
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
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
this my file with added Monster
if u need just copy Mobs & MobSpawns file in ur server..but not all monster
@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.
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!
@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
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
Verkaufe: Guild Wars "Platin", "Ectos, "Items" mehr... 09/12/2008 - Guild Wars Trading - 0 Replies Hallo,
ich biete gegen Euro viele schöne dinge für das Spiel Guild Wars an. Bitte meldet euch dann bei mir per PM was genau ihr haben möchtet und wieviel von den jeweiligen Virtuellen Gegenständen. Die Übergabe kann wie folgt ab laufen. Ich erstelle extra für euch die Ebay Auktion mit der gewünschten menge der jeweiligen Virtuellen Guild Wars gegenstände. Wenn ihr kein Ebay habt und euch auch kein Account anlegen möchtet kann die Übergabe auch ausserhalb Ebays statt finden hierzu erhaltet...