GoldCups

08/02/2009 05:35 TehPwnzor#1
kk i have goldcups into my server
one question
how do i make them work lol
i have this for them in Character.cs under gourd code
Code:
                if (ItemId == 2100085)
                    ExtraHP = 3000;
                ExtraMana = 3000;
hmm but the users max hp raises 3k bu tthey cant use pots to make it go that much higher...
like say their hp was 5k
then they wear goldcup
now its 8k

max hp is 8k but wont heal past 5k
get it?
anyone know whats wrong
08/02/2009 06:04 raidenx123#2
thats wrong ID =x the one for gold cup is 2100095 and I got this instead:
Code:
AddHP += 1500;
AddDef += 1000;
AddMinAtk += 1000;
AddMaxAtk += 1000;
AddMAtk += 1000;
I might have them switched tho :/
08/02/2009 06:06 TehPwnzor#3
i put the goldcup in my lotf source as 2100085
08/02/2009 17:57 danielachraf#4
you don't need to add any code in char.cs ... you need to put the info in the itemtype.dat and database (mysql) only
08/02/2009 18:00 raidenx123#5
Lol nothing in the database shows as ExtraHP,MP,etc It IS in the source NOT the database :)
08/02/2009 18:33 danielachraf#6
Quote:
Originally Posted by raidenx123 View Post
Lol nothing in the database shows as ExtraHP,MP,etc It IS in the source NOT the database :)
so why it is working with me without code in the source ? it can work with both
08/02/2009 20:28 TehPwnzor#7
it needs to be in the source cuz lotf doesnt have extra hp and all the crap in the database
08/02/2009 21:10 raidenx123#8
Yeah im not sure if you noticed but this is lotf not bins or coemu -_-
08/03/2009 02:38 TasteofChaos#9
dude, i have the same problem with miraculousgourd, goldcup, goldprize, etc.

the ...only way i've been able to surpass it, is dying and reviving. i dunno why,
but i've been messing around with that bug too, and YES, it IS in the source.
08/03/2009 02:43 CoAttack#10
Its your packet probably... look somewhere where it loads items when you place em on ... like equiping items ( i didnt do this yet i will when i get to it ) but when you do that make it so there is ExtraHP/ExtraMP and make it add by reading it off your database
08/03/2009 02:48 TasteofChaos#11
ushort ExtraHP = 0;
uint ExtraAtk = 0;
uint ExtraDef = 0;
uint ExtraMP = 0;
if (ItemId == 2100095)
{
ExtraHP = 1500;
ExtraMP = 1500;
ExtraAtk = 1000;
ExtraDef = 1000;
}
if (ItemId == 137310)
{
ExtraHP = 30000;
ExtraAtk = 1000;
}
if (ItemId == 2100025)
{
ExtraHP = 800;
}
if (ItemId == 150000)
{
ExtraHP = 800;
}


..i tried editing it to where, (as like a vanilla/pot), when you equipped, it would heal you also, such as:


if (ItemId == 2100025)
{
ExtraHP = 800;
CurHP += 800;
}

but, that wouldn't work either, so ah shit, i don't know.
08/03/2009 02:50 CoAttack#12
well one.. you forgot to send the packets.
08/03/2009 02:52 TasteofChaos#13
lol, na, this is just a short part of the whole thing.
08/03/2009 03:00 CoAttack#14
okay dont listen to me.
08/03/2009 03:04 TasteofChaos#15
what am i missing then?