Page 1 of 1

Wrestling Damage

Posted: Fri Mar 07, 2014 11:00 pm
by qrak
POL99 latest beta

Can anybody explain to me this wrestling damage?
Image

http://monar.no-ip.biz/~qrak/wtf.jpg

No temp mods, normal str. When i equip other stuff i get proper dmg. Here is itemdesc.cfg:

Code: Select all

Weapon 0x1F020
{
   	//MainStuff
	Name		Intrinsic Weapon
	Name		Wrestling
	Name		Fist
	Desc		intrinsic weapon
	Graphic		0x0f51

	//WeaponInfo
	Speed           30
	Attribute	Wrestling
	Anim		0x9
	Damage		1d3
	HitSound	0x13E
	MissSound	0x234
	MaxHP		1

	//Booleans
	SaveOnExit	0

}

Re: Wrestling Damage

Posted: Wed Mar 12, 2014 12:45 pm
by Harley
In my server, for this responsible is packet StatusHook from Distro099
there are
weapondesc.MinDamage
&
weapondesc.MaxDamage

Shows your weapon damage!
See StatusHook, if u use it!

Re: Wrestling Damage

Posted: Wed Mar 12, 2014 2:04 pm
by qrak
I'm not using status hook :/

EDIT: When i use wrestling with such damage i get POL crash.

Re: Wrestling Damage

Posted: Thu Mar 13, 2014 1:51 am
by Tomi
Have you tried what exactly who.weapon returns in that situation ?

Re: Wrestling Damage

Posted: Thu Mar 13, 2014 2:01 am
by qrak

Code: Select all

print(who.weapon.desc);
Shows "Death Robe". How it's possible that robe changed layer to weapon layer?

EDIT: I didn't define MaxTileId in pol.cfg for extobj.cfg. Maybe that was the problem, ran uoconvert. Works for now, still testing.

EDIT2: Nope, thats not MaxTileId

Re: Wrestling Damage

Posted: Tue Mar 18, 2014 1:49 pm
by qrak
Fixed by adding these lines in equip.src:

Code: Select all

if(!who.weapon.isa(POLCLASS_WEAPON))
 	var wrestl := CreateItemInBackPack(who, 0x1F020, 1);
	EquipItem(who, wrestl);
	return 0;
endif