My first ever NPC's

Play Now

-Raz0rfang-

Golden Oldie
Golden Oldie
Jan 30, 2006
831
0
103
Banned
Here i have created 8 NPC scripts for Fierce server, i'll show you too
Tell me if there wrong or anything, (what you think) :eek: Information NPC
Code:
[@main]
Hello!<$USERNAME>hmm it seems today you are wearing a<$USERWEAPON> , you must of clicked me too find out Fierce server information.\
Fierce was Born on: Unknown date the date is Unknown because Fierce is in a beta.\
A beta is when a server is not fully complete and they have put it online too test for bugs.\
GameMasters include. <Gamemaster/@GM>\.
Fierce server SabukWall owners are <$OWNERGUILD>.\
Want a JudgementMace? <JudgementMace/@JM>\.
Sorry i have random "sell-to-you" attacks.\
This will be updated when server goes up properly.\
Untill then have a look at my sells.\
<SoulSpringWand/@SSW>\
I can also Un-Bundle GoldBarBundles <Un-BundleMinePlease/@GBB>

[@GM]
The Fierce Gamemasters Include\
Raz0rfang Other characters:FireLight and RazOr\
Ben Other Characters: None at the moment\
NiK Other Characters:Snoop\
4fun Other Characters:None At the moment\
Lyncus Other Characters: None At The Moment.\
<Exit/@exit>

[@JM]
So you want too buy a JudgementMace, well this will cost ya 1.5million gold.It is a level 30 Warrior item\
<NahJustWonderingWhatYouMeant/@exit\>
<IHaveThatMoney!/@BJM>

[@BJM]
checkgold 1500000
#ELSESAY
You do not have 1.5million gold im sorry to say this means you cannot take my JudgementMace<Exit/@exit>\
TAKE 1500000
GIVE JudgmentMace

[@SSW]
So you want a SoulSpringWand? this is a Level 30 Taoist Item and will cost 1.5Million Gold
<NahJustWonderingWhatYouMeant/@exit>\
<IHaveThatMoney!/@BSSW>

[@BSSW]
checkgold 1500000
#ELSESAY
You do not have 1.5million gold im sorry to say this means you cannot take my SoulSpringWand<Exit/@exit>\
TAKE 1500000
GIVE SoulSpringWand

[@GBB]
You need your Gold BarBundle Un-Bundled? i can do this as im very talented.\
Un-BundleNow/@UnGBB
<NoThanks/@exit>

[@UnGBB]
CHECK GoldBarBundle
#ELSESAY You Have no GoldBarBundle
TAKE GoldBarBundle
GIVE GoldBar 6
[\CODE] Quest NPC[CODE][@main]
Hi <$USERNAME> i can give you a quest and if you complete my quest i can give you a prize!
<[EMAIL="Quest1/@Quest1"]Quest1/@Quest1[/EMAIL]> Easy
<[EMAIL="Quest2/@Quest2"]Quest2/@Quest2[/EMAIL]> Harder
<[EMAIL="Quest3/@Quest3"]Quest3/@Quest3[/EMAIL]> Hardest
Choose a quest you would like to do, or have completed
<[EMAIL="Exit/@exit"]Exit/@exit[/EMAIL]>
[Quest1]
Uh-Oh i have lost 4 CanninballLeaves :-(\
Can you get me 4 CanninballLeaves? I'll give you GreyPoision(S),YellowPoision(S) and 10ThousandGold.\
<[EMAIL="Sure/@exit"]Sure/@exit[/EMAIL]>
<[EMAIL="GotIt/@GotIt"]GotIt/@GotIt[/EMAIL]>
<[EMAIL="No/@main"]No/@main[/EMAIL]>
[@GotIt]
CHECK CannibalLeaf 4
#ELSESAY
No.No thats not what i want.\
TAKE CannibalLeaf 4
GIVE GreyPoision(S)
GIVE YellowPoision(S)
GIVE 10000
[Quest2]
Oh No i have lost my Dragon Slayer can you give me one? I'll give you a GoldBarBundle\
<[EMAIL="Sure/@exit"]Sure/@exit[/EMAIL]>
<[EMAIL="GotIt/@GotIt2"]GotIt/@GotIt2[/EMAIL]>
<[EMAIL="No/@main"]No/@main[/EMAIL]>
[@GotIt2>
CHECK DragonSlayer
#ELSESAY
You havnt got my DragonSlayer\
TAKE DragonSlayer
GIVE GoldBarBundle
[Quest3]
I'm making a collection of Money,WoomaHorns and ZumaRelics\
All i need is 1WoomaHorn,1ZumaRelic and 5MillionGold\
If you get me these things i will let you choose 1 item from my RecallSet for your prize\
#ELSESAY
You allready did this quest.\
<[EMAIL="Sure/@exit"]Sure/@exit[/EMAIL]>
<[EMAIL="GotIt/@GotIt3"]GotIt/@GotIt3[/EMAIL]>
<[EMAIL="No/@main"]No/@main[/EMAIL]>
[GotIt3]
CHECK WoomaHorn
CHECK ZumaRelic
CHECK 5000000
#ELSESAY
You dont have all the items i need\
#SAY
What Would you like?
<[EMAIL="RecallHelmet/@RecallHelmet"]RecallHelmet/@RecallHelmet[/EMAIL]>
<[EMAIL="RecallRing/@RecallRing"]RecallRing/@RecallRing[/EMAIL]>
<[EMAIL="RecallBracelet/@RecallBracelet"]RecallBracelet/@RecallBracelet[/EMAIL]>
<[EMAIL="RecallNecklace/@RecallNecklace"]RecallNecklace/@RecallNecklace[/EMAIL]>
[@RecallHelmet]
GIVE RecallHelmet
[@RecallRing]
GIVE RecallRing
[@RecallBracelet]
GIVE RecallBracelet
[@RecallNecklace]
GIVE RecallNecklace
 
Last edited:

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
i cba to go through and fix all your mistakes. but uve missed #SAY of every part of the npc, along with #ACT and #ELSEACT. Along with major bad grammer and bad line breaking. oh, and #IF. if i were you id start the npc over, it will b alot quicker.

btw. this is only 1 npc script, not 8.
 
Last edited:

Pebble

Golden Oldie
Golden Oldie
Jul 25, 2005
570
2
104
Essex, England
Yeah, a lot of it is wrong or too long for the box.

#ELSESAY
You do not have 1.5million gold im sorry to say this means you cannot take my JudgementMace<Exit/@exit>\
TAKE 1500000
GIVE JudgmentMace

Is also in the wrong order, plus what Furril said.
 
Last edited:

-Raz0rfang-

Golden Oldie
Golden Oldie
Jan 30, 2006
831
0
103
Banned
well as i said its my first try + there is two there and if you read it i said i'd show 2 of the 8 i found i might of spelt two like too, my mistake
 

BloodDemon

Golden Oldie
Golden Oldie
Jul 20, 2003
649
19
155
Darlington, UK
great job for your first time, 1 small thing to point out.

if u did

#IF
checkitem (item name)

even if u didnt have the item in ur bag it would trigger as a yes, to fix it u must specify the amount u want to check

#IF
checkitem (itemname) 1

and tht will work correctly, now to cover my back that was the case with the original 1.4 servers and may have been changed on emu but im just giving u a heads up b4 some ppl exploit it
 

RoNeZ

Golden Oldie
Golden Oldie
Jun 2, 2004
682
8
154
Boro
Code:
[@RecallHelmet]
GIVE RecallHelmet
[@RecallRing]
GIVE RecallRing
[@RecallBracelet]
GIVE RecallBracelet
[@RecallNecklace]
GIVE RecallNecklace

heh anyone could npc hack all of these items
 

-Raz0rfang-

Golden Oldie
Golden Oldie
Jan 30, 2006
831
0
103
Banned
Yeah was trying too work that out, wont be putting quest in for a while lol

-BloodDemon: thanks :D

-Everybody thanks everyone for helping with my errors, please keep posting :eek:
 
Last edited:

BloodDemon

Golden Oldie
Golden Oldie
Jul 20, 2003
649
19
155
Darlington, UK
-Raz0rfang- said:
Yeah was trying too work that out, wont be putting quest in for a while lol

-BloodDemon: thanks :D

-Everybody thanks everyone for helping with my errors, please keep posting :eek:

not a problem, glad to help
 

WiseWarrior

LOMCN Veteran
Veteran
Loyal Member
Nov 16, 2003
327
0
42
14 NeverNeverLand
Code:
[@main]
#SAY
Hello!<$USERNAME>hmm it seems today you are wearing\
a <$USERWEAPON> , you must of clicked me too find out\
Fierce server information. Fierce was Born on: Unknown\
date the date is Unknown because Fierce is in a beta.\
A beta is when a server is not fully complete and they\
have put it online too test for bugs. GameMasters include\
<Gamemaster/@GM>.
<More Information/@m0re1> | <Exit/@exit>

[@m0re1]
#SAY
Fierce server SabukWall owners are <$OWNERGUILD>.\
Want a JudgementMace? <JudgementMace/@JM>\.
Sorry i have random "sell-to-you" attacks.\
This will be updated when server goes up properly.\
Untill then have a look at my sells. <SoulSpringWand/@SSW>\
I can also Un-Bundle GoldBarBundles <Un-BundleMinePlease/@GBB>\ \
<Back/@main> | <Exit/@exit>


[@GM]
#SAY
The Fierce Gamemasters Include\
Raz0rfang Other characters:FireLight and RazOr\
Ben Other Characters: None at the moment\
NiK Other Characters:Snoop\
4fun Other Characters:None At the moment\
Lyncus Other Characters: None At The Moment.\ \
<Exit/@exit>

[@JM]
So you want too buy a JudgementMace, well this will cost\
ya 1.5million gold.It is a level 30 Warrior item\ \ \ \ \ \
<Nah Just Wondering What You Meant/@exit> | <I Have That Money!/@BJM>

[@BJM]
#IF
checkgold 1500000
#ACT
TAKE 1500000
GIVE JudgmentMace
#ELSESAY
You do not have 1.5million gold im sorry to say this means\
you cannot take my JudgementMace\ \ \ \ \ \
<Exit/@exit>

[@SSW]
#SAY
So you want a SoulSpringWand? this is a Level 30 Taoist\
Item and will cost 1.5Million Gold \ \ \ \ \ \
<Nah Just Wondering What You Meant/@exit> | <I Have That Money!/@BSSW>

[@BSSW]
#IF
checkgold 1500000
#ACT
TAKE 1500000
GIVE SoulSpringWand
#ELSESAY
You do not have 1.5million gold im sorry to say this\
means you cannot take my SoulSpringWand\ \ \ \ \ \
<Exit/@exit>

[@GBB]
#SAY
You need your Gold BarBundle Un-Bundled? i can do this\
as im very talented.\ \ \ \ \ \
<Un-Bundle Now/@UnGBB> | <No Thanks/@exit>

[@UnGBB]
#IF
CHECK GoldBarBundle
#ACT
TAKE GoldBarBundle
GIVE GoldBar 6
#ELSESAY
You Have no GoldBarBundle\ \ \ \ \ \ \
<Exit/@exit>

Code:
[@main]
#SAY
Hi <$USERNAME> i can give you a quest and if you\
complete my quest i can give you a prize!\ \
<Quest1/@Quest1> Easy\
<Quest2/@Quest2> Harder\
<Quest3/@Quest3> Hardest\
Choose a quest you would like to do, or have completed\
<Exit/@exit>

[Quest1]
#SAY
Uh-Oh i have lost 4 CanninballLeaves :-(\
Can you get me 4 CanninballLeaves? I'll give you\
GreyPoision(S),YellowPoision(S) and 10ThousandGold.\ \ \ \ \
<Sure/@exit> | <Got It/@GotIt> | <No/@main>

[@GotIt]
#IF
CHECK CannibalLeaf 4
#ACT
TAKE CannibalLeaf 4
GIVE GreyPoision(S)
GIVE YellowPoision(S)
GIVE 10000
#ELSESAY
No. No thats not what i want.\ \ \ \ \ \ \
<Exit/@exit>

[Quest2]
#SAY
Oh No i have lost my Dragon Slayer can you give me one?\
I'll give you a GoldBarBundle\ \ \ \ \ \ 
<Sure/@exit> | <GotIt/@GotIt2> | <No/@main>

[@GotIt2]
#IF
CHECK DragonSlayer
#ACT
TAKE DragonSlayer
GIVE GoldBarBundle 1
#ELSESAY
You havnt got my DragonSlayer\ \ \ \ \ \ \
<Exit/@exit>

[Quest3]
#SAY
I'm making a collection of Money,WoomaHorns and ZumaRelics\
All i need is 1WoomaHorn,1ZumaRelic and 5MillionGold\
If you get me these things i will let you choose 1 item from my RecallSet for your prize\ \ \ \ \
<Exit/@exit>
#ELSESAY
You allready did this quest.\ \ \ \ \ \ \
<Sure/@exit> | <Got It/@GotIt3> | <No/@main>

[GotIt3]
#IF
CHECK WoomaHorn
CHECK ZumaRelic
CHECK 5000000
#SAY
What Would you like? \ \
<RecallHelmet/@RecallHelmet>\
<RecallRing/@RecallRing>\
<RecallBracelet/@RecallBracelet>\
<RecallNecklace/@RecallNecklace>\ \
<Exit/@exit>
#ELSESAY
You dont have all the items i need\ \ \ \ \ \ \
<Exit/@exit>


[@RecallHelmet]
#ACT
GIVE RecallHelmet
close

[@RecallRing]
#ACT
GIVE RecallRing
close

[@RecallBracelet]
#ACT
GIVE RecallBracelet
close

[@RecallNecklace]
#ACT
GIVE RecallNecklace
close

You were very very lazy with this! Ive patched it up but havnt tested it but im confident all bugs are out (i hope ^^)

All i did was fix up the npc's AS THEY WERE not fix non-logical code ^^
 
Last edited: