Giving a Object to a Certain Player.

METALGod32
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
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
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!

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums