-
Apprentice
Script Sql gift items
hi , i want give some items with the creation of the first character..., but only once time, if delte the character and create again don't give nothing...
sorry my english
-
-
Enthusiast
Re: Script Sql gift items
Inventory is binary, it will be hard to edit. I think in enterprise manager you cannot change it, but didnt tried. So OK, only one time? You will need to create new variable, which will be global for account. It will be 0 at start, and when somebody create character, you will need to change it to 1. And in that script which gives item to inventory, you will need to write something like:
if var=0
ACCOUNT VARIABLES ARE STORED in table AccountCharacter in MuOnline database. Script procedure which calls function about creating new character is in same database and its called WZ_CreateCharacter. So you will need to define that table which contains global var and change it to 1. And give items to inventory only if that var is 0.
Hope it helps.
Good Luck
BTW: but what, if somebody just create another account? He will have that item(s) second time, and its easy to run MU twice and trade it from one character to another!
Sorry for my bad English.
Last edited by lekiller; 07-01-10 at 12:05 PM.