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.
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.
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
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
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 !!