Exp Scroll NPC/Script

Join Discord

twisterdmk

LOMCN Veteran
Veteran
May 13, 2009
759
28
115
USA
Hi, trying to add a exp scroll script to exchange level up and i have searched for past hour lol and found no topic anyone help me please?
 

twisterdmk

LOMCN Veteran
Veteran
May 13, 2009
759
28
115
USA
[@lvlup]
#IF
#SAY
Hello <$USERNAME> Do you have an LvlUp?\ \
<Yes - 1 per 100,000,000 EXP/@exp(100,000,000)>\
Do you have an 7Up?\ \
<Yes - 1 per 700000000 EXP/@exp2(700000000)>\


[@exp()]
#IF
CHECKITEM LvlUp 1
#ACT
GIVEEXP %USERNAME %D100,000,000
goto @lvlup
#ELSESAY
Go away you pesant you have nothing for me\
<Close/@exit>\ \

[@exp2()]
#IF
CHECKITEM 7Up 1
#ACT
GIVEEXP %USERNAME %D2
goto @lvlup
#ELSESAY
Go away you pesant you have nothing for me\
<Close/@exit>\ \

that's the script i got but it only gives me 1exp point lol any help?
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
i havent done mir3 but i know mir2 npcs lol

GIVEEXP %USERNAME %D100,000,000

try
GIVEEXP %USERNAME %D100000000

dunno :P
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
[@lvlup]
#SAY
Hello <$USERNAME> Do you have a LvlUp?\ \
<Yes - 1 per 100,000,000 EXP/@exp>\
Do you have a 7Up?\ \
<Yes - 1 per 700000000 EXP/@exp2>\


[@exp]
#IF
CHECK LvlUp 1
#ACT
GIVEEXP %USERNAME 100000000
goto @lvlup
#ELSESAY
Go away you peasant you have nothing for me\
<Close/@exit>\ \

[@exp2]
#IF
CHECK 7Up 1
#ACT
GIVEEXP %USERNAME 700000000
goto @lvlup
#ELSESAY
Go away you peasant you have nothing for me\
<Close/@exit>\ \

that's the script i got but it only gives me 1exp point lol any help?

Try that... not sure why you have the goto @lvlup in there unless there is another bit of script to follow.
 
Upvote 0

wbrian

Dedicated Member
Dedicated Member
Aug 31, 2007
193
2
64
Or:
Code:
[@lvlup]
#SAY
Hello <$USERNAME>.\
What do you have?\ \
<Lvl Up/@exp(LvlUp,100000000)> - 100.000.000 exp\
<7Up/@exp(7Up,700000000)> - 700.000.000 exp\ \\

[@exp()]
#ACT
mov A1 %ARG(1)
mov D1 %ARG(2)

#IF
CHECK %A1 1
#ACT
GIVEEXP %USERNAME %D1
#ELSESAY
Go away you peasant you have nothing for me\
<Close/@exit>\ \

Not tested;)
 
Upvote 0

SoulForge

Dedicated Member
Dedicated Member
Oct 18, 2004
169
7
64
[@Main]
#IF
#SAY
Hello <$USERNAME> Do you have an LvlUp?\ \
<Yes - 1 per 100,000,000 EXP/@EXP(LVLUP,100,000,000)>\
Do you have an 7Up?\ \
<Yes - 1 per 700,000,000 EXP/@EXP(700000000)>\

[@EXP()]
#ACT
Mov A1 %ARG(1) ;Item Needed
Mov D1 %ARG(2) ;Exp Amount

#IF
CHECKITEM A1 1
#ACT
GIVEEXP %USERNAME %D1
Take A1 1
Goto @Main
#ELSESAY
You need at least 1 <$OUTPUT(A1)> to claim your exp!\
<Close/@exit>\ \



Try the above :) its more compact scripting with variables :)
A1 being the item and D1 being the XP amount

Surely that should work better :)
 
Upvote 0