Blockland Forums > Modification Help

Change datablock help + static help

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

Placid:


--- Quote from: Derroith on August 17, 2011, 10:59:30 PM ---Syntax error in input.
Did as said, nothing appears to have changed.

--- End quote ---
shoot, sorry.
echo(findclientbyname("name").player.getDatablock().getName());


also, i'm not really that great at item scripts so i can't help you there, sorry.


for the static item, you should try to make it so that when they pick it up, it finds which slot the item is (for loop looping through the player's slots, getting the names of the weapons, checking if they're equal to your static item's name) then removing it from the slot. then, apply whatever happens when you use it. it seems a bit complicated, but trust me, once you get it it's pretty easy.

dUMBELLS:

it's player.setDataBlock("Name");

next time with problems like this, try dumping your player (localclientconnection.player) to find the right method.

Derroith:


--- Quote from: dUMBELLS on August 17, 2011, 11:46:43 PM ---it's player.setDataBlock("Name");

next time with problems like this, try dumping your player (localclientconnection.player) to find the right method.

--- End quote ---
Still doesnt work! wtf!

and what localclientconnection.player?

Placid:


--- Quote from: Derroith on August 18, 2011, 12:47:39 AM ---Still doesnt work! wtf!

and what localclientconnection.player?

--- End quote ---
localclientconnection = i believe host
so localclientconnection.player = host's player
i assume you know what dump is.

Headcrab Zombie:


--- Quote from: Derroith on August 18, 2011, 12:47:39 AM ---Still doesnt work! wtf!

and what localclientconnection.player?

--- End quote ---
Post the code you have now

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

Go to full version