<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> @if?!Authenticate@ @AddFile?/grinder/failedlogin.cmvp@ @else@ @if?!CheckAuthCode?AUTH_CMDQUESTS=true@ @AddFile?/grinder/nopriv.cmvp@ @else@ <html> <head> <link rel="grinder icon" href="/images/grinder.ico" > <title>Quest Manager</title> <script language=JavaScript> <!-- function openUp(named) { var strFeatures="top=200,left=50,scrollbars=yes,resizeable=no,height=400,width=650,alwaysRaised=yes,dependent=yes"; var w2=window.open("/ahelp.cmvp?HELPTOPIC="+named,"Help",strFeatures,false); } function GoForIt() { @if?!CheckReqParm?QUEST=@ if(confirm('Modify this quest script?')) { document.QUEST.FUNCTION.value='MODIFY'; document.QUEST.submit(); } @else@ if(confirm('Create this quest?')) { document.QUEST.FUNCTION.value='CREATE'; document.QUEST.submit(); } @endif@ } //--> </script> </head> <body BGCOLOR=BLACK> <FORM ACCEPT-CHARSET="UTF-8" NAME=QUEST TARGET=_top METHOD=POST ACTION="quest.cmvp"> <INPUT TYPE=HIDDEN NAME=AUTH VALUE="@Authenticate?AUTH@"> <INPUT TYPE=HIDDEN NAME=QUEST VALUE="@RequestParameter?QUEST@"> <INPUT TYPE=HIDDEN NAME=FUNCTION VALUE=""> @if?!CheckReqParm?RAWTEXT=@ @if?CheckReqParm?FUNCTION=CREATE@ <FONT COLOR=RED><B>@QuestMgr?CREATE@</B></FONT> @else@ @if?CheckReqParm?FUNCTION=MODIFY@ <FONT COLOR=RED><B>@QuestMgr?MODIFY&REDIRECT@</B></FONT> @endif@ @endif@ @endif@ <P ALIGN=RIGHT><A href="javascript:openUp('QUESTS');"><FONT COLOR=PINK><I>help</I></FONT></A></P> <BR> @if?!CheckReqParm?QUEST=@<TEXTAREA ROWS=25 COLS=85 NAME=RAWTEXT>@QuestData?RAWTEXT&REDIRECT@</TEXTAREA> @else@ <TEXTAREA ROWS=25 COLS=85 NAME=RAWTEXT> set name MyQuest # Set the quest name set duration 450 # The duration of the quest is 30 minutes (450 ticks). # The scripts on the mobs will do the rest... # Some Sample Commands below: Use help for more! # #set wait 200 #set interval 25 # For auto-quests: wait about 15 mins between quests #set area Midgaard # inform the quest that it occurs in Midgaard #set mobtype ShopKeeper # load up any mob from the above area of type shopkeeper. # This command will set a room! #give script LOAD=quests/robbed/shopkeeper.script # load the above behavior into the last mob # (in this case, the shopkeeper) #set locale CityStreet # find any locale in Midgaard of type CityStreet #set mob "the thief" # load up any mob from area with that name. # Since a room was set above, this will move the mob into # the room (locale CityStreet) #give script "LOAD=quests/robbed/thief.script" # load the above behavior into the last mob # (in this case, the thief) </TEXTAREA> @endif@ <BR> <TABLE WIDTH=100% BORDER=0> <TR><TD ALIGN=CENTER WIDTH=50%> <INPUT TYPE=BUTTON NAME=Submit VALUE="Submit" ONCLICK="GoForIt();"> </TD> <TD WIDTH=50% ALIGN=CENTER> <INPUT TYPE=BUTTON NAME=Close VALUE="Close" ONCLICK="window.close();"> </TD> </TR> </TABLE> </FORM> <SCRIPT> <!-- function sizing() { document.QUEST.RAWTEXT.style.width=document.body.clientWidth-47; document.QUEST.RAWTEXT.style.height=document.body.clientHeight-195; } window.onresize = sizing; --> </SCRIPT> </BODY> </HTML> @endif@ @endif@