Blockland Forums > Modification Help

Removing something from a scriptobject.

Pages: (1/2) > >>

otto-san:

This just makes me crash:

--- Code: --- %obj.edBlacklisted = 0;
%list = $EdBlacklist.listlist[%obj.getPlayerName()];
$EdBlacklist.list[$Edblacklist.listlist[%obj.getPlayerName()]] = "";
$EdBlacklist.listlist[%obj.getPlayerName()] = "";
for(%i = %list+1; %i = $EdBlacklist.listed; %i++)
{
$EdBlacklist.listlist[$EdBlacklist.list[%i-1]] = $EdBlacklist.listlist[$EdBlacklist.list[%i]];
$EdBlacklist.list[%i-1] = $EdBlacklist.list[%i];
}
--- End code ---

Found a way around it, but someone explain still please.

Chrono:

serverCmdUseTool(%client,%slot)

0 = first slot

Or do you mean when they left click with it?

otto-san:


--- Quote from: Chrono on June 08, 2011, 03:23:01 PM ---serverCmdUseTool(%client,%slot)

0 = first slot

Or do you mean when they left click with it?

--- End quote ---
left click.

Destiny/Zack0Wack0:

YourWeaponImage::onFire(%this,%player,%slot)

otto-san:


--- Quote from: Destiny/Zack0Wack0 on June 08, 2011, 07:29:31 PM ---YourWeaponImage::onFire(%this,%player,%slot)

--- End quote ---
oh duh


i completely bloody forgot

Pages: (1/2) > >>

Go to full version