Any1 check this is right?

Mu online season 21 - grand opening

Bromen

Dedicated Member
Dedicated Member
Mar 6, 2008
93
3
35
Manchester, UK
This is my first attempt at scripting so im not sure if its right or not. I cant get on to test it just yet but just wondering if it would work.

Thanks in advance.




; ===================================
; Npc Def NPC File : AngelicEnvoy
; AngelicEnvoy
; -----------------------------------
; Name: AngelicEnvoy
; Job: Angel
; Map No: 0122
; Pos X 23
; Pos Y 29
; File name: HeavenNPC
; Comment: Angelic Envoy for Heaven
;================================================= =
;
[@main]
#SAY
Greetings <$USERNAME>, I’m the Angel Vyrio, sent by our great God to the lands\
of Mir to spread the following of Heavenly ways.\
Gaining access to Heaven isn’t easy, I should tell you. \
I can send you on a journey to prove your worthy of standing before my Lord,\
if you succeed you will be allowed through our grand pearly gates.\
Should you fail, you will be exiled forever. \
<I‘ll risk it!/@next1>
[@next1]
#SAY
Well met <$USERNAME>, to begin the long and arduous journey you must prove to me you’re a good person,\
having qualities about yourself that my Lord would deem qualifying assets for Heaven. \
<I understand, what are the traits you seek?/@next2>
[@next2]
#SAY
I will test your abilities in the fields of Valour, Good Will, and Mercy.\
Valour will be given when you bring me a ZumaCap, ripped from the slain corpse\
of the Zumataurus, the WoomaQuestHorn of the Woomataurus, the Cape from \
the back of the BoneLord, the Spine of the BigCentipede, the wand of the \
MinotaurKing, the wing of the OmaKing, a vial of goo from the RedMoonEvil,\
The tail of the DarkDevil, the snout of the KingHog, and the Mace of the \
DevilsChild.
<I'll go get them!/@exit>

[@checkitems]
#IF
CheckItem ZumaCap 1
CheckItem WoomaQuestHorn 1
CheckItem BoneCape 1
CheckItem BugSpine 1
CheckItem MinotaurWand 1
CheckItem OmaKingWing 1
CheckItem VialOfGoo 1
CheckItem DevilsTail 1
CheckItem HogSnout 1
CheckItem DevilsMace 1
#ACT
Take ZumaCap 1
Take WoomaQuestHorn 1
Take BoneCape 1
Take BugSpine 1
Take MinotaurWand 1
Take OmaKingWing 1
Take VialOfGoo 1
Take DevilsTail 1
Take HogSnout 1
Take DevilsMace 1
#SAY
You have the items i requested? Very well done <$USERNAME>! Now, i must \
test your Good Will, and the kindness of your heart. \
<Okay, what do you request of me?/@next3>
#ELSESAY
You haven't proven your Valour....\
When these great beasts lay slain, you will..\

[@next3]
As you may know, the armies of the OmaKing you have slain are \
still attacking the Garrison in PastBichon,\
it would be a kind act if you were to help the General in subduing these\
onlaughts. Go and see him.\
<Okay ****breath/@close>
#ELSESAY
You havent proven your Kindness... \
When i get word that the Garrison at PastBichon is safe,\
You may proceed on your journey...> \
<Yo, my bad dawg! Back in a jiffy!/@exit>


/Advent
 
Last edited:

Dazz

LOMCN Veteran
Veteran
Apr 12, 2008
296
0
43
This is my first attempt at scripting so im not sure if its right or not. I cant get on to test it just yet but just wondering if it would work.

Thanks in advance.




Code:
; ===================================
; Npc Def NPC File : AngelicEnvoy
; AngelicEnvoy
; -----------------------------------
; Name: AngelicEnvoy
; Job: Angel
; Map No: 0122
; Pos X 23
; Pos Y 29
; File name: HeavenNPC
; Comment: Angelic Envoy for Heaven
;================================================= =
;
[@main]
#SAY
Greetings <$USERNAME>, I’m the Angel Vyrio, sent by our great God to the lands\
of Mir to spread the following of Heavenly ways.\
Gaining access to Heaven isn’t easy, I should tell you. \
I can send you on a journey to prove your worthy of standing before my Lord,\
if you succeed you will be allowed through our grand pearly gates.\
Should you fail, you will be exiled forever. \
<I‘ll risk it!/@next1>
 
[@next1]
#SAY
Well met <$USERNAME>, to begin the long and arduous journey you must prove to me you’re a good person,\
having qualities about yourself that my Lord would deem qualifying assets for Heaven. \
<I understand, what are the traits you seek?/@next2>
 
[@next2]
#SAY
I will test your abilities in the fields of Valour, Good Will, and Mercy.\
Valour will be given when you bring me a ZumaCap, ripped from the slain corpse\
of the Zumataurus, the WoomaQuestHorn of the Woomataurus, the Cape from \
the back of the BoneLord, the Spine of the BigCentipede, the wand of the \
MinotaurKing, the wing of the OmaKing, a vial of goo from the RedMoonEvil,\
The tail of the DarkDevil, the snout of the KingHog, and the Mace of the \
DevilsChild.
<I'll go get them!/@exit>
[COLOR=red]<I have them/@checkitems>[/COLOR] 
 
[@checkitems]
#IF
CheckItem ZumaCap 1
CheckItem WoomaQuestHorn 1
CheckItem BoneCape 1
CheckItem BugSpine 1
CheckItem MinotaurWand 1
CheckItem OmaKingWing 1
CheckItem VialOfGoo 1
CheckItem DevilsTail 1
CheckItem HogSnout 1
CheckItem DevilsMace 1
#ELSESAY
You haven't proven your Valour....\
When these great beasts lay slain, you will..\
#ACT
Take ZumaCap 1
Take WoomaQuestHorn 1
Take BoneCape 1
Take BugSpine 1
Take MinotaurWand 1
Take OmaKingWing 1
Take VialOfGoo 1
Take DevilsTail 1
Take HogSnout 1
Take DevilsMace 1
#SAY
You have the items i requested? Very well done <$USERNAME>! Now, i must \
test your Good Will, and the kindness of your heart. \
<Okay, what do you request of me?/@next3>
 
[@next3]
[COLOR=red]#SAY[/COLOR]
As you may know, the armies of the OmaKing you have slain are \
still attacking the Garrison in PastBichon,\
it would be a kind act if you were to help the General in subduing these\
onlaughts. Go and see him.\
<Okay ****breath/@close>
#ELSESAY
You havent proven your Kindness... \
When i get word that the Garrison at PastBichon is safe,\
You may proceed on your journey...> \
<Yo, my bad dawg! Back in a jiffy!/@exit>

/Advent

Pretty good mate :)
 
Upvote 0

Bromen

Dedicated Member
Dedicated Member
Mar 6, 2008
93
3
35
Manchester, UK
Aww ya bugger! Ah well atleast theyre stupid little things ive just overlooked and its not completely wrong :D.

Thanks :)

/Advent
 
Upvote 0

booom

Dedicated Member
Dedicated Member
May 14, 2003
218
17
94
sorry for stuipid quastions >.< but where this go in ? in the npc script?
; ===================================
; Npc Def NPC File : AngelicEnvoy
; AngelicEnvoy
; -----------------------------------
; Name: AngelicEnvoy
; Job: Angel
; Map No: 0122
; Pos X 23
; Pos Y 29
; File name: HeavenNPC
; Comment: Angelic Envoy for Heaven
;================================================= =
;
btw does npc scripts get made by NotePad ? and does it effect by any how the writing Format or Size?
 
Upvote 0

Bromen

Dedicated Member
Dedicated Member
Mar 6, 2008
93
3
35
Manchester, UK
Think most ppl use notepad. I tried it on word n got hyperlinks galore.
And that info is just for personal referance, doesnt actually affect anything ingame.

Could be wrong though.

/Advent
 
Upvote 0

JealY

LOMCN VIP
VIP
Nov 28, 2004
5,357
55
335
England
Like many other scripting languages, ; indicates a comment or a description.

Script (with corrections) looks ok.
 
Upvote 0