[King] Variables capped to 7?

Play Now

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
99
135
UK
Are variables capped at 7?
I have an npc with 7variables and the 7th should say 2 but it says 0

Any ideas if im doing something wrong or if its just capped? :/
 

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
175
Redditch, UK
Are variables capped at 7?
I have an npc with 7variables and the 7th should say 2 but it says 0

Any ideas if im doing something wrong or if its just capped? :/
as far as im aware they go to 9 so its 1 2 3 4 5 6 7 8 9 0, i would think it was a problem with the script, if you post it i could have a check for you if u like
 
Upvote 0

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
99
135
UK
Ah i think it might not work because i have 3variables linked to SQL and then 6 in script.

Code:
[@main]
#SAY
<BronzeHatchet/@requirments2(WoodenHandle,1,5000,BronzeHatchet,2,BronzeBar,5)>\\
#ELSESAY

[@requirments2()]
#ACT
mov A1 %ARG(1) ;Item1
mov D1 %ARG(2) ;Amount of Item1
mov D2 %ARG(3) ;Gold amount
mov A2 %ARG(4) ;Item make
mov D3 %ARG(5) ;exp gain
mov A3 %ARG(6) ;Item2
mov D4 %ARG(7) ;Item2 amount
goto @showreq2

[@showreq2]
#SAY
To make a <$OUTPUT(A2)> you need:\
<$OUTPUT(D1)> x <$OUTPUT(A1)>\
<$OUTPUT(D4)> x <$OUTPUT(A3)>\
<$OUTPUT(D2)> gold\
<I wish to make it/@create2>\
<Leave/@exit>\

That was my script, i slightly changed it and messed with it to get it working but <$OUTPUT(D4)> would be saying 0 instead of 5.
 
Upvote 0

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
175
Redditch, UK
hmm this is argument not variable =/

but yeah if you have otehr variables running as well it will change it, try using N instead of D for this
 
Upvote 0

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
99
135
UK
hmm this is argument not variable =/

but yeah if you have otehr variables running as well it will change it, try using N instead of D for this
lol i was told this is variables, dunno what an argument is :p although i think you meant arrangement
and whats the difference between different letters? :eek:

I always know A to be words and D to be numbers
 
Upvote 0

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
99
135
UK
Well ill guess ill keep it as it is now but for future references thanks!

May come in handy when i'm doing some bigger work like the skillpoint npc i did
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
215
UK
A0-A99 is text variable, it's assigned value stays active throughout a script.
D1-D99 is a number variable, it's assigned value stays active throughout a script.
P1-P9 is a one off value variable, it only stays assigned for one subsequentcalculation.
 
Upvote 0

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
99
135
UK
A0-A99 is text variable, it's assigned value stays active throughout a script.
D1-D99 is a number variable, it's assigned value stays active throughout a script.
P1-P9 is a one off value variable, it only stays assigned for one subsequentcalculation.
Yeah i found this out earlier, had some problems making my script but worked around it :)
thanks though :)
 
Last edited:
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
215
UK
Yes thanks... lol

I know tons but who has the time to write it all down? o.o

Gimme a problem and I'll attempt to solve it. :)
 
Upvote 0

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
99
135
UK
Yes thanks... lol

I know tons but who has the time to write it all down? o.o

Gimme a problem and I'll attempt to solve it. :)

My pet chicken has 1wing and needs 2wings to fly, but chickens cant fly so how do i make my chicken fly? :P

Hehe oj's :D
 
Upvote 0