NPC Commands + What they do!

smoochy boys on tour

Sollet

Guest
call me noob but this stuff ain't my strong point im good with maps and items but NPC's i just fail so can someone put a scripted for the kit man and a sell only NPC.

S.
 

Blaminator

VIP
Golden Oldie
Loyal Member
Jul 11, 2003
2,731
0
193
London
Sell only -

Code:
[@main]
Hi, I only accept items if your seling them\ \

<Sell/@sell>\\

[@sell]
#SAY
Lay down your item to be sold.

If I can find one of my old kitter NPC's ill post it here.
 

Sollet

Guest
ta for the selling one m8 but when i go to sell something it brings up no price any idea how i would fix that?
 

DeathWish

LOMCN VIP
VIP
Oct 29, 2003
1,269
1
185
Sollet said:
ta for the selling one m8 but when i go to sell something it brings up no price any idea how i would fix that?


u need to add the stuff like

%100
+5
+6

there is different ones for different items, u add it to the top of the npc
 

Sollet

Guest
Ta m8 it works now ive also worked out the kitman but anyone now what to put in the file to only let someone get one kit?
 

TheOne

Dedicated Member
Dedicated Member
Apr 19, 2003
11
0
97
Whats the command to check the purity or quality of ore/food i kno there mst be one cos it woz part of sum real mir quests around the time of 1.4
Thx
OutofSight, OutoMind
 

Pottsy

Legend
Legendary
Feb 26, 2004
3,275
252
329
u mean like that Meat Quest, where u had to have purity 20+ meat or sumin,

a m8 of mine did that for me once but i dunno where its gone (i prob deleted it)
 

The_Ninja_Monke

Dedicated Member
Dedicated Member
Nov 29, 2003
52
0
52
UK
Ive had a search but couldn't find any results, but is there a way that you can make just 1 npc do free special repairs? or is that impossible without hexing the m2server?

Thanks in advanced for your help:)
 

Karl

LOMCN VIP
VIP
Mar 8, 2004
897
33
275
Gloucester
Jonesy Boi said:
can ne1 do 1 for me that teleports u to a 30-33 lvling place and so they cant tele in there after lvl 33 plz?

#IF
Checklevel 30
#ACT
goto @almost
#ELSEACT
goto @lowlev

[@almost]
#IF
Checklevel 33
#ACT
goto @highlev
#ELSEACT
give TownTeleport 1
mapmove MAP

[@lowlev]
#SAY
Sorry my friend you are to low level.\
<Ok/@exit>

[@highlev]
#SAY
Sorry my friend you are to high level.\
<Ok/@exit>


hope this helps.
 

thephoenix

Dedicated Member
Dedicated Member
Aug 10, 2004
223
0
63
Wales, UK
Starter Kit Npc :

Code:
[@main]
#IF
check [001] 1
#SAY
<$USERNAME>, haven't I seen you before?\
I have given you your items, what you did with them\
is none of my concern, please leave, I have a bad head ache!\\
#ELSEACT
goto @main2

[@main2]
#IF
checkjob wiz
#ACT 
goto @1
#ELSEACT
goto @a2

[@1]
#act
give put item name here
give put item name here
give put item name here
give put item name here
give put item name here
give put item name here
give put item name here
goto @11


[@a2]
#IF
checkjob taoist
#ACT 
goto @2
#ELSEACT
goto @a3

[@2]
#act
give put item name here
give put item name here
give put item name here
give put item name here
give put item name here
give put item name here
give put item name here
goto @22

[@a3]
#IF
checkjob warr
#ACT 
goto @3
#ELSEACT
goto @main2

[@3]
#act
give put item name here
give put item name here
give put item name here
give put item name here
give put item name here
give put item name here
give put item name here
goto @33

[@11]
#ACT
set [001] 1
#SAY
Enjoy Your Kit
 <Leave/@exit>

[@22]
#ACT
set [001] 1
#SAY
Enjoy Your Kit
 <Leave/@exit>

[@33]
#ACT
set [001] 1
#SAY
Enjoy Your Kit
 <Leave/@exit>

This Will Give Items To That Person, And When Ever They Try Get Them Again No Matter What They Do With Them, You Won't Be Given Them On That ID.

Hope You Like

(Thanks To xxXenaxx for the code)
 

Danny-B-

LOMCN Veteran
Veteran
Sep 16, 2004
265
0
63
lol thats easy just use the checknamelist command


so like this...

[@main]
#IF
checknamelist something.txt
#SAY
Welcome logic3\
What would you like to do?\ \

<Blah blah/@blahblah>\
<Blah/@blah>\
#ELSESAY
You have no permision to be here\ \

<Ok Bye/@exit>\



but where u put ur npc like market_def folder u hav to make a .txt file called "something" in this case then you have to add ur char name to it.

This sounds cool :P

So if i add a textfile in the NPC folder of all the users on my server, could i create an NPC that will check, out of those names who is online at that time ?

If so could ya hint on how it would be done :P
 

stan

Guest
Blam thx for those NPC commands there was a few i didnt know and a few i have never seem before. :exercisee
 

ToxicBadger

Dedicated Member
Dedicated Member
Feb 28, 2004
249
0
63
London
Aspious said:
Question..

[@aab]
#IF
DAYOFWEEK MON
#SAY
<Here is your task/@mon>
break
#ELSEIF
DAYOFWEEK TUE
#ELSESAY
<Here is your task/@tue>
Wouldn't Work...
I think that this would work though:

[@aab]
#IF
DAYOFWEEK MON
#SAY
<Here Is Your Task/@mon>
#ELSEACT
goto @tue1

[@tue1]
#IF
DAYOFWEEK TUE
#SAY
<Here Is Your Task/@tue>
#ELSEACT
goto @wed1

[@wed1]
#IF
DAYOFWEEK WED
#SAY
<Here Is Your Take/@wed>
#ELSEACT
goto @thur1

and so on and so on :)
 

nedge

Dedicated Member
Dedicated Member
Sep 24, 2004
48
0
52
Hmm Right i read all thi snad now im really confussed, dont sose anyone know how to make a NPC that does BUY // SELL // REPAIR all items ?? anyone help thanx
 

Rachel

LOMCN Veteran
Veteran
Aug 14, 2003
308
0
113
Blaminator said:
Sell only -

Code:
[@main]
Hi, I only accept items if your seling them\ \

<Sell/@sell>\\

[@sell]
#SAY
Lay down your item to be sold.

If I can find one of my old kitter NPC's ill post it here.

say i added that NPC..where would it be?
 

Ragnar

Hallowed be thy name
Legendary
Golden Oldie
Loyal Member
Jul 20, 2004
5,258
3
295
Rachel said:
say i added that NPC..where would it be?
I think you just paste that to your NPC script file (that is if it will just be a plain NPC for selling items).