Just a Quick one.

Mu online season 21 - grand opening

Legend Of Mir 2

Dedicated Member
Dedicated Member
Nov 8, 2009
104
0
43
What wroung with this when i have 5 checken & 5 meat in my bag it still go's to the #ELSESAY



[@t1s]
#IF
checkitem Checken 5
checkitem Meat 5
#ACT
take Chicken 5
take Meat 5
give DeerHorn
#SAY
-= Legend Of Mir X =-\ \
Wow, thanks now You can start the 2nd part of your Training.\ \
<Goodbye/@exit>
#ELSESAY
-= Legend Of Mir X =-\ \
You don't have enough Chicken or Meat you need to\
bring me 5 Chicken & 5 Meat!\ \
<Goodbye/@exit>
 

betsy

Dedicated Member
Dedicated Member
May 25, 2008
229
0
43
check your spelling, and make sure its all the same

[@t1s]
#IF
checkitem Checken 5
checkitem Meat 5
#ACT
take Chicken 5
take Meat 5
give DeerHorn
#SAY
-= Legend Of Mir X =-\ \
Wow, thanks now You can start the 2nd part of your Training.\ \
<Goodbye/@exit>
#ELSESAY
-= Legend Of Mir X =-\ \
You don't have enough Chicken or Meat you need to\
bring me 5 Chicken & 5 Meat!\ \
<Goodbye/@exit>
 
Upvote 0

Tallos

Dedicated Member
Dedicated Member
Apr 7, 2009
141
0
42
What wroung with this when i have 5 checken & 5 meat in my bag it still go's to the #ELSESAY



[@t1s]
#IF
checkitem Checken 5
checkitem Meat 5
#ACT
take Chicken 5
take Meat 5
give DeerHorn
#SAY
-= Legend Of Mir X =-\ \
Wow, thanks now You can start the 2nd part of your Training.\ \
<Goodbye/@exit>
#ELSESAY
-= Legend Of Mir X =-\ \
You don't have enough Chicken or Meat you need to\
bring me 5 Chicken & 5 Meat!\ \
<Goodbye/@exit>

As mentioned above, it's due to the spelling.

Something I like to do, but it's entirely up to you, I just find it a little easier - After a \ \ (ie a space on the following line), physically put a space in (new line), just to make it that bit clearer you have a new line.

Also, and I'm not sure if this is just some unfounded reasoning or if it's in fact accurate, nonetheless; Instead of using #ELSESAY, use #ELSEACT, followed by goto @toughluck (or whatever) and have that as #SAY. I can't even remember the reason I was told, but it was something along the lines of Scripts not being fond of #ELSESAY - Completely up to you whether you use that or not, as I said, it could be unfounded or it could be spot on. :p
 
Upvote 0

iJam

To the rhythm
VIP
Oct 8, 2007
1,526
105
240
London
[@t1s]
#IF
checkitem Chicken 5
checkitem Meat 5
#ACT
take Chicken 5
take Meat 5
give DeerHorn
goto @LOM
#ELSESAY
-= Legend Of Mir X =-\ \
You don't have enough Chicken or Meat you need to\
bring me 5 Chicken & 5 Meat!\ \
<GoodBye/@exit>\

[@LOM]
#SAY
-= Legend Of Mir X =-\ \
Wow, thanks now You can start the 2nd part of your Training.\ \
<GoodBye/@exit>\
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
Also, and I'm not sure if this is just some unfounded reasoning or if it's in fact accurate, nonetheless; Instead of using #ELSESAY, use #ELSEACT, followed by goto @toughluck (or whatever) and have that as #SAY. I can't even remember the reason I was told, but it was something along the lines of Scripts not being fond of #ELSESAY - Completely up to you whether you use that or not, as I said, it could be unfounded or it could be spot on. :p
thats a load of rubbish, please ignore tallos that clearly cannot script properly

elsesay works fine, aslong as u have scripted it fine
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
Yeah I really didnt see the need to start going into that much detail atall over a simple spelling mistake Imo.
 
Upvote 0

Tallos

Dedicated Member
Dedicated Member
Apr 7, 2009
141
0
42
thats a load of rubbish, please ignore tallos that clearly cannot script properly

elsesay works fine, aslong as u have scripted it fine

I'm sorry, I can't script properly because I was told something that you can't disprove, which makes absolutely no difference whatsoever to the script itself, other than it taking a further 5 seconds to type it out? Lol.

Yeah I really didnt see the need to start going into that much detail atall over a simple spelling mistake Imo.

Because you didn't even read my post - I gave him tips on scripting (and pointed out very clearly that one of them may well of been incorrect), and in thanks for me spending time trying to help someone, you two take a dig... People wonder why this community is awful and people don't help one another now, this is a perfect example of why it is how it is.
 
Upvote 0

shorty606

Golden Oldie
Golden Oldie
Apr 10, 2005
867
0
102
I'm sorry, I can't script properly because I was told something that you can't disprove, which makes absolutely no difference whatsoever to the script itself, other than it taking a further 5 seconds to type it out? Lol.

I know it's pedantic but you can prove it as all scripts I've used are fine with ELSESAY and those five extra steps actually make the script a lot less secure as it opens up spaces for hacking etc with the seperate blocks. Also adds more memory print to the server, which over a couple of hundred scripts adds up to a lot.

I'm sorry, I can't script
and it's ok, we all have to start somewhere :)
 
Upvote 0