[Help] Gourd Bug

07/19/2009 19:41 iEagle#1
Alright heres my bug
hard to explain so ill show an example
Current Hp 9k/9k
I Wear a mira gourd, new hp. 9.8k/9.8k
i take off the gourd
new hp, 9.8/9k
if i wear gourd again, 10.6k/ 9.8k
if i take off, 10.6k/9k
if i die and rev the hp remains the same, it doesnt go back to 9k unless i do /job # or /level #

heres the code im using
if (!UnEquip)
{
if (ItemId == 2100025)//MiraculousGourd
AddHP += 800;

if (ItemId == 2100095)//GoldCup
AddHP += 1500;
AddDef += 1000;
AddMinAtk += 1000;
AddMaxAtk += 1000;
AddMAtk += 1000;

if (ItemId == 2100085)//GoldTrophy
AddHP += 1500;

if (ItemId == 2100075)//GoldPrize
{
AddHP += 1500;
AddDef += 1000;
AddMinAtk += 1000;
AddMaxAtk += 1000;
AddMAtk += 1000;
07/19/2009 21:34 ~Yuki~#2
fixed
07/20/2009 02:38 danielachraf#3
you don;t need to add that or in db ..
07/20/2009 02:41 iEagle#4
Quote:
Originally Posted by danielachraf View Post
you don;t need to add that or in db ..
if you dont add it then 7k/9k, u cant heal or recover those 2k hp
07/20/2009 02:43 danielachraf#5
Quote:
Originally Posted by iEagle View Post
if you dont add it then 7k/9k, u cant heal or recover those 2k hp
at the first time i added a gourd i put in itemtype.dat only the info and in source and db no and worked fine
07/20/2009 02:49 iEagle#6
Quote:
Originally Posted by danielachraf View Post
at the first time i added a gourd i put in itemtype.dat only the info and in source and db no and worked fine
i need a itemtype decrypter -.-
07/20/2009 02:57 Pete1990#7
got to add it inside of the char.cs if u dont its not evne gonna add a stat or anything
07/20/2009 03:10 Arcotemple:)#8
Quote:
Originally Posted by iEagle View Post
Alright heres my bug
hard to explain so ill show an example
Current Hp 9k/9k
I Wear a mira gourd, new hp. 9.8k/9.8k
i take off the gourd
new hp, 9.8/9k
if i wear gourd again, 10.6k/ 9.8k
if i take off, 10.6k/9k
if i die and rev the hp remains the same, it doesnt go back to 9k unless i do /job # or /level #

heres the code im using
if (!UnEquip)
{
if (ItemId == 2100025)//MiraculousGourd
AddHP += 800;

if (ItemId == 2100095)//GoldCup
AddHP += 1500;
AddDef += 1000;
AddMinAtk += 1000;
AddMaxAtk += 1000;
AddMAtk += 1000;

if (ItemId == 2100085)//GoldTrophy
AddHP += 1500;

if (ItemId == 2100075)//GoldPrize
{
AddHP += 1500;
AddDef += 1000;
AddMinAtk += 1000;
AddMaxAtk += 1000;
AddMAtk += 1000;

heres a little tip
next time you post a code you have
use [ code ][ code/ ]
jsut take out the spaces right there