my osd's used to work

Forum Archive - from http://theuniversal.net
Locked
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

my osd's used to work

Post by flametard »

i am having trouble getting my osd window to pop up on my planet. it's been inactice for a while but it used to work fine. is there any problem anyone can see with this thing?


Event("Buildingtriggered","48")
{
$numItems = Playerinventory("Princess")
$numItemsNeg = 0 - $numItems
*grantitem %player% $numItemsNeg Princess
*grantitem %player% $numItems royal horse
osdcreate(OSDLIST,"Embassy","Choose your Alligience!")
osdadditem(OSDTEXT, "", "Nations of Xebec")
osdadditem(OSDBUTTON, "1", "Norse")
osdadditem(OSDBUTTON, "2", "Natives")
osdadditem(OSDBUTTON, "3", "Masonic Empire")
osdadditem(OSDBUTTON, "4", "Asiatic")
osdadditem(OSDBUTTON, "5", "Persians")
osdadditem(OSDBUTTON, "6", "Atlantians")
osdadditem(OSDBUTTON, "7", "Nubians")
osdadditem(OSDBUTTON, "8", "Olmecs")
OSDSet("BlockEscape")
osdactivate()
*customsound %player% 15
*msg %player% Remember, return the princess to this embassy and you shall receive a royal horse as reward.
}
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

buildingtriggered ## was replaced with "AccessBuilding", "##"
User avatar
MasterNiCron
Posts: 582
Joined: Wed Feb 17, 2010 10:57 pm
Location: Frost

Post by MasterNiCron »

Event("AccessBuilding", "48") not
Event("Buildingtriggered","48")
also may want to add sleep(10) for it to work with login
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

Post by flametard »

my login script is too long to post here.
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

Post by flametard »

i changed the event name and the osd worked. i wonder why the osd doesnt pop up in my playerlogin script?
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

Post by flametard »

blaze was right, i had to add a sleep timer in the login script.
Locked