Giving a Object to a Certain Player.

METALGod32
03 Jul 2006, 19:22
I Been Gone awhile and need some Assistance, can anyone tell me how would I, Give a Object to a Certain Player in a Multiplayer Game?, and make it so the Object is taken away from them when they Log off?

I Use to know but forgot the coding on how to.

Thank you

Arbutus
03 Jul 2006, 20:14
Write a command that checks if the recipient is another player (has property netplayer) and if so move the object to their inventory (room "player1" for the player with userid 1). For taking the object away, put a drop or move command the disconnect script.

Elexxorine
05 Jul 2006, 09:24
The 'give' command comes in the questnet lib thingy. And to take everything away when they log off:
disconnect {
for each object in <player%userid%> move <#quest.thing#; storeroom> }
There you go, easy!