Wrestling Damage

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.

Moderator: POL Developer

Post Reply
qrak
Grandmaster Poster
Posts: 198
Joined: Sun Feb 05, 2006 4:35 pm

Wrestling Damage

Post 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

}
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am

Re: Wrestling Damage

Post 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!
qrak
Grandmaster Poster
Posts: 198
Joined: Sun Feb 05, 2006 4:35 pm

Re: Wrestling Damage

Post by qrak »

I'm not using status hook :/

EDIT: When i use wrestling with such damage i get POL crash.
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: Wrestling Damage

Post by Tomi »

Have you tried what exactly who.weapon returns in that situation ?
qrak
Grandmaster Poster
Posts: 198
Joined: Sun Feb 05, 2006 4:35 pm

Re: Wrestling Damage

Post 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
qrak
Grandmaster Poster
Posts: 198
Joined: Sun Feb 05, 2006 4:35 pm

Re: Wrestling Damage

Post 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

Post Reply