Couple of Scripting Queries

Join Discord

Mobius1NI

Dedicated Member
Dedicated Member
Jul 6, 2010
10
0
27
Hi all, 2 questions, one on basic NPC scripting and another on changing maps.

I am using xtreme mud and basically, what they did was make a single NPC that could teach you skills, sell you books, repair stuff and so on. I on the other hand want to break this up into seperate NPC's and ive had a hard time reverse engineering it.

I have successfully created:

[NPC] MartialBookStore - Patrick (Sells the basic warrior books)
[NPC] MartialTrainer - Ciaran (Gives a skill in return for the book)

When you click on Ciaran you get:

"I can teach you the basics of Martial Arts.
You will need to provide the necessary book
and I will charge a small fee"

-Warrior Skills
-Exit

When you click on "Warrior Skills" you get:

Fencing Cost: 7000
Slaying Cost: 14000
Thrusting Cost: 19000
HalfMoon Cost: 24000

Now what I need is a script that allows the user to select the relevant skill and
have money deducted and a skill installed onto the character. Can anyone enlighten
me? Im a better designer than scripter :-(

Also

How do you setup maps so that when the player moves onto a specific co-ordinate, the level/map
changes?

---------- Post added at 06:29 PM ---------- Previous post was at 04:39 PM ----------

Ok well, I fixed the NPC, issue was staring me in the face and just didnt click on. I still need to know how to script in map changes though so if anyoone can help with that I would be much gratefull
 

qnek

Dedicated Member
Dedicated Member
Aug 30, 2008
28
0
47
[NPC] MartialBookStore - Patrick (Sells the basic warrior books)
[@Main]
#SAY
Hello!\\
<Sayling/@skill1>\\
<Exit/@exit>\\

[@Skill1]
#SAY
Sayling - 14k GOLD
<Buy@bskill1>\\
<Exit/@exit>\\

[@bskill1]
#IF
checkgold 14000
#ACT
take gold 14000
give Sayling 1

[NPC] MartialTrainer - Ciaran (Gives a skill in return for the book)
[@main]
#SAY
Hello!\\
<Train Sayling/@skill11>\\
<Exit/@exit>\\

[@skill11]
#IF
checkitem Sayling 1
#ACT
take Sayling 1
give Sayling(Manual) 1
break
 
Upvote 0

tkila

Dedicated Member
Dedicated Member
Jun 8, 2011
613
14
104
he dnt say a script like ur m8

i think he say 1npc i talk with him


[@main]
#SAY
Hello!\\
<list/@list>\\
<Exit/@exit>\\

[@list]
#SAY
Hello!\\
there's the skill

slaying/@slaying>\\
bladestorm/@blade>\\

[@slaying]
#if
checkgold 500
#act
takegold 500
hl-----(there to give automatly the skill without any book
break

i dnt know the comand ,in lomcn there is a thread just look and fool my exemple
 
Upvote 0

Mobius1NI

Dedicated Member
Dedicated Member
Jul 6, 2010
10
0
27
Hi guys, I figured out the answers to both of my questions earlier on but thanks for replying :)
 
Upvote 0