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

06/12/2008 21:29 adz06676#406
Quote:
Originally Posted by YukiXian View Post
What code in the Login.cs?
Cuz i do this and its wrong :
What error does the compiler get? and are you amking it read the effect you want i need the error to be able to help you
06/12/2008 21:56 samehvan#407
Quote:
Originally Posted by adz06676 View Post
Well ur gettin pro :p and can you have a look at the pm i sent you about how to call a timer? Please
i dd reply, and gratz for ur new timer:D

Quote:
Originally Posted by DragonStar View Post
wut was the code to fix the double fb hit?
i just canceled the 2nd hit order

Quote:
Originally Posted by YukiXian View Post
What code in the Login.cs?
Cuz i do this and its wrong :
actually u will need two lines , one on the TheDb.cs which u should assign the effect value to the Myclient.mychar.effect

simthing like that
Charr.Effect = CharacterInfo.ReadValue("Character", "effect");

then the line to show the effect at login.cs like that
WorldHandler.Effect(TheClient.MyChar,TheClient.MyC har.Effect);

and u can save it too at character.cs ---> savechar func

Quote:
Originally Posted by bobtin777 View Post
so samehvan what are you planin on to work on next... lol
as the signator says ddnt decide yet , may be i will go to save profs , or what u think?
06/12/2008 22:02 bobtin777#408
Quote:
Originally Posted by samehvan View Post
i dd reply, and gratz for ur new timer:D


i just canceled the 2nd hit order



actually u will need to line , one on the TheDb.cs which u should assign the effect value to the Myclient.mychar.effect

simthing like that
Charr.Effect = CharacterInfo.ReadValue("Character", "effect");

then the line to show the effect at login.cs like that
WorldHandler.Effect(TheClient.MyChar,TheClient.MyC har.Effect);

and u can save it too at character.cs ---> savechar func



as the signator says ddnt decide yet , may be i will go to save profs , or what u think?
thats sound good take your time. your doing good
06/12/2008 22:11 tony_987#409
samehvan@thx for that with socketing
06/12/2008 22:18 adz06676#410
Quote:
Originally Posted by samehvan View Post
i dd reply, and gratz for ur new timer:D


i just canceled the 2nd hit order



actually u will need two lines , one on the TheDb.cs which u should assign the effect value to the Myclient.mychar.effect

simthing like that
Charr.Effect = CharacterInfo.ReadValue("Character", "effect");

then the line to show the effect at login.cs like that
WorldHandler.Effect(TheClient.MyChar,TheClient.MyC har.Effect);

and u can save it too at character.cs ---> savechar func



as the signator says ddnt decide yet , may be i will go to save profs , or what u think?

Yeah thanks for telling me i didn't call it. Lmao :p
06/12/2008 22:25 superTao!!!#411
I have a question as to how to implement pk in the server using the source not the compiled source.

Also how do you get the mana to show up in the client because I got the mana code to work for me but it wont show up even when I use a mana pot yet I can still use nado lol.

BTW good work on this project keep working hard on it ^^
06/12/2008 22:27 gerble93#412
OMG IT DOESNT WORK FOR VISTA WHY!?
06/12/2008 22:28 adz06676#413
Oh sam i have a question for you, well you may have noticed that your non pk code didnt work as well as we'd hoped lol, you can go to another map put pk on and come back, so is there a code to disable skills? I can't figure it out will u take a look when u get a chance?

Thanks
06/12/2008 22:30 gerble93#414
How do i rebuild it for vista!, it always sais rebuild failed


All failed..


WHY WHAT DO I DO.

SOME ONE HELP ME PLEASE.
I NEED IT WO WORK FOR VISTA
06/12/2008 22:33 superTao!!!#415
Quote:
Originally Posted by adz06676 View Post
Oh sam i have a question for you, well you may have noticed that your non pk code didnt work as well as we'd hoped lol, you can go to another map put pk on and come back, so is there a code to disable skills? I can't figure it out will u take a look when u get a chance?

Thanks
I guess you answered part of my question but where is the code that disables the PK in twin city? I can probably mess with it and get rid of it. TY to anyone who answers the question .
06/12/2008 22:45 adz06676#416
Quote:
Originally Posted by superTao!!! View Post
I guess you answered part of my question but where is the code that disables the PK in twin city? I can probably mess with it and get rid of it. TY to anyone who answers the question .
Oh i didn't see your question its in packethandler.cs:

Quote:
case 96:
{
if ((AClient.MyChar.PosMap) == 1010 || (AClient.MyChar.PosMap) == 1036)
{
//ThePackets.SendMsg(TheClient.MessageId, "SYSTEM", TheClient.MyChar.CharName, "Srry No PK Here.", 2000);
break;
}
byte pkmode = Data[12];
byte[] pack = ThePackets.GeneralData((long)(AClient.MyChar.UID), pkmode, 0, 0, 96);
AClient.SendPacket(pack);
AClient.MyChar.PKMode = pkmode;
// Console.WriteLine("Packet - PKMode");
break;
}
Yours will say 1002 for the first map id i don't know if you can remove the full thing i havnt tried i only changed the map id.
06/12/2008 23:05 adz06676#417
@sam hmm the timer i made has basically given a timer to each individual player, how would i make it just 1 timer like to do that 1 thing without having to do it player by player how ever many players are on, sorry this seems confusing I don't know how to put it any simpler lol.

See this code makes the timer for everyone (public)
Quote:
public Timer SaveTimer
and basically i'd just like to know how to make it one timer instead of one timer for every player.

Edit: Sorry for posting twice. Didn't realize lol.
06/12/2008 23:38 vaska1992#418
anyone doing NPC dialog.ini??

i have a question, how i make warehouse man work?
i got this:

[44]
face=2
txt0=hello welcome to "market warehouse" !!!
opt0=open warehouse-no not today
req=0
rew= ????


and same for TrojanStar,WarriorGod,ArcherGod,TaoistMoon? i have this:

[10022]
face=2
txt0=Hello im "TrojanStar"
opt0=promote-learn hercules-learn robot-nothing today-etc...........
req= ?? lvl,15? - lvl,40???
rew=???

if i wana make him promote , how i do that??

and give skills at certain level, like in real CO..?

btw i have most of NPCs in TC,AM,PC in my dialog.ini , all i need is the code for each 1 of them..

PLZ give example, so i konw wat to do for the rest of them... TY
06/13/2008 00:03 vaska1992#419
this is my dialog.ini (txt)

if any1 wana take a look, go ahead....
06/13/2008 01:25 kenchiz14#420
Whats r the commands for the GM stuff?