Aegis Support Board: HELP! Script Won't Load! - Aegis Support Board

Jump to content

ASB News! ASB 5.0 Beta V2 has now been released!. See here for more Info.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

HELP! Script Won't Load! Can you please help fix it

#1 User is offline   Mid-Knight 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 73
  • Joined: 25-June 04

Posted 25 October 2007 - 05:45 PM

OK I really need some help from this you guys.....if you can please go over my script and see whats wrong with it...I can't seem to figure out why it's not loading from the Zone Server, please help fix it....

I think it might be the Color code I place in....
Then again maybe my Endifs are wrong......I'm not sure Please help!

npc "prt_fild08" "Prize" HIDDEN_NPC 104 95 4 4 5
	OnInit:
		enablearena
	return
	OnStartArena:
		disablenpc "Prize"
		cmdothernpc "summon_1" "callmymob"
	return
// --------------- method 1 ---------------
npc "prt_fild08" "summon_1" HIDDEN_NPC 104 95 4 4 5
	OnCommand: "callmymob"
		resetmymob
		InitTimer
		broadcastinmap "The Hidden Event will now start!"
	OnTimer: 1000
		broadcastinmap "The monsters will be spawned in 5 seconds."
	return
	OnTimer: 2000
		broadcastinmap "You only have 1 minute for this test."
	return
	OnTimer: 3000
		broadcastinmap "So be prepared to fight."
	return
	OnTimer: 6000
		broadcastinmap "FIGHT!"
	return
	OnTimer: 60000
		stoptimer
	return
InitTimer
broadcastinmap "Wait."
return
	OnTimer: 1000
		broadcastinmap "The Hunt Shall Go On!"
	return
	OnTimer: 5000
		stoptimer
		enablenpc "Prize"
	return
callmonster "prt_fild08" PORING "Poring" 100 100
callmonster "prt_fild08" G_SMOKIE "Smokie" 100 101
callmonster "prt_fild08" G_SMOKIE "Smokie" 100 102
callmonster "prt_fild08" G_SMOKIE "Smokie" 100 103
callmonster "prt_fild08" G_SMOKIE "Smokie" 100 104
callmonster "prt_fild08" G_SMOKIE "Smokie" 100 105
//summon part
return
	OnMyMobDead:
		if npcv "summon_1" [VAR_MYMOBCOUNT] < 1
			broadcastinmap "Clear."
			stoptimer
		var question = rand 1 4
		dialog "[Prize]"
		dialog "Human that lives in this world.."
		dialog "Listen to my words.."
		dialog "Please remember these words as Digit Numbers:"
		wait
		dialog "[Prize]"
		dialog "^FF0000T|en Phive."
		dialog "^4040FFPhive O.N.E."
		dialog "^40FF40O.N.e.T|en"
		dialog "^FF0000T|en Phive O.N.E.^000000"
		wait
		if question == 1
			var oneline = "105"
			dialog "[Prize]"
			dialog "Let me now test you!"
			dialog "Write out the first line,"
			dialog "as a 3 digit Number, now!"
			wait
			dlgwritestr
			if inputstr == oneline
				dialog "[Prize]"
				dialog "And as a good listener,"
				dialog "this is your gift."
				wait
				getitem Piano_Keyboard 1
				dialog "[Prize]"
				dialog "Thank you for your time."
				close
				return
			else
				dialog "[Prize]"
				dialog "Uncalled for, you didn't answer it correctly!"
				dialog "So judgment will be given."
				wait
		changepallete 1 11
		moveto "sec_pri" 23 66
		close
enablenpc "Prize"
	endif
				return
		endif
		if question == 2
			var oneline = "51"
			dialog "[Prize]"
			dialog "Let me test you!"
			dialog "Write out the second line,"
			dialog "as a 2 digit Number, now!"
			wait
			dlgwritestr
			if inputstr == oneline
				dialog "[Prize]"
				dialog "And as a good listener,"
				dialog "this is your gift."
				wait
				getitem Piano_Keyboard 1
				dialog "[Prize]"
				dialog "Thank you for your time."
				close
				return
			else
				dialog "[Prize]"
				dialog "Uncalled for, you didn't answer it correctly!"
				dialog "So judgment will be given."
				wait
		changepallete 1 11
		moveto "sec_pri" 23 66
		close
enablenpc "Prize"
	endif
				return
			endif
		if question == 3
			var oneline = "010"
			dialog "[Prize]"
			dialog "Let me test you!"
			dialog "Write out the third line,"
			dialog "as a 3 digit Number, now!"
			wait
			dlgwritestr
			if inputstr == oneline
				dialog "[Prize]"
				dialog "And as a good listener,"
				dialog "this is your gift."
				wait
				getitem Piano_Keyboard 1
				dialog "[Prize]"
				dialog "Thank you for your time."
				close
				return
			else
				dialog "[Prize]"
				dialog "Uncalled for, you didn't answer it correctly!"
				dialog "So judgment will be given."
				wait
		changepallete 1 11
		moveto "sec_pri" 23 66
		close
enablenpc "Prize"
	endif
				return
		endif
		if question == 4
			var oneline = "1051"
			dialog "[Prize]"
			dialog "Let me test you!"
			dialog "Write out the forth line,"
			dialog "as a 4 digit Number, now!"
			wait
			dlgwritestr
			if inputstr == oneline
				dialog "[Prize]"
				dialog "And as a good listener,"
				dialog "this is your gift."
				wait
				getitem Piano_Keyboard 1
				dialog "[Prize]"
				dialog "Thank you for your time."
				close
				return
			else
				dialog "[Prize]"
				dialog "Uncalled for, you didn't answer it correctly!"
				dialog "So judgment will be given,"
				wait
		changepallete 1 11
		moveto "sec_pri" 23 66
		close
enablenpc "Prize"
	endif
	return

0

#2 User is offline   Kasuha 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 195
  • Joined: 08-February 05

Posted 26 October 2007 - 09:14 PM

There is a "return" command missing at the end of OnCommand trigger and and "endif - endif - return" sequence at the end of the script.

The "callmonster" commands are unreachable, too - maybe you'd want to move them to another place or remove the "return" command preceding them.

Note that OnMyMobDead trigger is invoked for each killed monster, not after all of them are killed.

I am also unsure if you can afford dialogs in the OnMyMobDead trigger, but you'll find out yourself.

This post has been edited by Kasuha: 26 October 2007 - 09:24 PM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users