Tutorial scripting

Join Discord

nightwish

Dedicated Member
Dedicated Member
Apr 1, 2005
88
0
52
Hi all i am trying to do a script so that when the quest is complete, the char get a weapon pertaining to his/her char.I:e a tao gets a tao wep and so forth i have managed to do most of the script and at the moment the reward is a standard ring

[@main]
#Say
Hello <$USERNAME>
Welcome to my cave,my name is Hayley.\
I am in need of assistance,can you help me.\
If you do i will reward you well.\
Can you find the ones they call little red devils,\
and when you do can you slay them.\
Once they are dead I need their hearts.\


<Accept/@accept> \
<Decline/@decline> \
<I have the hearts/@complete>




[@accept]
#Say
Danger is Ahead!\
You must search this dungeon to\
find what you seek.\




[@decline]
#Say
You make an old woman sad,\
I have stood here years for one as you \
to help me.Be gone with you now.\
You are not welcome in my cave,\
I do hope you can find your way out.




[@complete]
#Say
you have the hearts?\
<Yes/@yes>\
<No/@no>\


[@Yes]
#If
Checkitem reddevilheart 2
#Act
Take reddevilheart 2
Give townteleport 1
Give ExpelRing 2
#Say
You Survived! Congratulations.
#ELSESAY
No you do not!


[@no]
#Say
Oh dear young <$USERNAME> i see maths\
was not your strong point.Never mind i am sure\
you will be able to work it out now.\
you need to kill the little red devils\
that means 2 of them.Come find me when\
you have done as i asked!\

just cannot seem to get my head around this any help would be appreciated
 

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
145
Manchester, UK
should be something along the lines of:

[@main]
#Say
Hello <$USERNAME>
Welcome to my cave,my name is Hayley.\
I am in need of assistance,can you help me.\
If you do i will reward you well.\
Can you find the ones they call little red devils,\
and when you do can you slay them.\
Once they are dead I need their hearts.\


<Accept/@accept> \
<Decline/@decline> \
<I have the hearts/@complete>




[@accept]
#Say
Danger is Ahead!\
You must search this dungeon to\
find what you seek.\




[@decline]
#Say
You make an old woman sad,\
I have stood here years for one as you \
to help me.Be gone with you now.\
You are not welcome in my cave,\
I do hope you can find your way out.




[@complete]
#Say
you have the hearts?\
<Yes/@yes>\
<No/@no>\


[@Yes]
#If
Checkitem reddevilheart 2
checkjob Warrior
#Act
Take reddevilheart 2
Give townteleport 1
Give ExpelRing 2
#Say
You Survived! Congratulations.
#ELSESAY
No you do not!

#If
Checkitem reddevilheart 2
checkjob Taoist
#Act
Take reddevilheart 2
Give townteleport 1
Give ExpelRing 2
#Say
You Survived! Congratulations.
#ELSESAY
No you do not!

#If
Checkitem reddevilheart 2
checkjob Wizard
#Act
Take reddevilheart 2
Give townteleport 1
Give ExpelRing 2
#Say
You Survived! Congratulations.
#ELSESAY
No you do not!

[@no]
#Say
Oh dear young <$USERNAME> i see maths\
was not your strong point.Never mind i am sure\
you will be able to work it out now.\
you need to kill the little red devils\
that means 2 of them.Come find me when\
you have done as i asked!\
 
Upvote 0