|
You last visited: Today at 06:51
Advertisement
[FAQ] HellmouthSource
Discussion on [FAQ] HellmouthSource within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
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.
|
|
|
03/18/2011, 21:00
|
#122
|
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
|
Quote:
Originally Posted by { Angelius }
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.
|
|
|
03/18/2011, 21:04
|
#123
|
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
|
Quote:
Originally Posted by pro4never
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.
|
|
|
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
|
|
|
03/18/2011, 22:40
|
#125
|
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
|
Quote:
Originally Posted by nTL3fTy
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  ,
|
|
|
03/18/2011, 22:48
|
#126
|
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
|
Quote:
Originally Posted by jake12
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!!
|
|
|
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 }
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.
|
|
|
03/19/2011, 05:38
|
#128
|
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
|
Quote:
Originally Posted by pro4never
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
|
|
|
03/19/2011, 09:46
|
#129
|
elite*gold: 0
Join Date: May 2009
Posts: 11
Received Thanks: 0
|
Quote:
Originally Posted by mohamedkhaled
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?
|
|
|
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 !
|
|
|
03/19/2011, 11:56
|
#131
|
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
|
dunno how many times i need to post this
|
|
|
03/19/2011, 12:04
|
#132
|
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
|
Quote:
Originally Posted by BioHazarxPaul
dunno how many times i need to post this
|
Hell, at this rate i think you will post this forever!!
|
|
|
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
|
|
|
03/19/2011, 15:15
|
#134
|
elite*gold: 0
Join Date: Apr 2010
Posts: 40
Received Thanks: 0
|
Quote:
Originally Posted by PePsI_MaN
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
|
|
|
03/19/2011, 15:31
|
#135
|
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
|
Quote:
Originally Posted by PePsI_MaN
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 !!
|
|
|
All times are GMT +1. The time now is 06:52.
|
|