skill script messed up

smoochy boys on tour

MythRohan

LOMCN Veteran
Veteran
Nov 18, 2011
2,147
82
135
Northant's Town : Serious Gamer
This is a script ment to make only taos be able to click the npc and when the char is at the right Rebirth and they are a taoist then the npc will grant them the skill at the level requied below... the reason y im writing this is i was trying to make a kool script and i failed and i kent see what is wrong with this... i would have put it into a book but clueless and thought be beta addition to my server like this:

if any 1 could tell me where im going wrong id be very greatful :(

this is script below:



[@main]
#SAY
Hello i will only speak to a high leveled taoist..about this skill\
If you are a Tao and "Have" the right amount of wisdom (rebirth's)\
To support such a summon . you would rule the lands..\ \
\
Well lets see...
<yes please/@yes> <No thanks/@exit>


[@yes]
#IF
CHECKRENEWLEVEL < 7
checkjob Taoist
RANDOM 3 = 3
#ACT
TRAINSKILL SummonLordShinsu 3
#ELSEACT
goto @t1
break


[@t1]
#IF
CHECKRENEWLEVEL < 5
checkjob Taoist
RANDOM 3 = 2
#ACT
TRAINSKILL SummonLordShinsu 2
#ELSEACT
goto @t2
break


[@t2]
#IF
CHECKRENEWLEVEL < 3
checkjob Taoist
RANDOM 3 = 1
#ACT
TRAINSKILL SummonLordShinsu 1
#ELSEACT
goto @t3
break


[@t3]
#IF
CHECKRENEWLEVEL < 1
checkjob Taoist
RANDOM 3 = 0
#ACT
TRAINSKILL SummonLordShinsu 0
#ELSEACT
goto @t4
break


[@t4]
#SAY
You either do not meet the requirments needed\
or already have the skill in your book.\
Good Bye.\ \
<bye/@exit>


manythanks

Regards

M-R
 

Breezer

Mr Mañana
Legendary
Jul 16, 2004
3,370
539
315
Not used RANDOM command in my scripts but looks like u got 4 checks ? try putting RANDOM 4

edit: sorry just noticed the "0" , do you even need the RANDOM command in this script ?
 
Upvote 0

MythRohan

LOMCN Veteran
Veteran
Nov 18, 2011
2,147
82
135
Northant's Town : Serious Gamer
aye it does work because of profield is same in qfunction so i fort id be a smart ass and try and use in similar way :P (obviously not )...(n now has all ov a suddon stoped working lol )

thanks on reply ill give it a shot

---------- Post added at 03:46 AM ---------- Previous post was at 03:42 AM ----------

still no workie :( just reads


[@t4]
#SAY
You either do not meet the requirments needed\
or already have the skill in your book.\
Good Bye.\ \
<bye/@exit>


when i click yes please button
 
Upvote 0

Breezer

Mr Mañana
Legendary
Jul 16, 2004
3,370
539
315
Try that, cant see why you'd need RANDOM in this particular script.
 
Last edited:
Upvote 0

Breezer

Mr Mañana
Legendary
Jul 16, 2004
3,370
539
315
lol ok lets try it the first way but without random...

Code:
[@main]
#SAY
Hello i will only speak to a high leveled taoist..about this skill\
If you are a Tao and "Have" the right amount of wisdom (rebirth's)\
To support such a summon . you would rule the lands..\ \
\
Well lets see...
<yes please/@yes> <No thanks/@exit>


[@yes]
#IF
CHECKRENEWLEVEL < 7
checkjob Taoist
#ACT
TRAINSKILL SummonLordShinsu 3
#ELSEACT
goto @t1
break


[@t1]
#IF
CHECKRENEWLEVEL < 5
checkjob Taoist
#ACT
TRAINSKILL SummonLordShinsu 2
#ELSEACT
goto @t2
break


[@t2]
#IF
CHECKRENEWLEVEL < 3
checkjob Taoist
#ACT
TRAINSKILL SummonLordShinsu 1
#ELSEACT
goto @t3
break


[@t3]
#IF
CHECKRENEWLEVEL < 1
checkjob Taoist
#ACT
TRAINSKILL SummonLordShinsu 0
#ELSEACT
goto @t4
break


[@t4]
#SAY
You either do not meet the requirments needed\
or already have the skill in your book.\
Good Bye.\ \
<bye/@exit>
 
Upvote 0

Shank

The_Mafia
VIP
Dec 4, 2008
2,082
17
165
It's TRAINSKILL for what hes trying to do... it adds like 20 skill experience points to gradually lvl the spell to lvl1-2-3 etc.
 
Upvote 0

Ilsta

Dedicated Member
Dedicated Member
Feb 20, 2012
563
23
80
It's TRAINSKILL for what hes trying to do... it adds like 20 skill experience points to gradually lvl the spell to lvl1-2-3 etc.

Still don't see how that's gonna work with the scripts above, please enlighten me.. and why would you use a random?

also random 3 = 3 .... should just be #if random 3 or RANDOMEX = 3
 
Last edited:
Upvote 0

MythRohan

LOMCN Veteran
Veteran
Nov 18, 2011
2,147
82
135
Northant's Town : Serious Gamer
look as i said before i used it because it was in the q function for PROTECTIONFIELD skill (samuels script) so i copyed it and changed it about .it dont work as i said and yea i suck ^.^ gota sort it out but keep gettin mixed up nowlol
no worries ill figure it out tho
 
Last edited:
Upvote 0

Pottsy

Legend
Legendary
Feb 26, 2004
3,275
252
329
Try this...It's almost exactly the same except i've split up the checks, as I noticed with some of my bigger scripts, it wouldn't do multiple checks at once lol, instead only did the first check so I just split them up

Code:
[@main]
#SAY
Hello i will only speak to a high leveled taoist..about this skill\
If you are a Tao and "Have" the right amount of wisdom (rebirth's)\
To support such a summon . you would rule the lands..\ \
\
Well lets see...
<yes please/@yes> <No thanks/@exit>


[@yes]
#IF
CHECKJOB Taoist
#ACT
@yes1
#ELSESAY
Sorry, but you need to be a Taoist\ \

<Ok/@exit>

[@yes1]
#IF
CHECKRENEWLEVEL < 7
#ACT
TRAINSKILL SummonLordShinsu 3 [color=red]You sure it's TRAINSKILL and not ADDSKILL?[/color]
#ELSEACT
goto @t1

[@t1]
#IF
CHECKRENEWLEVEL < 5
#ACT
TRAINSKILL SummonLordShinsu 2
#ELSEACT
goto @t2

[@t2]
#IF
CHECKRENEWLEVEL < 3
#ACT
TRAINSKILL SummonLordShinsu 1
#ELSEACT
goto @t3

[@t3]
#IF
CHECKRENEWLEVEL < 1
#ACT
TRAINSKILL SummonLordShinsu 0
#ELSEACT
goto @t4

[@t4]
#SAY
Sorry, but you need to be rebirthed as well as being a Taoist.\ \

<Ok/@exit>
 
Last edited:
  • Like
Reactions: MythRohan
Upvote 0

MythRohan

LOMCN Veteran
Veteran
Nov 18, 2011
2,147
82
135
Northant's Town : Serious Gamer
Code:
[@main]
#SAY
Hello i will only speak to a high leveled taoist..about this skill\
If you are a Tao and "Have" the right amount of wisdom (rebirth's)\
To support such a summon . you would rule the lands..\ \
\
Well lets see...
<yes please/@yes> <No thanks/@exit>


[@yes]
#IF
CHECKRENEWLEVEL < 7
checkjob Taoist
#ACT
TRAINSKILL SummonLordShinsu 3
#ELSEACT
goto @t1
break


[@t1]
#IF
CHECKRENEWLEVEL < 5
checkjob Taoist
#ACT
TRAINSKILL SummonLordShinsu 2
#ELSEACT
goto @t2
break


[@t2]
#IF
CHECKRENEWLEVEL < 3
checkjob Taoist
#ACT
TRAINSKILL SummonLordShinsu 1
#ELSEACT
goto @t3
break


[@t3]
#IF
CHECKRENEWLEVEL < 1
checkjob Taoist
#ACT
TRAINSKILL SummonLordShinsu 0
#ELSEACT
goto @t4
break


[@t4]
#SAY
You either do not meet the requirments needed\
or already have the skill in your book.\
Good Bye.\ \
<bye/@exit>



even with out random it dont work:
 
Upvote 0

Ilsta

Dedicated Member
Dedicated Member
Feb 20, 2012
563
23
80
Far from it, only way to learn is to trial and error, can you point me to his script so i can get a better understanding of it as the heroes section seems very hard to find anything unless its stickyed thx, i may be wrong as im no expert.

Edit : from the script i take it the tao has already learnt the spell? also when using the CHECKRENEWLEVEL lt be better using an = after.
as your checking if rebirth under level 7 on all in a way.

example,

#if
CHECKRENEWLEVEL < 7 <<---checks if renew level under 7

#if
CHECKRENEWLEVEL < 5 <<--- checks if renew level under 5

so there be conflicting if you renew level is under 7 and will use the first script.

So if im renew level 1 it will use the top script as im under CHECKRENEWLEVEL < 7

At a guess.
 
Last edited:
Upvote 0

MythRohan

LOMCN Veteran
Veteran
Nov 18, 2011
2,147
82
135
Northant's Town : Serious Gamer
not a problem sir...


ok at "Forum"inside "Mir Three Heroes" section go to "Releases" then go to "Creating Custom Buffs"

This is the link : http://www.lomcn.co.uk/forum/showthread.php?75288-Creating-Custom-Buff-s

This is the code i was trying to explain ^.^

Code:
[@trainProField]
#IF
RANDOM 3 = 1
#ACT
TRAINSKILL ProtectionField 1
#ELSEACT
goto @trainProField1
break

[@TrainProfield1]
#IF
RANDOM 3 = 2
#ACT
TRAINSKILL ProtectionField 2
#ELSEACT
goto @TrainProfield2
break

[@TrainProfield2]
#IF
RANDOM 3 = 3
#ACT
TRAINSKILL ProtectionField 3
#ELSEACT
goto @TrainProfield
break

many thanks

Regards

M-R

---------- Post added at 01:17 AM ---------- Previous post was at 01:15 AM ----------

no i wanted it so the tao learns the spell at lvl 0 at rebirth 1 , lvl 1 at rebirth 3 ect i must be way of the commands i guess,

it sould check if u are RB 7 the RB 5 if not the RB 3 till it finds what lvl you r to give the skill that is needed if that makes scence
 
Upvote 0