how to set zen on char...when he create one char it will have lets say 1000000 zen in his inventory..
where i'm going to put the code..
Printable View
how to set zen on char...when he create one char it will have lets say 1000000 zen in his inventory..
where i'm going to put the code..
were i'm going to put this code it what file in the data...Quote:
UPDATE Character
SET Money=('10000000')
WHERE Money<1
can help me thx
It's a sql script, so you must use mssql.
But is useless for your case.
You want that every new character have 10000000 zen in his inventory, right?
You must edit the wz_createcharacter stored procedures.
You have something like
Change red value in 10000000Code:if( @Result <> 0 )
begin
GOTO TranProcEnd
end
else
begin
INSERT INTO dbo.Character(AccountID, Name, cLevel, LevelUpPoint, Class, Strength, Dexterity, Vitality, Energy, Inventory,MagicList,
Life, MaxLife, Mana, MaxMana, MapNumber, MapPosX, MapPosY, MDate, LDate, Quest, DbVersion, Leadership,Money )
SELECT @AccountID As AccountID, @Name As Name, Level, 0, @Class As Class,
Strength, Dexterity, Vitality, Energy, Inventory,MagicList, Life, MaxLife, Mana, MaxMana, MapNumber, MapPosX, MapPosY,
getdate() As MDate, getdate() As LDate, Quest, DbVersion, Leadership,0
FROM DefaultClassType WHERE Class = @Class
SET @Result = @@Error
end