LMS help

Mu online season 21 - grand opening

Madman

LOMCN Veteran
Veteran
Jan 16, 2010
490
17
44
Trying to make it so u cant take any of these items into LMS, but it says u have them in ur bag when u dont.

[@LMS3]
#IF
CHECKITEM SunPotion
CHECKITEM SunPotion(M)
CHECKITEM SunPotion(L)
CHECKITEM SunPotion(XL)
CHECKITEM RevivalGem
CHECKITEM StorageBox
CHECKITEM RandomTeleport
CHECKITEM RandomTeleportBundle
CHECKITEM TownTeleport
CHECKITEM TownTeleportBundle
CHECKITEM AmuletOfRevival
CHECKITEM AmuletOfRevival(M)
CHECKITEM AmuletOfRevival(L)
CHECKITEM TeleportHomeBundle
CHECKITEM TeleportHome
#SAY
Forbiden Items From LastManStanding:\
-\
SunPotions, RevivalGems, StorageBox's, RandomTeleports,\
TownTeleports, TeleportBundles,AmuletOfRevivals.\
-\
<Close./@Exit>
#ELSEACT
GOTO @LMS4
BREAK

[@LMS4]
#SAY
Boo

Any help apreciated
 

mStation

Golden Oldie
Golden Oldie
Oct 29, 2003
2,042
69
235
♫♪♫ ♦♥♠♣ ♀♂♀
not sure what the problem could be but i know that the checkitem command works like this: CHECKITEM SunPotion 1 checks if you have 1 or more sunpotions in bag and you aren't using numbers after the checkitem.. not sure if it is the reason but you could also debug without numbers to see if i'm right..

for instance:

[@LMS3]
#IF
CHECKITEM SunPotion
#SAY
Check1 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS4
BREAK

[@LMS4]
#IF
CHECKITEM SunPotion(M)
#SAY
Check2 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS5
BREAK

[@LMS5]
#IF
CHECKITEM SunPotion(L)
#SAY
Check3 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS6
BREAK

[@LMS6]
#IF
CHECKITEM SunPotion(XL)
#SAY
Check4 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS7
BREAK

[@LMS7]
#IF
CHECKITEM RevivalGem
#SAY
Check5 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS8
BREAK

[@LMS8]
#IF
CHECKITEM StorageBox
#SAY
Check6 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS9
BREAK

[@LMS9]
#IF
CHECKITEM RandomTeleport
#SAY
Check7 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS10
BREAK

[@LMS10]
#IF
CHECKITEM RandomTeleportBundle
#SAY
Check8 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS11
BREAK

[@LMS11]
#IF
CHECKITEM TownTeleport
#SAY
Check9 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS12
BREAK

[@LMS12]
#IF
CHECKITEM TownTeleportBundle
#SAY
Check10 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS13
BREAK

[@LMS13]
#IF
CHECKITEM AmuletOfRevival
#SAY
Check11 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS14
BREAK

[@LMS14]
#IF
CHECKITEM AmuletOfRevival(M)
#SAY
Check12 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS15
BREAK

[@LMS15]
#IF
CHECKITEM AmuletOfRevival(L)
#SAY
Check13 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS16
BREAK

[@LMS16]
#IF
CHECKITEM TeleportHomeBundle
#SAY
Check14 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS17
BREAK

[@LMS17]
#IF
CHECKITEM TeleportHome
#SAY
Check15 fail\
<Close./@Exit>
#ELSEACT
GOTO @LMS18
BREAK

[@LMS18]
#SAY
Boo

if you get a check1 fail then try using numbers after the items..

first try your script like this:

[@LMS3]
#IF
CHECKITEM SunPotion 1
CHECKITEM SunPotion(M) 1
CHECKITEM SunPotion(L) 1
CHECKITEM SunPotion(XL) 1
CHECKITEM RevivalGem 1
CHECKITEM StorageBox 1
CHECKITEM RandomTeleport 1
CHECKITEM RandomTeleportBundle 1
CHECKITEM TownTeleport 1
CHECKITEM TownTeleportBundle 1
CHECKITEM AmuletOfRevival 1
CHECKITEM AmuletOfRevival(M) 1
CHECKITEM AmuletOfRevival(L) 1
CHECKITEM TeleportHomeBundle 1
CHECKITEM TeleportHome 1
#SAY
Forbiden Items From LastManStanding:\
-\
SunPotions, RevivalGems, StorageBox's, RandomTeleports,\
TownTeleports, TeleportBundles,AmuletOfRevivals.\
-\
<Close./@Exit>
#ELSEACT
GOTO @LMS4
BREAK

[@LMS4]
#SAY
Boo
 
  • Like
Reactions: Madman
Upvote 0

Madman

LOMCN Veteran
Veteran
Jan 16, 2010
490
17
44
Tried adding a number onto the end of each item with no luck, so using the sep check and works a treat :)

Thanks pal
 
Last edited:
Upvote 0

pwnage

Golden Oldie
Golden Oldie
Feb 17, 2006
598
5
154
Trying to make it so u cant take any of these items into LMS, but it says u have them in ur bag when u dont.



Any help apreciated
why dont u make it check for those items n if they have them then take them? just warn them on ur npc :P

or add #ACT and make it goto like @fail where it says you cant go in with these items ! ( if thay have them ofc )


( had problem with a script like this earlier so i just added act and made it go to other places and it seemed to work lol )
 
Upvote 0