My first npc

steven162

Dedicated Member
Dedicated Member
Feb 1, 2007
140
0
63
Well for my first NPC thought id save gms some time with this 1 and please dont go flaming it or what ever cos its my first npc and it took work and time to do :S and thanx to all the people on here that helped me and all the guides that have been posted :) well done

[@main]
#IF
ISADMIN
#SAY
Server Runtime <$SERVERRUNTIME> Server Count <$USERCOUNT>\\
Hello Master <$USERNAME> Congratulations you user count atm is <$USERCOUNT>,\Let me
obey and serve you. Are you a Warrior? Wizard? Taoist?\Well it dosnt matter because\You
can learn all skills from all classes from me\Or are you sick of changing ur Obsevers
Classes? and Gender?\Well let me help you there i can do all these :D\\
Woul you like me to procede with your requests?\\
<Yes/@p2> <No Thanks/@exit>\
[@p2]
<Add Skills/@addskill> <Remove all skills/@remove> <Change Class/@p3> <Change
Gender/@p4>\<ClearMobs/@p5>\
<leave/@exit>
[@addskill]
#SAY
Please choose which skill to be added. Skill will be\
added at level 3 just for you master!\ \
<Warrior/@warr>\
<Wizard/@wiz>\
<Taoist/@tao>\
<NeverMind/@exit>\
<Back/@main>\ \ \
[@warr]
#SAY
Choose skill...\
<Fencing/@fence> <Slaying/@slay> <Thrusting/@thrust> <TDB/@tdb> <CrossHalfmoon/@xmoon>
<ShoulderDash/@dash> <Rage/@rage>\
<FlameSword/@fsword> <Entrap/@entrap> <LionR/@lion>
<BladeAv/@baval> <Profield/@prof> <WarLordCloud/@WLC>\
<Nevermind/@exit>\
<Back/@addskill>\ \
[@wiz]
#SAY
Choose skill...\
<Repulsion/@repul> <TBolt/@tbolt> <FlameField/@ffl> <MAgicShield/@magsh> <Mirror/@mirr>
<Teleport/@tele> <MeteorStr/@metstr>\<Blizzard/@blizz> <Firewall/@fwall>
<FrosCrunch/@fcrun> <TU/@tun> <IceStorm/@icest>\ \
<Nevermind/@exit>\
<Back/@addskill>\ \
[@tao]
#SAY
Choose Skill...\
<SpiritSword/@spirit> <MassHealing/@mass> <SoulFireBall/@sfire> <Poisoning/@pois>
<MassPoison/@massp>\<UlitmateEnh/@ulte> <Curse/@curse> <TrapHex/@trap> <Hiding/@hide>
<Revelation/@revel> <BlessedArm/@bless>\<EnergyRepulse/@enrgy> <Hallucination/@halu>
<Purification/@puri> <CrossMoon/@CM>\
<Nevermind/@exit>\
<Back/@addskill>\ \
[@remove]
#IF
#ACT
CLEARSKILL
#SAY
You now have no learned skills!\ \
<Back/@main>\
<Exit/@exit>\ \ \
[@fence]
#IF
#ACT
ADDSKILL Fencing 3
#SAY
DONE Master!\ \ \
<Add More/@warr>\
[@slay]
#IF
#ACT
ADDSKILL Slaying 3
#SAY
DONE Master!\ \ \
<@Add More/@warr>\
[@thrust]
#IF
#ACT
ADDSKILL Thrusting 3
#SAY
DONE Master!\ \ \
<Add More/@warr>\
[@tdb]
#IF
#ACT
ADDSKILL TwinDrakeBlade 3
#SAY
DONE Master!\ \ \
<Add More/@warr>\
[@xmoon]
#IF
#ACT
ADDSKILL Crosshalfmoon 3
#SAY
DONE Master!\ \ \
<Add More/@warr>\
[@dash]
#IF
#ACT
ADDSKILL Shoulderdash 3
#SAY
DONE Master!\ \ \
<Add More/@warr>\
[@rage]
#IF
#ACT
ADDSKILL Rage 3
#SAY
DONE Master!\ \ \
<Add More/@warr>\
[@fsword]
#IF
#ACT
ADDSKILL FlamingSword 3
#SAY
DONE Master!\ \ \
<Add More/@warr>\
[@entrap]
#IF
#ACT
ADDSKILL Entrapment 3
#SAY
DONE Master!\ \ \
<Add More/@warr>\
[@lion]
#IF
#ACT
ADDSKILL Lionroar 3
#SAY
DONE Master!\ \ \
<Add More/@warr>\
[@baval]
#IF
#ACT
ADDSKILL BladeAvalanche 3
#SAY
DONE Master!\ \ \
<Add More/@warr>\
[@prof]
#IF
#ACT
ADDSKILL ProtectionField 3
#SAY
DONE Master!\ \ \
<Add More/@warr>\
[@repul]
#IF
#ACT
ADDSKILL Repulsion 3
#SAY
DONE Master!\ \ \
<Add More/@wiz>\
[@tbolt]
#IF
#ACT
ADDSKILL Thunderbolt 3
#SAY
DONE Master!\ \ \
<Add More/@wiz>\
[@ffl]
#IF
#ACT
ADDSKILL Flamefield 3
#SAY
DONE Master!\ \ \
<Add More/@wiz>\
[@magsh]
#IF
#ACT
ADDSKILL Magicshield 3
#SAY
DONE Master!\ \ \
<Add More/@wiz>\
[@mirr]
#IF
#ACT
ADDSKILL Mirroring 3
#SAY
DONE Master!\ \ \
<Add More/@wiz>\
[@tele]
#IF
#ACT
ADDSKILL Teleport 3
#SAY
DONE Master!\ \ \
<Add More/@wiz>\
[@metstr]
#IF
#ACT
ADDSKILL Meteorstrike 3
#SAY
DONE Master!\ \ \
<Add More/@wiz>\
[@blizz]
#IF
#ACT
ADDSKILL Blizzard 3
#SAY
DONE Master!\ \ \
<Add More/@wiz>\
[@fwall]
#IF
#ACT
ADDSKILL Firewall 3
#SAY
DONE Master!\ \ \
<Add More/@wiz>\
[@fcrun]
#IF
#ACT
ADDSKILL Frostcrunch 3
#SAY
DONE Master!\ \ \
<Add More/@wiz>\
[@tun]
#IF
#ACT
ADDSKILL Turnundead 3
#SAY
DONE Master!\ \ \
<Add More/@wiz>\
[@icest]
#IF
#ACT
ADDSKILL Icestorm 3
#SAY
DONE Master!\ \ \
<Add More/@wiz>\
[@spirit]
#IF
#ACT
ADDSKILL Spiritsword 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
[@mass]
#IF
#ACT
ADDSKILL Masshealing 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
[@sfire]
#IF
#ACT
ADDSKILL Soulfireball 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
[@pois]
#IF
#ACT
ADDSKILL Poisoning 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
[@massp]
#IF
#ACT
ADDSKILL Poisoncloud 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
[@ulte]
#IF
#ACT
ADDSKILL Ultimateenhancer 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
[@curse]
#IF
#ACT
ADDSKILL Curse 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
[@trap]
#IF
#ACT
ADDSKILL TrapHexagon 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
[@hide]
#IF
#ACT
ADDSKILL Hiding 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
[@bless]
#IF
#ACT
ADDSKILL BlessedArmour 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
[@enrgy]
#IF
#ACT
ADDSKILL Energyrepulsor 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
[@halu]
#IF
#ACT
ADDSKILL Hallucination 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
[@revel]
#IF
#ACT
ADDSKILL Revelation 3
#SAY
DONE Master!\ \ \
<@Add More/@tao>\
[@Puri]
#IF
#ACT
ADDSKILL Purification 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
[@CM]
#IF
#ACT
ADDSKILL CrossMoon 3
#SAY
DONE Master!\ \ \
<Add More/@tao>\
{@WLC]
#if
#act
addskill WarLordCloud 3
#say
DONE Master! \ \ \
<Add More/@tao>\
[@p3]
#say
change Job <warrior/@warrior> <Wizard/@wizard> <taoist/@taoist>\
[@warrior]
#act
changejob warrior
[@wizard]
#act
changejob wizard
[@taoist]
#act
changejob taoist
[@p4]
#say
Change Gender <Male/@Male> <Female/@Female>\
[@male]
#if
Gender Woman
#act
changegender 0
#say
Please relog for this to take full affect!
#elsesay
You are already a Male!\
[@Female]
#if
Gender Man
#act
Changegender 1
#say
Please relog for this to take full affect!
#elsesay
You are already a Female!\
[@p5]
#say
Have you been testing mobs on EventMap/R001?\And have a few gotten away?\Well use this
it will clear any mobs that you have missed\\
<ClearMobs/@MONCLEAR>\
[@MONCLEAR]
#act
MONCLEAR R001
 

Attachments

  • GMskillnpc-0.txt
    6.1 KB · Views: 39

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
nice one :)
only a lil question to it did u test changegender with woman and man..... ididnt know if it work in lom2 but in lom3 gender is ever male

like :

#if
checkgender 1
#act
chggender 0
#elseact
chggender 1

as gm there is no gendercheck needed i think.... also its also well... if u say only

#say
u wanna change ur gender
<yes/@ok1>
<no/@main>

[@ok1]
#act
chggender

only a question as i said its a nice one !!!

lg
ameno

EDIT: i found the link that is the reason why i asked if it work on LoM2 that way :
http://www.lomcn.co.uk/forum/showthread.php?t=53587
 
Last edited:

steven162

Dedicated Member
Dedicated Member
Feb 1, 2007
140
0
63
Yea i tested the gender chage and it all works thanx alot bud :)
 

JSB123

LOMCN Veteran
Veteran
Aug 7, 2004
370
0
63
S.Yorkshire
nice one :)
only a lil question to it did u test changegender with woman and man..... ididnt know if it work in lom2 but in lom3 gender is ever male

like :

#if
checkgender 1
#act
chggender 0
#elseact
chggender 1

as gm there is no gendercheck needed i think.... also its also well... if u say only

#say
u wanna change ur gender
<yes/@ok1>
<no/@main>

[@ok1]
#act
chggender

only a question as i said its a nice one !!!

lg
ameno

EDIT: i found the link that is the reason why i asked if it work on LoM2 that way :
http://www.lomcn.co.uk/forum/showthread.php?t=53587
Im not being funny mate, but theres a huge difference between mir2 and mir3 commands, and you're sending people off track with all your posting about 'on mir3 its this...'

Maybe search the forums before you send someone in the wrong direction.. As you may cost them some time and frustration..
 

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
mhh i send with that questions noone to nowhere i asked for my info not for hims .......................and if he had a prob i was the one that helped him as all other say nothin.......................... like its normaly here on LoMcn

or tell me where u was as he had all the time questions ??? and tell me why all from him is working ??

so maybe get ur crap like all here do (without a hand full of pps and let me do, what i do, how i wanna do) next if he need help i will help him and if i can............ i help also others.......... but where is ur help ??

so let me my peace

(for my info cause i play now with 2.4 files my 3.38 files running perfect) some ppl should open there eyes before they posting
 
Last edited:

steven162

Dedicated Member
Dedicated Member
Feb 1, 2007
140
0
63
I've actually made a skillnpc myself which is scarily similar to this, well done =]

Well i had used someones skill scrip not sure if it was urs, i used it to learn how to add the skills and i added the skils in the sae order and added an extra 1 or 2 but thanx alot m8 :)
 

Omen_lom

Golden Oldie
Golden Oldie
May 29, 2006
1,761
14
144
:P its not too hard to script as long as you know the commands.

Good 1st script though mate, well done :P
 

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
Not so bad for the first ^^, only a bit hard to read it...

a littel bug I have see is here :

{@WLC] <-- { = [
#if
#act
addskill WarLordCloud 3
#say
DONE Master! \ \ \
<Add More/@tao>\


I can't say if have Mir2 Command Goto and Call Function, if yes then you can some things made easy. (It can only say a Mir2 Server Coder)

Excemple on Tao :

Code:
[@tao]
#SAY
Choose Skill...\
  <SpiritSword/@MyTaoFunc(Spiritsword, 3)> 
  <MassHealing/@MyTaoFunc(Masshealing, 3)>\  
  <MassPoison/@MyTaoFunc(Poisoncloud, 3)>\
 ... and so one everytime the same function with the correct Spell name and
     at last the Level to can easy change if it need
  <Nevermind/@exit>\
  <Back/@addskill>\ \ 

// This is then a UNI function to use for all the Spells and here for better   
   understand only for the TAO
[@MyTaoFunc()]
#ACT
  Mov A1 %ARG(1)  ;; hold the spell name
  Mov P1 %ARG(2)  ;; hold the Level
  AddSkill %A1 %P1 
  Goto @EndTaoFunc

[@EndTaoFunc]
#SAY
 DONE Master! \ \ \
 <Add More/@tao>\

I hope it helps a bit to made littel easy scripts ^^

/Coly
 

GhettoFx

Runescape HD
Golden Oldie
May 17, 2005
920
0
122
that looks very simple to mine and lifco npc we make up and release.