by Drocket on Sun Nov 16, 2003 7:37 am
Generally, you'd want to create an item in the player's backpack that is assigned that script. The past couple of years now, I've used the christmas tree deed object with its graphic changed to that of a box (usually I make 2, one red and one green, so everyone gets 2 presents.)
A general outline of the code you'd add to /scripts/misc/logon.src would be something like: (Untested code, just to give you an idea)
if (!GetAccountProperty (character.acctname, "christmas_gift_2003"))
var present := CreateItemInContainer (character.backpack, 0xB010, 1);
if (!present)
return;
endif
present.graphic := //something
present.color := //something
present.name := "a Christmas present";
present.usescript := ":drocket:christmasgift";
SetAccountProperty (character.acctname, "christmas_gift_2003", 1);
endif