Blockland Forums > Modification Help

Making Pickupable Gold

Pages: << < (2/3) > >>

CityRPG:


--- Quote from: jes00 on January 18, 2012, 12:26:51 PM ---Why?

--- End quote ---
Because unless you want fractions of a gold coin in the currency you would want to round it up or down with mCeil or mFloor

jes00:


--- Quote from: CityRPG on January 18, 2012, 12:31:01 PM ---Because unless you want fractions of a gold coin in the currency you would want to round it up or down with mCeil or mFloor

--- End quote ---
How? I've never used mCeil or mFloor.

Also I was talking about the other thing he said.

Swollow:


--- Quote from: jes00 on January 18, 2012, 12:35:55 PM ---How? I've never used mCeil or mFloor.

Also I was talking about the other thing he said.

--- End quote ---
because then the gold bar will appear at like position 0 0 0

jes00:


--- Quote from: swollow on January 18, 2012, 12:38:18 PM ---because then the gold bar will appear at like position 0 0 0

--- End quote ---
But where would I do position = %client.player.getPosition();?

Swollow:


--- Code: ---%pos = %client.player.getPosition();
%GoldBar = new Item()
{
position = %pos;
datablock = GoldBarItem;
canPickup = false;
};
--- End code ---


Pages: << < (2/3) > >>

Go to full version