having some problem with skill upgrade

Join Discord

Apple & Beach

Dedicated Member
Dedicated Member
Dec 29, 2006
247
17
65
[@@UPGRADE6]
#ACT
MOV A5 %INPUTSTR
goto @UP1

[@UP1]
#IF
HLSCRIPTCMD CHECKMAGLEVEL %A5 5
HLSCRIPTCMD CHECKPOINT 1000
#ACT
HLSCRIPTCMD CHANGEMAGLEVEL %A6 6
HLSCRIPTCMD SETPOINT - 1000
[@UP2]
#IF
HLSCRIPTCMD CHECKMAGLEVEL %A6 6
HLSCRIPTCMD CHECKPOINT 1000
#ACT
HLSCRIPTCMD CHANGEMAGLEVEL %A7 7
HLSCRIPTCMD SETPOINT - 1000



ETC... some skill can upgrade some cannot thats wrong?
 

mapadale

Guest
[@@UPGRADE6]
#ACT
MOV A5 %INPUTSTR
goto @UP1

[@UP1]
#IF
HLSCRIPTCMD CHECKMAGLEVEL %A5 5
HLSCRIPTCMD CHECKPOINT 1000
#ACT
HLSCRIPTCMD CHANGEMAGLEVEL %A6 6
HLSCRIPTCMD SETPOINT - 1000
[@UP2]
#IF
HLSCRIPTCMD CHECKMAGLEVEL %A6 6
HLSCRIPTCMD CHECKPOINT 1000
#ACT
HLSCRIPTCMD CHANGEMAGLEVEL %A7 7
HLSCRIPTCMD SETPOINT - 1000



ETC... some skill can upgrade some cannot thats wrong?
Usually helps if you post the full script and what points the scripts not working from.

IE: level 6 ETC ETC
 
Upvote 0

Apple & Beach

Dedicated Member
Dedicated Member
Dec 29, 2006
247
17
65
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@MagLevel]
{
#if
#say
Level 6 - 1000 integral.\
Level 7 - 1500 integral.\
Level 8 - 2000 integral.\
Level 9 - SkillStone + 2000 integral.\
Level 10 - SkillStone + 4000 integral.\
<I must upgrade skill/@StartMagLevel>
#ELSESAY
This function needs the rank {FCOLOR/10}35{FCOLOR/12} Only then may use!\
<Return/@main>

[@StartMagLevel]
#IF
#SAY
{FCOLOR/10}Which Skill would you like to upgrade?:{FCOLOR/12}\
<Upgrade to 6/@@InputMagName1>\
<Upgrade to 7/@@InputMagName2>\
<Upgrade to 8/@@InputMagName3>\
<Upgrade to 9/@@InputMagName4>\
<Upgrade to 10/@@InputMagName5>\

<Return/@main>\


[@@InputMagName1]
#ACT
MOV A6 %INPUTSTR
goto @rinimabugei1

[@@InputMagName2]
#ACT
MOV A7 %INPUTSTR
goto @rinimabugei2


[@rinimabugei1]
#if

HLSCRIPTCMD CHECKPOINT 1000
#act
HLSCRIPTCMD SETPOINT - 1000
HLSCRIPTCMD CHANGEMAGLEVEL %A6 6
#SAY
The evil spirit law skill rank promotes successfully, your integral also remains {FCOLOR/1}<$HLPOINT>{FCOLOR/12} Points\
<Return/@main>\

#ELSESAY
The execution defeat, has the wrong possible reason:\
1.Your integral is insufficient, but also remains {FCOLOR/1}<$HLPOINT>{FCOLOR/12}Points.\
2.You have Input Skill Name Wrong.\
3.Skill not Levelled to 5 yet.\

[@rinimabugei2]
#if
CHKMAGICLEVEL %A6 6
HLSCRIPTCMD CHECKPOINT 1500
#act
HLSCRIPTCMD SETPOINT - 1500
HLSCRIPTCMD CHANGEMAGLEVEL %A7 7
#SAY
The evil spirit law skill rank promotes successfully, your integral also remains {FCOLOR/1}<$HLPOINT>{FCOLOR/12} Points\
<Return/@main>\

#ELSESAY
The execution defeat, has the wrong possible reason:\
1.Your integral is insufficient, but also remains {FCOLOR/1}<$HLPOINT>{FCOLOR/12}Points.\
2.You have Input Skill Name Wrong.\
3.Skill not Levelled to 6 yet.\

[@@InputMagName3]
#ACT
MOV A7 %INPUTSTR
goto @rinimabugei3

[@@InputMagName4]
#ACT
MOV A9 %INPUTSTR
goto @rinimabugei4


[@rinimabugei3]
#if
CHKMAGICLEVEL %A7 7
HLSCRIPTCMD CHECKPOINT 2000
#act
HLSCRIPTCMD SETPOINT - 2000
HLSCRIPTCMD CHANGEMAGLEVEL %A8 8
#SAY
The evil spirit law skill rank promotes successfully, your integral also remains {FCOLOR/1}<$HLPOINT>{FCOLOR/12} Points\
<Return/@main>\

#ELSESAY
The execution defeat, has the wrong possible reason:\
1.Your integral is insufficient, but also remains {FCOLOR/1}<$HLPOINT>{FCOLOR/12}Points.\
2.You have Input Skill Name Wrong.\
3.Skill not Levelled to 7 yet.\

[@rinimabugei4]
#if
CHKMAGICLEVEL %A8 8
HLSCRIPTCMD CHECKPOINT 2000
checkitem SkillStone 1
#act
HLSCRIPTCMD SETPOINT - 2000
HLSCRIPTCMD CHANGEMAGLEVEL %A9 9
Take Skillstone 1
#SAY
The evil spirit law skill rank promotes successfully, your integral also remains {FCOLOR/1}<$HLPOINT>{FCOLOR/12} Points\
<Return/@main>\

#ELSESAY
The execution defeat, has the wrong possible reason:\
1.Your integral is insufficient, but also remains {FCOLOR/1}<$HLPOINT>{FCOLOR/12}Points.\
2.You have Input Skill Name Wrong.\
3.Skill not Levelled to 8 yet.\


[@@InputMagName5]
#ACT
MOV A10 %INPUTSTR
goto @rinimabugei5


[@rinimabugei5]
#if
CHKMAGICLEVEL %A9 9
HLSCRIPTCMD CHECKPOINT 4000
checkitem skillstone 1
#act
HLSCRIPTCMD SETPOINT - 4000
HLSCRIPTCMD CHANGEMAGLEVEL %A10 10
take skillstone 1
#SAY
The evil spirit law skill rank promotes successfully, your integral also remains {FCOLOR/1}<$HLPOINT>{FCOLOR/12} Points\
<Return/@main>\

#ELSESAY
The execution defeat, has the wrong possible reason:\
1.Your integral is insufficient, but also remains {FCOLOR/1}<$HLPOINT>{FCOLOR/12}Points.\
2.You have Input Skill Name Wrong.\
3.Skill not Levelled to 9 yet.\



}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


Theres the full script..
 
Last edited:
Upvote 0

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
195
Redditch, UK
I think it might be because of spelling, most of the spells habeen renamed etc so maybe that could be the problem.

Another thing i noticed and i'm proberbly wrong is

HLSCRIPTCMD SETPOINT - 1000

Does that work? Because when i script i always checkpoint, move to d then dec d then set d.

As i say it may be right but as far as i know that wouldnt work
 
Upvote 0

Apple & Beach

Dedicated Member
Dedicated Member
Dec 29, 2006
247
17
65
that works it takes integral ... i think its the problem with HLSCRIPTCMD CHANGEMAGLEVEL %A6 6

i had a HLSCRIPTCMD CHANGEMAGLEVEL %a5 5 for upgrade to lvl 6 but didnt work then i took out it work
 
Upvote 0

Draka

Dedicated Member
Dedicated Member
Jan 22, 2008
72
0
53
with lvl 4 and 5 this npc works? look an check because i use a similar npc in my server and works so nice. check and tell me later o thsi is ma msn [email protected]
 
Upvote 0

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
195
Redditch, UK
[@@InputMagName2]
#ACT
MOV A7 %INPUTSTR
goto @rinimabugei2

[@rinimabugei2]
#if
CHKMAGICLEVEL %A6 6
HLSCRIPTCMD CHECKPOINT 1500
#act
HLSCRIPTCMD SETPOINT - 1500
HLSCRIPTCMD CHANGEMAGLEVEL %A7 7
#SAY
The evil spirit law skill rank promotes successfully, your integral also remains {FCOLOR/1}<$HLPOINT>{FCOLOR/12} Points\
<Return/@main>\

#ELSESAY
The execution defeat, has the wrong possible reason:\
1.Your integral is insufficient, but also remains {FCOLOR/1}<$HLPOINT>{FCOLOR/12}Points.\
2.You have Input Skill Name Wrong.\
3.Skill not Levelled to 6 yet.\

I bolded out the mistake, that should be A7 not 6
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
There is a problem with that script, it only checks if the magic level is 6 or greater.... you need to put in also that it's not 7 or greater :)

Also it would be much better if you give people options to click rather than having to type in the spell names, etc.

I would check class then give options of spell names then check the spell level and then just give the option to upgrade based on the next level up :)

Just my opinion :)
 
Last edited:
Upvote 0