Official 5165 FAQ/Question thread

01/07/2010 01:19 pro4never#526
You could try doing it through the existing npc text system... Just do a foreach loop for clients connected to the server.

For each client check if they meet the requirements (level/job/etc) and if they do send a npc chat packet to them saying what's happening and have a linkback to join the event or deny it. Give them lets say a minute to respond and it should work.

Course if you have a distance check in your source for talking to npcs then you may need to change some code around... but again, nothing too complicated.
01/07/2010 01:31 .Ryu#527
Quote:
Originally Posted by pro4never View Post
You could try doing it through the existing npc text system... Just do a foreach loop for clients connected to the server.

For each client check if they meet the requirements (level/job/etc) and if they do send a npc chat packet to them saying what's happening and have a linkback to join the event or deny it. Give them lets say a minute to respond and it should work.

Course if you have a distance check in your source for talking to npcs then you may need to change some code around... but again, nothing too complicated.
Yeah nothing to complicated :)
01/07/2010 02:02 NoFatChicks#528
Thanks for the nice thread and source. I'm using it to learn more.. so i'm thinking about this 2 questions:


First: where i can see the function for PK in sertain maps? Like make twin city be abble to ppl PK..

Second: im raving a crazy problem.. seems sometimes the source dont save the characters as they are.
exemple: some player log in.. lvl from 1 to 125 and make some itens.. promote.. do lot of stuff and log off. when he logs again (after i restart the server or not) his char is different.. some itens he made +9 go back to +6.. his level go back to 110.. something like this.


Any idea?

Have a great time.
01/07/2010 02:19 .Ryu#529
Quote:
Originally Posted by NoFatChicks View Post
Thanks for the nice thread and source. I'm using it to learn more.. so i'm thinking about this 2 questions:


First: where i can see the function for PK in sertain maps? Like make twin city be abble to ppl PK..

Second: im raving a crazy problem.. seems sometimes the source dont save the characters as they are.
exemple: some player log in.. lvl from 1 to 125 and make some itens.. promote.. do lot of stuff and log off. when he logs again (after i restart the server or not) his char is different.. some itens he made +9 go back to +6.. his level go back to 110.. something like this.


Any idea?

Have a great time.
Heres a question for you

When you restart do you do /exit if you dont thats the problem
01/07/2010 03:30 NoFatChicks#530
Sure i /exit. Thats why i got surprused when this problem came out. but it happened with 1 normal account. Maybe the char bugged or..

About abble pk on sertain maps.. any idea too?

And thanks, anyway.
01/07/2010 03:56 .Ryu#531
Quote:
Originally Posted by NoFatChicks View Post
Sure i /exit. Thats why i got surprused when this problem came out. but it happened with 1 normal account. Maybe the char bugged or..

About abble pk on sertain maps.. any idea too?

And thanks, anyway.
Not realy sure im thinking the account may have been buged
01/07/2010 04:52 NoFatChicks#532
Well.. i'll keep searching.
Thanks anyway.

Still trying to:

-Finish the cool effect action code
-Make the Mentor thing work.
-Make Block system work

Aways read to learn.
#Searching#
01/07/2010 05:15 Arcо#533
Quote:
Originally Posted by NoFatChicks View Post
Sure i /exit. Thats why i got surprused when this problem came out. but it happened with 1 normal account. Maybe the char bugged or..

About abble pk on sertain maps.. any idea too?

And thanks, anyway.

For the pking, go to world.cs and search for PkFree and it should be somewhere around there.
01/07/2010 07:03 NoFatChicks#534
yay, thanks.

i found this.. im right?
Quote:
public static ArrayList NoPKMaps = new ArrayList() { (ushort)1036, (ushort)1039, (ushort)1002, (ushort)700, (ushort)1004 };
public static ArrayList FreePKMaps = new ArrayList() { (ushort)6000, (ushort)6001, (ushort)1038, (ushort)1005 };
If yes, how do I know which map each number represents? (like "1036" is twin city or..?)


So, if what im saying make any sence you have any tip for me to find it out?




#Searching#
01/07/2010 07:47 Arcо#535
Quote:
Originally Posted by NoFatChicks View Post
yay, thanks.

i found this.. im right?


If yes, how do I know which map each number represents? (like "1036" is twin city or..?)


So, if what im saying make any sence you have any tip for me to find it out?




#Searching#

Here's some Map ids.
These should help.
This isn't all of them though, just some.
01/07/2010 09:19 NoFatChicks#536
That was much more then i was expecting. Changes worked great. Thanks a lot.


Now look what i found.. theres some npcs alredy made on source but i need to add the npc in NPC.txt to it "be real".
exemple: an npc case "30003" in source.. so the line in NPC.txt will start with "30003" for this case but i dont know what each of other numbers i have to put means, and how i make it by sence.
Maybe you or someone else can tell me a little bout it.

Thanks for feel like help people.


#Searching#
01/07/2010 12:33 Arcо#537
Quote:
Originally Posted by NoFatChicks View Post
That was much more then i was expecting. Changes worked great. Thanks a lot.


Now look what i found.. theres some npcs alredy made on source but i need to add the npc in NPC.txt to it "be real".
exemple: an npc case "30003" in source.. so the line in NPC.txt will start with "30003" for this case but i dont know what each of other numbers i have to put means, and how i make it by sence.
Maybe you or someone else can tell me a little bout it.

Thanks for feel like help people.


#Searching#

KK Npc line meanings.

4 40 1 0 1002 412 366

Npc ID
NpcType
NpcFlag
Avatar
MapID
X Coordinate
Y Coordinate

Hope this helps.
01/07/2010 19:18 NoFatChicks#538
You hope? Damn i'm getting nuts with so much help in a halk day. Thanks again and again.

,)


Its helping me a lot to make some noob stuff.. but since i never stop #Search# so now one thing i'm hutting to know about too:

-Make some item work.. like PK Amulet. I guess the item is alredy added in source cuz its appears in shop mall and i can buy it. When i click on it it makes nothing. I have to change or add something in Main Folder. I'm guessing this.


Thanks agian and have a nice day.



#Searching#
01/07/2010 19:20 ~*NewDuuDe*~#539
You have to add an actual code for it.
Just do something like MyChar.Pkpoints -= 30;
01/07/2010 19:41 NoFatChicks#540
Thanks, dude. But i'm kinda lost right now.. theres no "Main.cs" and yes a Main folder(my bad). so where i have to add the actual code?

Sorry i'm trying to find it myself.. the thing is that i get lost sometimes.


#Searching#