first time try.. Help with Code

Mu online season 21 - grand opening

Shadowninja

Dedicated Member
Dedicated Member
Aug 13, 2004
40
0
32
ok i did this in C:\mirserver\Mir200\Envir\Npc_def to the town teleport readme files...
[@main]
#IF
checkpkpoint 2
#SAY
I will never teleport such an evil person as you!\ \
<Exit/@exit>\
#ELSEACT
goto @main-1

[@main-1]
Welcome to my teleport service.\
Every teleport will cost you 10k in gold.\
Where would u like to go?\ \
<Bichon Wall/@bwmove> <BorderTown/@brdmove> <GingkoTreeValley/@ginmove>\
<SerpentValley/@svmove> <MudWall/@mwmove> <WoomyonWall/@wwmove>\
<Sabuk Wall/@swmove>\
<Cancel/@exit>\


[@bwmove]
#IF
checkgold 10000
#ACT
take gold 10000
mapmove 0 333 268
break
#ELSESAY
You Dont Have enough gold to use my Service!\
Be gone, don't waste my time again!\ \
<Exit/@exit>\

[@brdmove]
#IF
checkgold 10000
#ACT
take gold 10000
mapmove 0 288 615
break
#ELSESAY
You Dont Have enough gold to use my Service!\
Be gone, don't waste my time again!\ \
<Exit/@exit>\


[@ginmove]
#IF
checkgold 10000
#ACT
take gold 10000
mapmove 0 634 612
break
#ELSESAY
You Dont Have enough gold to use my Service!\
Be gone, don't waste my time again!\ \
<Exit/@exit>\

[@svmove]
#IF
checkgold 10000
#ACT
take gold 10000
mapmove 2 504 484
break
#ELSESAY
You Dont Have enough gold to use my Service!\
Be gone, don't waste my time again!\ \
<Exit/@exit>\

[@mwmove]
#IF
checkgold 10000
#ACT
take gold 10000
mapmove 3 330 330
break
#ELSESAY
You Dont Have enough gold to use my Service!\
Be gone, don't waste my time again!\ \
<Exit/@exit>\

[@wwmove]
#IF
checkgold 10000
#ACT
take gold 10000
mapmove 11 177 324
break
#ELSESAY
You Dont Have enough gold to use my Service!\
Be gone, don't waste my time again!\ \
<Exit/@exit>\

[@swmove]
#IF
checkgold 10000
#ACT
take gold 10000
mapmove 3 673 331
break
#ELSESAY
You Dont Have enough gold to use my Service!\
Be gone, don't waste my time again!\ \
<Exit/@exit>\





It looks normal but ive added Sabuk wall, i tried ingame but it didn't work. how come?
 

sparx14

Guest
hmmm that script looks ok... make sure the co-ords are correct is all i can think of
 

Shadowninja

Dedicated Member
Dedicated Member
Aug 13, 2004
40
0
32
O np all, server maker did do it right heh :P
It works ok, i think i did quite good for a first try... edited gold to 0 also

Now... how do i add a shop and repair in? (normal) also away of selling ANYTHING (on the same npc).

On another note, even tho my mates maknig the server, if he adds a monster can i make the drop list?
 

Xypher

LOMCN Senior Member
Veteran
May 4, 2003
419
0
93
Dunno Posts:4000000
Code:
;NPC Created By ZippoFlame Useing Solitudes NPC Editor V3
%1
+5
+6
+10
+11
+15
+19
+20
+21
+22
+23
+24
+26

[@main]
#IF
checkpkpoint 2
#ACT
goto @pass1
#ELSESAY
Nice try, better luck next time \ \
<Close/@exit>

[@pass1]
#IF
checkpkpoint 2
#SAY
Nice try, better luck next time \ \
<Close/@exit>
#ELSESAY
Hello <$USERNAME> what would you like to do.  \ \
 <Buy/@buy> Items <Buy/@books> Books\
 <Special repair/@s_repair> Anything\
 <Teleport/@tele> to another area, <Exchange/@goldbar> GoldBar into Gold\ \
 <Upgrade Weapon/@upgrade> Or <Get Back Upgraded Weapon/@getbackupgnow>\
 <HairCut/@hc> Also <Name Colour/@nc>
 <News/@news> And <GM's/@gm>

[@goldbar]
#IF
checkitem GoldBar 1
#ACT
take GoldBar 1
give Gold 1000000
#ELSESAY
You have no GoldBar to exchange!\ \ \

<Exit/@exit>

[@buy]
Please select the item you want to buy\ \ \
 <Back/@main>

[@s_repair]
Would you like to repair your items ?\ \
 <Back/@main>

[~@s_repair]
Your item seems to be repaired fine.\ \
 <Back/@main>

[@qweapon]
The weapon bought from this store has some capacity limit,\
but weapons aquired from monsters sometimes have special stats.\
If you bring that special weapon to us we'll buy it at a higher price.\
By the way, don't forget that the weapon price differs with its stats\
Usually the higher the durability the higher the selling price.\
 <Back/@main>
[@storage]
What item do you want to store ?\ \ \
 <Back/@main>

[@getback]
Please choose from the list what you want to take back. \ \ \
 <Back/@main>

[@upgrade]
I can upgrade Weapons for you for a small fee of <$UPGRADEWEAPONFEE>.\
To make an Upgrade you need <BlackOre/@Biron>, <Jewelery/@Etc>,
<Weapon/@Weapon>, and <Gold/@Gold>\
Do you have these ready for me?\ \
 <Confirm Upgrade/@confirmupgrade>\
 <Cancel Upgrade/@main>\

[@Biron]
BlackOre is a strong metal used for making weapons.\
BlackOre can be obtained from the mines the higher \
the purity, the better chance of a good upgrade\
My eyesight is poor, so i will take all BlackOre \
that is in your Bag \ \
<Back/@upgrade>

[@Etc]
Jewelery is items such as Necklaces, Bracelets and \
Rings. The higher level needed to wear, the better\
the chance of the refine working. My eyesight is not \
very good, so i will take all jewelery from your bag \ \
<Back/@upgrade>

[@Weapon]
The weapon i will use is the weapon that is in your hand at \
the time of the request.\ \
 <Back/@upgrade>

[@Gold]
I can't upgrade your weapon for free. As my work is of\
such a high standard i charge <$UPGRADEWEAPONFEE> per\
upgrade.\ \
<Back/@upgrade>

[@confirmupgrade]
I will take your <$USERWEAPON> from you to refine.\
My eysight isn't very good so I will take \
all the BlackOre and Jewelery in your bag.\
If you do have items you do not want included you\
must store them now\ \
<Upgrade Now/@upgradenow>\
<Cancel Upgrade/@main>\


[~@upgradenow_ok]
completed..\ \
<Get back weapon now/@getbackupgnow>\
<Collect weapon later/@main>

[~@upgradenow_ing]
I am already working on an item\
Come back later...\ \
<Back/@main>\

[~@upgradenow_fail]
Hey <$USERNAME>. Are you trying to confuse me?\
You are missing one or more of the vital ingredients\
Check you are wearing a weapon, have the BlackOre, Jewelery\
and most importantly the money.\
Then try again\
<Back/@main>\

[~@getbackupgnow_ok]
Done\
<Exit/@exit>\

[@Success]
I can't guarrantee successfull refining each and every time.\
You Will need to check Your self to see if it worked.\ \
<Exit/@exit>\

[~@getbackupgnow_ing]
The upgrade is not finished yet, come back later!\ \
<Main/@main>\

[~@getbackupgnow_fail]
If You gave me a weapon long ago, you can forget about it now!\
You should have come back sooner!\ \
<Main/@main>\

[@tele]
Would you like to tele to another area?\ 
I will suply you with a TownTeleport to get back with  \ \
<Leveling/@level> Or <Towns/@towns>\
<More/@mla> Leveling Areas\
Also <Other Leveling Areas/@ola>

[@hc]
Welcome <$USERNAME>!\
Only 20000 for a haircut!\ \ \
 <Change Hair/@CheckGold>\ \
 <Exit/@exit>

[@CheckGold]
#IF
check gold 20000
#ACT
goto @ChangHair
#ELSESAY
My scissors are made of gold not paper!\ \
 <Exit/@exit>

[@ChangHair]
#IF
gender man
#ACT
goto @ChangHairMan
#ELSEACT
goto @ChangHairWoman

[@ChangHairMan]
Tell me what type you want!\ \
 <Bald/@hair0> <Handsome/@hair1>\ \
 <Exit/@exit>

[@ChangHairWoman]
Tell me what type you want!\ \
 <ShortCut/@hair1> <LongHair/@hair0>\ \
 <Exit/@exit>

[@hair0]
#ACT
marry Hair 0
#SAY
Wow you look sexy!\ \
 <Exit/@exit>

[@hair1]
#ACT
marry Hair 1
#SAY
You look so good, Want dinner?\ \
 <Exit/@exit>

[@nc]
This service is free! Pick your colour!\ \

<Black/@doblack> <White/@dowhite> <Light Grey/@dolightgrey>\
<Dark Grey/@dodarkgrey> <Light Blue/@dolightblue> <Dark blue/@dodarkblue>\
<Light Purple/@dolightpurple> <Dark Purple/@dodarkpurple> <Light Red/@dolightred>\ <Dark Red/@dodarkred> <Yellow/@doyellow>\
<Light Pink/@dolightpink> <Dark Pink/@dodarkpink> <Light Green/@dolightgreen>\ <Dark Green/@dodarkgreen> <Karki/@dokarki>\
<Light Brown/@dolightbrown> <Dark Brown/@dodarkbrown>\
<Light Orange/@dolightorange> <Dark Orange/@dodarkorange>\
<Exit/@exit>


[@doblack]
#IF
#ACT
marry nameColor -0
goto @doend

[@dowhite]
#IF
#ACT
marry nameColor -1
goto @doend

[@dolightblue]
#IF
#ACT
marry nameColor -2
goto @doend

[@dolightpurple]
#IF
#ACT
marry nameColor -3
goto @doend

[@dodarkblue]
#IF
#ACT
marry nameColor -4
goto @doend

[@doyellow]
#IF
#ACT
marry nameColor -5
goto @doend

[@dolightgreen]
#IF
#ACT
marry nameColor -6
goto @doend

[@dolightred]
#IF
#ACT
marry nameColor -7
goto @doend

[@dodarkgrey]
#IF
#ACT
marry nameColor -8
goto @doend

[@dolightgrey]
#IF
#ACT
marry nameColor -9
goto @doend

[@dolightorange]
#IF
#ACT
marry nameColor -13
goto @doend

[@dogmcolor]
#IF
#ACT
marry nameColor -161
#SAY
Your Name Color has changed.\ \

<Exit/@exit>

[@dodarkorange]
#IF
#ACT
marry nameColor -188
goto @doend

[@dolightbrown]
#IF
#ACT
marry nameColor -222
goto @doend

[@dodarkbrown]
#IF
#ACT
marry nameColor -223
goto @doend

[@dodarkred]
#IF
#ACT
marry nameColor -231
goto @doend

[@dolightpink]
#IF
#ACT
marry nameColor -225
goto @doend

[@dodarkpink]
#IF
#ACT
marry nameColor -237
goto @doend

[@dodarkpurple]
#IF
#ACT
marry nameColor -251
goto @doend

[@dokarki]
#IF
#ACT
marry nameColor -253
goto @doend

[@dodarkgreen]
#IF
#ACT
marry nameColor -254
goto @doend


<Exit/@exit>

[@doend]
#IF
#SAY
Nice choice! Come back anytime!\ \

<Change again/@ChangeNameColour>\
<Exit/@exit>

[@ChangeNameColour]
#ACT
goto @main

[@gm]
#SAY
Current GM's <Gm Name Here/@gm1> And <Gm Name Here/@gm2>

[@gm1]
#SAY
GM Name\
Age:\
Sex:\
Contact: Via Pm Or [email][email protected][/email]\
Forum Name: Your Forum Name Here\
 <Exit/@exit>

[@gm2]
#SAY
GM Name\
Age:\
Sex:\
Contact: Via Pm Or [email][email protected][/email]\
Forum Name: Your Forum Name Here\
 <Exit/@exit>

[@news]
#SAY
Server has just been launched! We hope you like it\
Patchs avalable at: [url]www.yourweb.co.uk[/url] Etc.\
Forum Url: [url]http://forums.freehost.co.uk[/url] Etc.\
<Exit/@exit>

[goods]
;Name
;Add your items here

Look through that and figure out a way to do it :P .. quite simple acutally :D
 

Tahriel

LOMCN Veteran
Veteran
Jun 1, 2004
320
0
93
[@main]
#IF
checkpkpoint 2
#SAY
I will never teleport such an evil person as you!\ \
<Exit/@exit>\
#ELSEACT
goto @main-1

that shouldnt be elseact it should be ACT