OSI Snow Globes

Got any custom JavaScript additions/tweaks you think other people would like to see? Post 'em here!
Post Reply
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

OSI Snow Globes

Post by dragon slayer »

this is two snow globes from two differant years :)
[snowglobedec2000]
{
get=base_item
id=0x0E2D
decay=1
weight=100
newbie
script=5041
}

[snowglobedec2001]
{
get=base_item
id=0x0E2D
decay=1
weight=100
newbie
script=5042
}
Now make a snowglobe2000.js
var snowglobe2000Names = new Array( "Britain", "Buccaneers Den", "Cove", "Delucia", "Empath Abbey",
                                  "Jhelom", "Magincia", "Minoc", "Moonglow", "Nujel’m", "Occlo", "Papua",
                                  "Serpent’s hold", "Skara Brae", "The Lycaeum", "Trinsic", "Vesper", "Wind",
                                  "Yew" );
                     
function onCreateDFN( objMade, objType )
{
   if( objType == 0 )
   {
      if( objMade.id = 0x0E2D )
      {
         var i = RandomNumber( 0, 19 );
         objMade.name = "A Snowy Scene of "+ snowglobe2000Names[i];
      }
   }
}
make a snowglobe2001.js
var snowglobe2001Names = new Array( "Ancient Citadel", "Blackthorne’s Castle", "City of Montor",
                                 "City of Mistas", "Exodus’ Lair", "Lake of Fire", "Lakeshire", "Pass on Karnaugh",
                                 "The Etheral Fortress", "Twin Oaks Tavern", "Chaos Shrine", "Shrine of Humility",
                                 "Shrine of Sacrifice", "Shrine of Compassion", "Shrine of Honor", "Shrine of Honesty",
                                 "Shrine of Spirituality", "Shrine of Justice", "Shrine of Valor" );
                     
function onCreateDFN( objMade, objType )
{
   if( objType == 0 )
   {
      if( objMade.id = 0x0E2D )
      {
         var i = RandomNumber( 0, 19 );
         objMade.name = "A Snowy Scene of "+ snowglobe2001Names[i];
      }
   }
}
Post Reply