Author Topic: Event: SetItem / SetInventory (V2)  (Read 11615 times)

Welcome. Seems this will be really handy for those class minigames.

:O
You are awesome.

This is exactly what i needed
This cookie monster means thanks (me not noob)
 :cookieMonster:

You exploded my mind.



A TF2 Server will love this.


So much for V2, Zack0Wack0 did what I planned to do while I was sleeping.
Well, enjoy these events anyway.

If the check returns it IS "-1," and I'd use MsgDropItem, what would I tell it to drop?
I tested "%player.tool[%slot].getID()" but it returned a syntax error.
Just use slot.
Ex. messageClient(%client,'',"",%slot);
Also, at the top, I noticed %obj, but then you went and did %player = %client.player;
That was not necissary. Just change the
Player::SetInventory(%obj, %item, %slot, %client)
to
Player::SetInventory(%player, %item, %slot, %client)
and remove
%player = %client.player;

In a little while I'll be updating the first post with the fixed events.
SetItem to "NONE" will also remove any item being held (not drop, but remove).

When downloading V2, just overwrite your old file.

Welll, I had finished fixing the event glitches over an hour ago, but I've been waiting for my RTB verification e-mail so I can put it up there.

Feel free to use the WHFF mirror and then use the sync feature (if you have RTB) to update the events to their RTB versions once I upload them there.

RTB mirror added.
Please press the "Sync" button found in "yourMODs" if you have RTB.
« Last Edit: November 04, 2008, 09:49:06 AM by Truce »