Smeagol's NPC Scripts (Basic)

Smeagol

Dedicated Member
Dedicated Member
These NPC scripts were made for 1.4 Servers.

NPC#1 - Start Kit
Code:
[@main]
#IF
check [107] 1
#SAY
Each new player gets one start kit and\
i'm afraid you already took yours.\
<Close Window/@exit>\ \
#ELSESAY
SERVERNAME - Start Kit\
What? I can't let you go off without\
some start items! Here, take some!\
<Thanks/@Items1> alot. - <Close Window/@exit>

[@Items1]
#IF
#SAY
Please select your class.\
<Warrior/@Warrior> - "Fearless!" \
<Taoist/@Taoist> - "Full of Strength!" \
<Wizard/@Wizard> - "Anomynous!" \
<Close Window/@exit>\\

[@Warrior]
#ACT
GIVE StarterRing 2
GIVE StarterGlove 2
GIVE StarterNeckl
GIVE StarterHelmet
GIVE Fencing 1
GIVE Slaying 1
SET [107] 1
<Close Window/@exit>

[@Taoist]
#ACT
GIVE StarterRing 2
GIVE StarterGlove 2
GIVE StarterNeckl
GIVE StarterHelmet
GIVE Amulet 2
GIVE SpiritSword
GIVE Poisoning
GIVE GreenPoison
GIVE RedPoison
GIVE Healing
SET [107] 1
<Close Window/@exit>

[@Wizard]
#ACT
GIVE StarterRing 2
GIVE StarterGlove 2
GIVE StarterNeckl
GIVE StarterHelmet
GIVE Fireball
GIVE Repulsion
SET [107] 1
<Close Window/@exit>


NPC#2 - Hair Dressing
Code:
[@main]
SERVERNAME - Hair Dressing\ \
Welcome to the Village salon!\
Here, you can change your hair style. We\
do bald, too long!\ \
<Change my hair style!/@hair> - <Close Window/@exit>\

[@hair]
SERVERNAME - Select Your Style!\ 
<Hair Style 1/@hair1> (Male - Bald    Female - Long)\
<Hair Style 2/@hair2> (Default Hair)\ \
<Close Window/@exit>

[@hair1]
#ACT
marry Hair 0
break

[@hair2]
#ACT
marry Hair 1
break


NPC#3 - Teleport NPC
Code:
[@main]
SERVERNAME - Server Teleport NPC -\
Move To <CaveName/@teleport1> - <CaveName/@teleport2> - <CaveName/@teleport3>\
Move To <CaveName/@teleport4> - <CaveName/@teleport5> - <CaveName/@teleport6>\
Move To <CaveName/@teleport7> - <CaveName/@teleport8> - <CaveName/@teleport9>\
Move To <CaveName/@teleport10> - <CaveName/@teleport11> - <CaveName/@teleport12>\
Move To <CaveName/@teleport13> - <CaveName/@teleport14> - <CaveName/@teleport15>\
Move To <CaveName/@teleport16> - <CaveName/@teleport17> - <CaveName/@teleport18>\
Move To <CaveName/@teleport19> - <CaveName/@teleport20> - <CaveName/@teleport21>\
<Close Window/@exit>

[@teleport1]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport2]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport3]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport4]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport5]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport6]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport7]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport8]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport9]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport10]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport11]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport12]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport13]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport14]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport15]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport16]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport17]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport18]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport19]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport20]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

[@teleport21]
#ACT
mapmove MAPNAMEHERE ### ###
give TownTeleport 1

NPC#4 - Name Colour
Code:
[@main]
SERVERNAME - Alter Name Colour\ \
This is just a basic fun NPC which changes the\
colour of your name. Just brightens the place\
up a little bit and is another server feature. Enjoy!\
<Change Name Color/@ChangeNameColor>  -  <Close Window/@exit>

[@ChangeNameColor]
SERVERNAME - Please Select Your Colour!\ \
<White/@ColorBai> - <Glad/@ColorHui> - <Orange/@ColorCheng>\
<Green/@ColorLv> - <DarkGreen/@ColorQing> - <Blue/@ColorLan>\ \
<Close Window/@exit>

[@ColorCheng]
#ACT
marry nameColor -13
#SAY
Your Name Color changed\ \
<Close Window/@exit>


[@ColorQing]
#ACT
marry nameColor -2
#SAY
Your Name Color changed\ \
<Close Window/@exit>

[@ColorZi]
#ACT
marry nameColor -3
#SAY
Your Name Color changed\ \
<Close Window/@exit>

[@ColorLan]
#ACT
marry nameColor -4
#SAY
Your Name Color changed\ \
<Close Window/@exit>

[@ColorLv]
#ACT
marry nameColor -6
take Gold 150000
#SAY
Your Name Color changed\ \
<Close Window/@exit>

[@ColorHui]
#ACT
marry nameColor -8
#SAY
Your Name Color changed\ \
<Exit/@exit>


NPC#5 - Wedding NPC
Code:
[@main]
#IF
checkmarry alre
#ACT
goto @unmarry
#ELSEACT
goto @marry

[@marry]
#say
SERVERNAME - Marry NPC\ \
This is the server wedding NPC, please\
come here to marry your beloved one.\
When married, your name will show as\
"s man" or "s wife".\
<Click to Marry/@marry1>  -  <Close Window/@exit>

[@marry1]
#IF
gender man
#ACT
goto @man_marry
#ELSEACT
goto @woman_marry

[@man_marry]
#say
SERVERNAME - Seramoney\
Please face your bride. When facing, ask her to marry you.\
<Marry Me!/@man_marry1>  -  <Close Window/@exit>\

[@woman_marry]
#say
SERVERNAME - Seramoney\
Please face your groom. When faced, ask him to marry you.\

<Marry Me!/@woman_marry1>  -  <Close Window/@exit>

[@man_marry1]
#if
checklevel 20
#elseact
goto @level_error1
break

#if
checkmarry poin
#elseact
goto @place_error1
break

#if
checkmarry opelevel 20
#elseact
goto @level_error2
break

#if
checkmarry marriedl
#act
goto @marry_error
break

#if
#act
marry Aski 
#say
Simulation - Awaiting your partner...\
#elsesay
You don't want to pay the $$? huh?\ \ \
<Exit/@exit>

[@woman_marry1]
#if
checklevel 20
#elseact
goto @level_error1
break

#if
checkmarry poin
#elseact
goto @place_error1
break

#if
checkmarry opelevel 20
#elseact
goto @level_error2
break

#if
checkmarry marriedl
#act
goto @marry_error
break

#if
#act
marry aski
#say
All You Can do now is wait...\
#elsesay
You don't want to pay $$? huh?\\
<Exit/@exit>

[@level_error1]
#say
You are not high enough level to be married.\\
 <Exit/@exit>

[@level_error2]
#say
Go and help he/she level up first!\\
 <Exit/@exit>

[@marry_error]
#say
Sorry, he/she get married\\
 <Exit/@exit>

[@place_error1]
#say
Face her and she will give you her answer! You must face!\\
 <Exit/@exit>

[@agree_marry]
#if
checkmarry sure
#say
Congratsulations! May You Both Live In Peace\ \
 <Thanks You/@exit>
#act
marry sure
#elsesay
You can't marry\ \
 <Exit/@exit>

[@unmarry]
#say
Simulation - Greetings!\ \
Hey, I hope your marrige is going okay.\
<We are getting along fine/@exit>\
<I We'd like to break up./@unmarry1>\

[@unmarry1]
#if
gender man
#act
goto @man_unmarry
#elseact
goto @woman_unmarry
[@man_unmarry]
#say
I take it you have problems with each other.\
Face your wife you can ask her to <BreakUp/@unmarry2>£¬\
If she says OK then you will be single again!\ \
 <No.I dont want to leave her/@exit>

[@woman_unmarry]
#say
I take it you have problems with each other.\
Face your husband you can ask him to <BreakUp/@unmarry2>£¬\
If she says OK then you will be single again!\\
 <No. I dont want to leave him/@exit>

[@unmarry2]
#if
checkmarry poin
#elseact
goto @place_error2
break

#if
checkmarry hanw
#say
All you can do now is wait!\
#act
marry disw

#elsesay
You two are not married\\
 <Exit/@exit>

;ÓɶԷ½µ¯³öµÄ´°¿Ú·µ»Ø
[@agree_unmarry]
#if
checkmarry hanw
#act
marry diso
#elsesay
You can't marry\ \
 <Exit/@exit>

[@place_error2]
#SAY
If you two aren't facing, how can I break you up?\\
<He or She didnt stay on for a long time./@unmarry3>\ 
<Exit/@exit>

[@unmarry3]
#if
gender man
#say
If you want to break up now. I will tell her\
about this when she is next on,\\
 <I want to break up now!/@unmarry4>\
 <I better wait my wife on/@exit>
#elsesay
If you want to break up now. I will tell him\
about this when he is next on,\\
 <I want to break up now!/@unmarry4>\ \
 <I better wait my man on/@exit>

[@unmarry4]
#if
#act
marry diso
#say
Ok, now you are single again!\ \
#elsesay
You must pay for it!...\ \ \
 <Exit/@exit>

[@ring]
#if
gender man
goto @manring
#elseact
goto @womanring

[@manring]
#IF
checknamelist ManRing.txt
#SAY
You already have claimed a wedding ring from me. Go Away!
<Exit./@exit>
#ELSEACT
give WeddRing(M)
addnamelist ManRing.txt
#SAY
There is your wedding ring. Wear it and feel loved =D.
<I Will./@exit>

[@womanring]
#IF
checknamelist WomanRing.txt
#SAY
You already have claimed a wedding ring from me. Go Away!
<Exit./@exit>
#ELSEACT
give WeddRing(F)
addnamelist WomanRing.txt
#SAY
There is your wedding ring. Wear it and feel loved =D.
<I Will./@exit>
 
Last edited:

Smeagol

Dedicated Member
Dedicated Member
NPC#6 - Pet Rental
Code:
[@main]
SERVERNAME - Pet Service\
Each pet has its own specialties and values. Here,\
the higher level you get, the more and better pet\
you can achieve. Please select one of the following :\
<Warrior Pets/@warriorpet> - <Wizard Pets/@wizardpet> - <All Classes/@allclasses>\ \
<Close Window/@exit>\

[@warriorpet]
Warrior Pet List -\
1 . <Monster/@Monster1> Level 30+\
2 . <Monster/@Monster2> Level 38+\
3 . <Monster/@Monster3> Level 42+\
4 . <Monster/@Monster4> Level 45+\
5 . <NA/@>\
6 . <NA/@>\
7 . <NA/@>\
<Back to Main/@main>  -  <Close Window/@exit>

[@wizardpet]
Wizard Pet List -\
1 . <Monster/@Monster5>  Level 25+\
2 . <Monster/@Monster6>  Level 30+\
3 . <Monster/@Monster7>  Level 35+\
4 . <Monster/@Monster8>  Level 40+\
5 . <Monster/@Monster9>  Level 43+\
6 . <Monster/@Monster10>  Level 45+\
7 . <NA/@>\
<Back to Main/@main>  -  <Close Window/@exit>

[@allclasses]
All Classes -\
1 . <BlackMaggot/@Monster11> - StarterPet\
2 . <WedgeMoth/@Monster12> - StarterPet\
3 . <NA/@>\
4 . <NA/@>\
5 . <NA/@>\
6 . <NA/@>\
7 . <NA/@>\
<Back to Main/@main>  -  <Close Window/@exit>

[@Monster]
#IF
checkmarry 5
Checkjob TYPECLASSNAMEHERE
checklevel 45
#ACT
marry mob WoomaTaurus
#SAY
Please treat you pet with good care.\ \
<I'd like another one./@main>\ \
<Exit/@exit>
#ELSESAY
SERVERNAME - Pet Limit Reached.\ \

Sorry!\
<Close Window/@exit>

[@Monster]
#IF
checkmarry 5
Checkjob TYPECLASSNAMEHERE
checklevel 45
#ACT
marry mob WoomaTaurus
#SAY
Please treat you pet with good care.\ \
<I'd like another one./@main>\ \
<Exit/@exit>
#ELSESAY
SERVERNAME - Pet Limit Reached.\ \

[@Monster]
#IF
checkmarry 5
Checkjob TYPECLASSNAMEHERE
checklevel 45
#ACT
marry mob WoomaTaurus
#SAY
Please treat you pet with good care.\ \
<I'd like another one./@main>\ \
<Exit/@exit>
#ELSESAY
SERVERNAME - Pet Limit Reached.\ \

[@Monster]
#IF
checkmarry 5
Checkjob TYPECLASSNAMEHERE
checklevel 45
#ACT
marry mob WoomaTaurus
#SAY
Please treat you pet with good care.\ \
<I'd like another one./@main>\ \
<Exit/@exit>
#ELSESAY
SERVERNAME - Pet Limit Reached.\ \

[@Monster]
#IF
checkmarry 5
Checkjob TYPECLASSNAMEHERE
checklevel 45
#ACT
marry mob WoomaTaurus
#SAY
Please treat you pet with good care.\ \
<I'd like another one./@main>\ \
<Exit/@exit>
#ELSESAY
SERVERNAME - Pet Limit Reached.\ \

[@Monster]
#IF
checkmarry 5
Checkjob TYPECLASSNAMEHERE
checklevel 45
#ACT
marry mob WoomaTaurus
#SAY
Please treat you pet with good care.\ \
<I'd like another one./@main>\ \
<Exit/@exit>
#ELSESAY
SERVERNAME - Pet Limit Reached.\ \

[@Monster]
#IF
checkmarry 5
Checkjob TYPECLASSNAMEHERE
checklevel 45
#ACT
marry mob WoomaTaurus
#SAY
Please treat you pet with good care.\ \
<I'd like another one./@main>\ \
<Exit/@exit>
#ELSESAY
SERVERNAME - Pet Limit Reached.\ \

[@Monster]
#IF
checkmarry 5
Checkjob TYPECLASSNAMEHERE
checklevel 45
#ACT
marry mob WoomaTaurus
#SAY
Please treat you pet with good care.\ \
<I'd like another one./@main>\ \
<Exit/@exit>
#ELSESAY
SERVERNAME - Pet Limit Reached.\ \

[@Monster]
#IF
checkmarry 5
Checkjob TYPECLASSNAMEHERE
checklevel 45
#ACT
marry mob WoomaTaurus
#SAY
Please treat you pet with good care.\ \
<I'd like another one./@main>\ \
<Exit/@exit>
#ELSESAY
SERVERNAME - Pet Limit Reached.\ \

[@Monster]
#IF
checkmarry 5
Checkjob TYPECLASSNAMEHERE
checklevel 45
#ACT
marry mob WoomaTaurus
#SAY
Please treat you pet with good care.\ \
<I'd like another one./@main>\ \
<Exit/@exit>
#ELSESAY
SERVERNAME - Pet Limit Reached.\ \

[@Monster]
#IF
checkmarry 5
Checkjob TYPECLASSNAMEHERE
checklevel 45
#ACT
marry mob WoomaTaurus
#SAY
Please treat you pet with good care.\ \
<I'd like another one./@main>\ \
<Exit/@exit>
#ELSESAY
SERVERNAME - Pet Limit Reached.\ \

[@Monster]
#IF
checkmarry 5
Checkjob TYPECLASSNAMEHERE
checklevel 45
#ACT
marry mob WoomaTaurus
#SAY
Please treat you pet with good care.\ \
<I'd like another one./@main>\ \
<Exit/@exit>
#ELSESAY
SERVERNAME - Pet Limit Reached.\ \

NPC#7 - Gambling Game

Code:
[@main]
SERVERNAME - Gambling NPC\
Welcome to my stall of gambling. Gambling in\
this village has just been leagalized by order\
of the Administrator. I'm now running\
the first gambling business. Please select your\
type of gambling :\
<Double Or Nothing/@don> - <Close Window/@exit>

[@don]
SERVERNAME - Gambling NPC\ \
This game requires you to roll a double to win.\ \
Entry Fee: 1,000,000 Gold\ 
Prize: 5,000,000 Gold\ \
<Thats Fine../@startdon> - <

[@startdon]
#ACT
take gold 1000000
movr d0 6
movr d1 6
inc d0 1
inc d1 1
playdice 2 @next1

[@next1]
#IF
equal d0 1
equal d1 1
#ACT
goto @won
break

#IF
equal d0 2
equal d1 2
#ACT
goto @won
break

#IF
equal d0 3
equal d1 3
#ACT
goto @won
break

#IF
equal d0 4
equal d1 4
#ACT
goto @won
break

#IF
equal d0 5
equal d1 5
#ACT
goto @won
break

#IF
equal d0 6
equal d1 6
#ACT
goto @won
break

#ELSEACT
goto @fail

[@won]
#ACT
give gold 5000000
#SAY
Result: <$STR(D0)>,<$STR(D1)>\
You won, Heres your prize.\ \
<Thanks/@exit>\

[@fail]
Result: <$STR(D0)>,<$STR(D1)>\
Im sorry my friend, Better luck next time!\ \
<Again/@main>\
<Thanks/@exit>\
 

CraiG^

Legend
Legendary
Jun 22, 2003
3,123
32
295
Scotland
nice scripts u make them from scratch? or just get them and edit and put on here?

anyway gd work taking the time to do this should be stickified
 

Klarmzoro

Dedicated Member
Dedicated Member
Aug 19, 2004
45
0
53
Nottingham
Nice Smeagol thanx for releasing these will help me if i decide to make a server still thinking about it . But still thanx
 

Smeagol

Dedicated Member
Dedicated Member
I used these on my own server, I checked for more and these are the only ones usable by others.

How did I copy your post Ali3n? I don't see these scripts on your realease. You should be happy that i'm being dedicative!
 

Holty

Dedicated Member
Dedicated Member
Jan 15, 2004
39
0
53
hull
m8 gr8 post im sure these will help me loads with my server :-D
 

MrMir

LOMCN n00bie
Aug 27, 2004
7
0
32
ahem smeagol u made them all your self?, what happaned to the fact tht tht gamble npc is the same i sent u apart from u changed words. Im not aving a go just u say u made em all
 

Smeagol

Dedicated Member
Dedicated Member
I didn't say I made them. I believe I didn't make one of them.. You can't just go copyrighting a NPC scirpt dude, although i'm not sure what bothers you, when it's helping other people. -_- When I was planning to start a server, these scripts where so hard for me to find, "despite searching". I'm just up for helping 'the people', or atleast trying.

No problemo Tahriel.
 

brimble2010

Dedicated Member
Dedicated Member
Jul 27, 2003
194
0
112
very nice, sum of these scripts are a pain to get hold of, i think this shud b sticky-d tbh
 

Holty

Dedicated Member
Dedicated Member
Jan 15, 2004
39
0
53
hull
yea please make this a sticky!

its great for noobie server creaters like me =D
 

Wasted.xxx

Dedicated Member
Dedicated Member
Jan 23, 2006
12
0
48
Damn these npc scripts are old..

Im smeagol btw guys who posted these ages ago ^^