Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
nazradin
Apprentice


Joined: 23 Mar 2003
Posts: 114
Location: New Zealand

PostPosted: Sat May 17, 2003 7:20 pm   

script runing at startup problem
 

i have a travel script that has a subclass that is a message running script loop with a delay between inorder to reset the chance of getting a message from the NPC

when ever i start up before i even get to enter my accountname and password this trigger runs if i have the travel class enabled, if i disable the class it does not run but as soon as i enable it it starts running no mater where i am in game, It runs weather i have been using the script to run messaages or not ( i thought it might be the alarm with the delay )
it is very annoying can anyone see what might be causing this?

cheers nazradin

the troublesome trigger:

#TRIGGER {take this to the Alchemist Elantaran} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|s|e|s|s|go shop|give Elantaran|out|n|n|w|n|w|nw|go door|wealth|bankval_valc}}}


the script:

#CLASS {travel}
#BUTTON 83 {travelscripts off} {#T+ travelstuff} {travelscripts on} {#T- travelstuff} {} {1} {} {Size} {120} {20} {Pos} {1} {1118} {} {} {} {} "" {} {} {} {3}
#CLASS 0
#CLASS {travel|travelstuff}
#ALIAS orchard_val {movement = {cli wall|se|s|s|go path|e|n|ne|e|e|ne|go trail|se|go bridge|se|se|go Gate|s|w|s|s|s|s|s|s|e|s|e|e|e}}
#ALIAS bank_val {movement = e|e|e|n|e|n|n|n|n|n|n|w|n|w|w|go door|remove @container|sell @container|wear @container|out|w|w|go door|remove @gemcontainer|sell @gemcontainer|wear @gemcontainer|out|e|n|e|go door|go arch|bank2_val}
#ALIAS bank2_val {movement = wealth|deposit @coins|check balance|out|out|se|e|s|e|s|s|s|s|s|s|w|s|w|w|w}
#TRIGGER {is climbing the rope ladder and is currently } {#ALARM +30 {look ladder}}
#TRIGGER {The rope ladder is not being used by anyone at the moment.} {
#IF ("Dead Plateau, Rope Ladder") {ladder_zula}
#if ("Glo'antern Moor, Rope Ladder") {ladder_ropebridge}
}
#BUTTON 60 {PAUSE} {#T- traveldisable} {PAUSED} {#T+ traveldisable} {} {1} {} {Size} {130} {17} {Pos} {541} {1} {124} {12} {} {} "" {} {} {} {4}
.
.
many many more alias trigers and buttons
#CLASS 0
#CLASS {travel|travelstuff|traveldisable}
#ALARM {*1} {#IF (%numitems( @movement) AND (@rt = 0)) {
%item( @movement, 1)
#DELN movement 1
}}
#CLASS 0
#CLASS {travel|travelstuff|vaalormessages}
#ALIAS vaalormessages {movement = {stand|e|e|e|n|e|e|e|n|n|n|n|n|w|n|w|w|n|go build|go curtain|give Sassion|ask Sassion about job}}
#ALIAS vaalormessagesrest {#ALARM +300 {vaalormessages}}
#ALIAS bankval_valc {#alarm +1 {movement = {go arch|wealth|deposit @coins|check balance|out|out|se|e|s|e|s|s|s|s|s|s|w|s|w|w|w|sit|vaalormessagesrest}}}
#CLASS 0
#CLASS {travel|travelstuff|vaalormessages|vaalormessages_subfolder}
#ALIAS findthebard {
#temp {a red-haired elven bard} {give bard}
#alarm +1 {walkvaalor}
}
#ALIAS findtheacolyte {
#temp {white-robed acolyte} {give acolyte}
#alarm +1 {walkvaalor}
}
#ALIAS walkvaalor {movement = s|e|e|s|e|s|s|s|s|s|w|w|n|n|n|n|n|n|w|n|w|nw|w|w|sw|e|e|s|n|e|w|w|w|w|s|w|w|s|w|s|sw|s|se|s|n| n|n|n|n|e|e|s|s|s|s|s|w|w|e|e|e|s|e|se|e|s|n|e|ne|e|n|s|w|w|w|n|s|sit|vaalormessagesrest}
#TRIGGER {the guard at the Annatto Bridge.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain||out|s|e|s|s|s|s|s|s|w|s|go gate|se|give guard|nw|go gate|n|e|e|e|n|n|n|n|n|w|n|w|w|n|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {Coleesta at the Legendary Rest Inn} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|w|w|w|n|w|go inn|go door|give Coleesta|go door|out|e|s|e|e|e|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {Rouschall at the Legendary Rest Inn.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|w|w|w|n|w|go inn|give Rouschal|out|e|s|e|e|e|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {to the guard at the Vermilion Gate} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|go gate|give guard|go gate|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {take this to the guard at the Victory Gate.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|s|e|s|s|s|s|s|s|w|s|w|w|w|w|w|w|go gate|give guard|go gate|e|e|e|e|e|e|n|e|e|e|n|n|n|n|n|w|n|w|w|n|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {Phisk at the General Store.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|w|w|w|w|w|w|s|go shop|give Phisk|out|n|e|e|e|e|e|e|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {Areacne at the Gem Shop.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|w|w|w|w|go shop|give Areacne|out|e|e|e|e|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {take this to Ghaerdish at the Furrier.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|w|w|go shop|give Ghaerdish|out|e|e|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {to the Cleric Clentaran.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|s|e|s|e|e|s|s|go cottage|give Clentaran|out|n|n|w|w|n|w|n|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {take this to Aerhseth in the Weapon Shop.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|s|e|s|s|s|s|s|go shop|give Aerhseth|out|n|n|n|n|n|w|n|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {take this to the Alchemist Elantaran} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|s|e|s|s|go shop|give Elantaran|out|n|n|w|n|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {Now, take this to Gearchel in the Armory.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|s|e|s|s|s|s|s|s|w|s|w|w|w|w|w|w|go door|give Gearchel|out|e|e|e|e|e|e|n|e|n|n|n|n|n|n|w|n|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {take this to Ambra at the Instrument Shop.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|w|w|w|w|w|w|s|w|s|s|s|s|s|go shop|give Ambra|out|n|n|n|n|n|e|n|e|e|e|e|e|e|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {Malwith the Innkeeper.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|s|e|s|s|s|s|s|s|w|s|w|w|w|w|w|go inn|n|give Malwith|south|out|e|e|e|e|e|n|e|e|e|n|n|n|n|n|w|n|w|w|n| w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {Jeweler Tmareantha.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|s|e|s|s|s|s|s|s|w|s|go shop|give Tmareantha|out|n|e|n|n|n|n|n|n|w|n| w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {guard at the Amaranth Gate.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|w|w|w|w|w|w|go gate|give guard|go gate|e|e|e|e|e|e|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {Sweethen in the Bakery Shop.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|w|w|w|w|w|w|s|w|go shop|give Sweethen|out|e|n|e|e|e|e|e|e|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {Maraene at the Herbalist Shop.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|w|w|w|w|w|w|s|w|s|s|s|s|go shop|give Maraene|out|n|n|n|n|e|n|e|e|e|e|e|e| w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {Saphrie the Healer.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|w|w|w|w|w|w|s|w|s|s|s|s|go shop|go door|give Saphrie|out|out|n|n|n|n|e|n|e|e|e|e|e|e|w|nw|go door|wealth|bankval_valc}}}
#TRIGGER {to the bard.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|findthebard}}}
#TRIGGER {to the acolyte.} {#if (%gsl( p) = "Delivery Service, Back Room") {#VAR movement {go curtain|out|findtheacolyte}}}
#CLASS 0
Reply with quote
nazradin
Apprentice


Joined: 23 Mar 2003
Posts: 114
Location: New Zealand

PostPosted: Sun May 18, 2003 9:33 pm   
 
found the problem somehow a default value was assigned to movement


nazradin
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net