[FAQ] HellmouthSource

03/18/2011 16:45 pro4never#121
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 nTL3fTy#122
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.
03/18/2011 21:04 mohamedkhaled#123
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.
03/18/2011 22:20 jake12#124
mysql problem give me errors more errors
03/18/2011 22:40 { Angelius }#125
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 :) ,
03/18/2011 22:48 mohamedkhaled#126
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!!
03/19/2011 01:34 pro4never#127
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.
03/19/2011 05:38 { Angelius }#128
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 :)
03/19/2011 09:46 jake12#129
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?
03/19/2011 11:14 jake12#130
please tell me how to enable the innodb !
03/19/2011 11:56 BioHazarxPaul#131
dunno how many times i need to post this

[Only registered and activated users can see links. Click Here To Register...]
03/19/2011 12:04 mohamedkhaled#132
Quote:
Originally Posted by BioHazarxPaul View Post
dunno how many times i need to post this

[Only registered and activated users can see links. Click Here To Register...]
Hell, at this rate i think you will post this forever!!
03/19/2011 15:14 PePsI_MaN#133
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 :o
03/19/2011 15:15 PePsI_MaN#134
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 :o
and where monster's im not ound any 1monster tell me pleas
03/19/2011 15:31 mohamedkhaled#135
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 !!