Register for your free account! | Forgot your password?

You last visited: Today at 06:51

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[FAQ] HellmouthSource

Discussion on [FAQ] HellmouthSource within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old 03/18/2011, 16:45   #121
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Yes, although I'd change update character... it's pointless how I wrote multiple copies.

Just do...

public static void ModifyCharacter(uint Who, string Where, object Value)
{
now just do the .set code using Value.ToString();
}

Mysql always uses commands as a string anyways so there's no point in forcing to different types only to have it change back to a string. just use a generic object and then convert it to a string. Will then work with any variable.

That's how my ModifyXXXXX methods work in my new source. They work flawlessly so far.

The only time that might not work is if you

A: try to fill in a field with an incorrect value (IE: set Level = BWAHAHHA)

B: call a class/structure vs a value (IE Sending itemInfo instead of ItemInfo.Plus)

It all comes down to sane coding as you add features but tbh as I have the methods atm is simply... stupid.
pro4never is offline  
Old 03/18/2011, 21:00   #122
 
nTL3fTy's Avatar
 
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
Quote:
Originally Posted by { Angelius } View Post
Edit ..
no more Players/mobs spawns
The structure of the spawn packet changed slightly. The offset for the beginning of the string list changed from 211 to 212. It's an easy fix.
nTL3fTy is offline  
Old 03/18/2011, 21:04   #123
 
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
Quote:
Originally Posted by pro4never View Post
Yes, although I'd change update character... it's pointless how I wrote multiple copies.

Just do...

public static void ModifyCharacter(uint Who, string Where, object Value)
{
now just do the .set code using Value.ToString();
}

Mysql always uses commands as a string anyways so there's no point in forcing to different types only to have it change back to a string. just use a generic object and then convert it to a string. Will then work with any variable.

That's how my ModifyXXXXX methods work in my new source. They work flawlessly so far.

The only time that might not work is if you

A: try to fill in a field with an incorrect value (IE: set Level = BWAHAHHA)

B: call a class/structure vs a value (IE Sending itemInfo instead of ItemInfo.Plus)

It all comes down to sane coding as you add features but tbh as I have the methods atm is simply... stupid.
I see, i just fixed it! i was too lazy to look in the code!! also thanks for response.
mohamedkhaled is offline  
Old 03/18/2011, 22:20   #124
 
elite*gold: 0
Join Date: May 2009
Posts: 11
Received Thanks: 0
mysql problem give me errors more errors
jake12 is offline  
Old 03/18/2011, 22:40   #125
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Quote:
Originally Posted by nTL3fTy View Post
The structure of the spawn packet changed slightly. The offset for the beginning of the string list changed from 211 to 212. It's an easy fix.
yeah an i fixed it its the same clients/mobs spawn packets thanks for letting me know ,
{ Angelius } is offline  
Old 03/18/2011, 22:48   #126
 
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
Quote:
Originally Posted by jake12 View Post
mysql problem give me errors more errors
Read the FAQ .....
Just be sure that innodb is enabled!! LOL
i suggest to download the full MySQL version from the MySQL site!!
mohamedkhaled is offline  
Old 03/19/2011, 01:34   #127
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by { Angelius } View Post
yeah an i fixed it its the same clients/mobs spawn packets thanks for letting me know ,
Mob/clients are both the same packet. Entity spawn.
pro4never is offline  
Old 03/19/2011, 05:38   #128
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Quote:
Originally Posted by pro4never View Post
Mob/clients are both the same packet. Entity spawn.
thats what i meant thought cept that i had to type Packet s with out the S lol

and again thanks for Releasing that Proxy it helped alot
{ Angelius } is offline  
Old 03/19/2011, 09:46   #129
 
elite*gold: 0
Join Date: May 2009
Posts: 11
Received Thanks: 0
Quote:
Originally Posted by mohamedkhaled View Post
Read the FAQ .....
Just be sure that innodb is enabled!! LOL
i suggest to download the full MySQL version from the MySQL site!!
you mean MySQL Community Server?
jake12 is offline  
Old 03/19/2011, 11:14   #130
 
elite*gold: 0
Join Date: May 2009
Posts: 11
Received Thanks: 0
please tell me how to enable the innodb !
jake12 is offline  
Old 03/19/2011, 11:56   #131
 
BioHazarxPaul's Avatar
 
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
dunno how many times i need to post this

BioHazarxPaul is offline  
Thanks
1 User
Old 03/19/2011, 12:04   #132
 
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
Quote:
Originally Posted by BioHazarxPaul View Post
dunno how many times i need to post this

Hell, at this rate i think you will post this forever!!
mohamedkhaled is offline  
Old 03/19/2011, 15:14   #133
 
elite*gold: 0
Join Date: Apr 2010
Posts: 40
Received Thanks: 0
pro4never can you tell me what commands to item's iwrite /item KingsClub 12 12 7 103 103 and it dont work and any command dont work why can you help me and tell me
PePsI_MaN is offline  
Old 03/19/2011, 15:15   #134
 
elite*gold: 0
Join Date: Apr 2010
Posts: 40
Received Thanks: 0
Quote:
Originally Posted by PePsI_MaN View Post
pro4never can you tell me what commands to item's iwrite /item KingsClub 12 12 7 103 103 and it dont work and any command dont work why can you help me and tell me
and where monster's im not ound any 1monster tell me pleas
PePsI_MaN is offline  
Old 03/19/2011, 15:31   #135
 
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
Quote:
Originally Posted by PePsI_MaN View Post
and where monster's im not ound any 1monster tell me pleas
Read the FAQ can you!?
@items it works like this /item ID Plus Damage Enchant Soc1 Soc2
@monsters you should code it your self!! monster spawning already coded but AI never coded !! as i said you should code it !!
mohamedkhaled is offline  

Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.