Character...tried to drop item..., but had not gotten an item.

Here you can post threads on the development of the current beta releases of the core (099)

Moderator: POL Developer

Harley
Forum Regular
Posts: 307
Joined: Sat Mar 18, 2006 1:41 am
Location: Germany

Re: Character...tried to drop item..., but had not gotten an item.

Post by Harley » Fri Apr 07, 2017 2:33 pm

Skinny, I'm not tested with 0xFFF.... yet.
Tomorrow I'll test it with players, 'cause I don't know how to repeat their flood.

And second packet hook I'll test too.
I'll write all results! Thanks for your attention!

*Updated in 20 minutes*

Guys, tell me please, can packet hook start some script?
I have an idea to make kicklist system and share it.
Fox example, after theese lines:

Code: Select all

	var badrange := GetObjProperty(who, "BadRange");
	if (!badrange)
		SetObjProperty(who, "BadRange", 1);
		return 0;
	elseif(badrange > 5)
		var bad_rng_count := GetObjProperty( who, "BadRangeCount" );
		if( !bad_rng_count )
			SetObjProperty(who, "BadRangeCount", 1);
		elseif( bad_rng_count > 10 )
Starts this line:
Start_Script(":kicklist:ext/kicking", { who, bad_rng_count });

Question is, can we add this into packethook?

With best regards!

User avatar
CWO
POL Expert
Posts: 1126
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA
Contact:

Re: Character...tried to drop item..., but had not gotten an item.

Post by CWO » Sat Apr 08, 2017 1:25 am

Yes you can start_script from a packethook but I believe the packethook will complete before the script is allowed to run since packethooks always run critical.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests