program christmasgift

For questions relating to POL scripting (not necessarily related to WoD)

Moderators: Siobhan, Sebastian, Drocket

program christmasgift

Postby fitzchivary on Fri Nov 14, 2003 3:36 am

how do i get this running drocket i cant seem to figure out how to get the gifts working so players can pick a gift
fitzchivary
Jr. Oldbie
 
Posts: 208
Joined: Sat Mar 15, 2003 4:05 am

Postby fitzchivary on Fri Nov 14, 2003 4:37 am

some pics of the new houses and some new monsters i added well new animations i riped :>


http://dreamwarriors.homestead.com/Anci ... dpics.html
fitzchivary
Jr. Oldbie
 
Posts: 208
Joined: Sat Mar 15, 2003 4:05 am

Postby 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
Drocket
Site Admin
 
Posts: 820
Joined: Mon Oct 07, 2002 2:54 am


Return to Scripting Forum

Who is online

Users browsing this forum: No registered users and 0 guests

cron