[Help] /model dont save

09/06/2008 03:09 kafetao#1
when use the /model command modifies perfectly.

but if I to leave game.. not save the modification..

how fix??
09/06/2008 06:06 lostsolder05#2
Quote:
Originally Posted by kafetao View Post
when use the /model command modifies perfectly.

but if I to leave game.. not save the modification..

how fix??
wouldnt u have to have it run a mysql query to edit the model in the database(not sure if it already does that, but i don't think it does) so try that out and tell me if it works or not
09/06/2008 06:57 kafetao#3
yes work
09/06/2008 07:27 lostsolder05#4
Quote:
Originally Posted by kafetao View Post
yes work
k so u got it fixed? if so then np :P
09/06/2008 07:31 kafetao#5
dont work when i change in game.
09/06/2008 08:26 taguro#6
Quote:
Originally Posted by lostsolder05 View Post
wouldnt u have to have it run a mysql query to edit the model in the database(not sure if it already does that, but i don't think it does) so try that out and tell me if it works or not
Your correct. the query would have to edit the table "model" in the database, unfortunately for the poster... im sure he has no knowledge of how to do this and expects someone to do it for him and post it here. I wont do it for you, but ill give you this: check your client.cs for your reborn code (if your source has it... if not, find Emme's LOTF post. Use this as a guide to setting up a code that will change, and save the Model table in the database. This is the only way your going to learn how to code.
09/06/2008 21:56 ~Yuki~#7
Its damn easy to do it....
09/06/2008 22:07 konkizta#8
Search :

Code:
MySqlCommand Command = new MySqlCommand("UPDATE `Characters` SET `CharName` = '" + Charr.Name + "', `Level` = " + Charr.Level + ",`Exp` = " + Charr.Exp + ",`GuildDonation` = " + Charr.GuildDonation + ",`Strength` = " + Charr.Str + ",`Agility` = " + Charr.Agi + ",`Vitality` = " + Charr.Vit + ",`Spirit` = " + Charr.Spi + ",`Job` = " + Charr.Job + ",`Model` = " + Charr.RealModel + ",`Money` = " + Charr.Silvers + ",`CPs` = " + Charr.CPs + ",`CurrentHP` = " + Charr.CurHP + ",`StatPoints` = " + Charr.StatP + ",`MyGuild` = " + Charr.GuildID + ",`GuildPos` = " + Charr.GuildPosition + ",`LocationMap` = " + Charr.LocMap + ",`LocationX` = " + Charr.LocX + ",`LocationY` = " + Charr.LocY + ",`Hair` = " + Charr.Hair + ",`Equipment` = '" + Charr.PackedEquips + "',`Inventory` = '" + Charr.PackedInventory + "',`PKPoints` = " + Charr.PKPoints + ",`PrevMap` = " + Charr.PrevMap + ", `Skills` = '" + Charr.PackedSkills + "', `Profs` = '" + Charr.PackedProfs + "',`RBCount` = " + Charr.RBCount + ",`Avatar` = " + Charr.Avatar + ",`WHMoney` = " + Charr.WHSilvers + ",`VP` = " + Charr.VP + ",`Warehouses` = '" + Charr.PackedWHs + "',`Friends` = '" + Charr.PackedFriends + "',`Enemies` = '" + Charr.PackedEnemies + "',`QuestKO` = '" + Charr.QuestKO + "',`QuestMob` = '" + Charr.QuestMob + "',`QuestFrom` = '" + Charr.QuestFrom + "' WHERE `Account` = '" + Charr.MyClient.Account + "'", Connection);
and replace them why:

Code:
MySqlCommand Command = new MySqlCommand("UPDATE `Characters` SET `CharName` = '" + Charr.Name + "', `Level` = " + Charr.Level + ",`Exp` = " + Charr.Exp + ",`GuildDonation` = " + Charr.GuildDonation + ",`Strength` = " + Charr.Str + ",`Agility` = " + Charr.Agi + ",`Vitality` = " + Charr.Vit + ",`Spirit` = " + Charr.Spi + ",`Job` = " + Charr.Job + ",`Model` = " + Charr.Model + ",`Money` = " + Charr.Silvers + ",`CPs` = " + Charr.CPs + ",`CurrentHP` = " + Charr.CurHP + ",`StatPoints` = " + Charr.StatP + ",`MyGuild` = " + Charr.GuildID + ",`GuildPos` = " + Charr.GuildPosition + ",`LocationMap` = " + Charr.LocMap + ",`LocationX` = " + Charr.LocX + ",`LocationY` = " + Charr.LocY + ",`Hair` = " + Charr.Hair + ",`Equipment` = '" + Charr.PackedEquips + "',`Inventory` = '" + Charr.PackedInventory + "',`PKPoints` = " + Charr.PKPoints + ",`PrevMap` = " + Charr.PrevMap + ", `Skills` = '" + Charr.PackedSkills + "', `Profs` = '" + Charr.PackedProfs + "',`RBCount` = " + Charr.RBCount + ",`Avatar` = " + Charr.Avatar + ",`WHMoney` = " + Charr.WHSilvers + ",`VP` = " + Charr.VP + ",`Warehouses` = '" + Charr.PackedWHs + "',`Friends` = '" + Charr.PackedFriends + "',`Enemies` = '" + Charr.PackedEnemies + "',`QuestKO` = '" + Charr.QuestKO + "',`QuestMob` = '" + Charr.QuestMob + "',`QuestFrom` = '" + Charr.QuestFrom + "' WHERE `Account` = '" + Charr.MyClient.Account + "'", Connection);
:D
09/06/2008 22:16 ~Yuki~#9
Konkiza Dont place codes into a Quote field...
09/06/2008 22:31 kafetao#10
Quote:
Originally Posted by konkizta View Post
Search :



and replace them why:



:D
work fine. thx
09/06/2008 23:00 konkizta#11
thanks at least one xD [Only registered and activated users can see links. Click Here To Register...]
09/07/2008 00:13 ~Yuki~#12
:P