[NPC Script]QFunction

Toxick

Golden Oldie
Golden Oldie
Apr 17, 2003
1,397
0
193
Right here is a little NPC scirpt i thought you might all should know :)

Firstly make a QFunction-0.txt in your MArket_def folder. now put this scipt in it

Code:
[@StdModeFunc1]
#SAY
You just used a item that has\ 
stdmode 31 and anicount 1\
<ok/@next1>

[@next1]
#SAY
Hi


[@StdModeFunc2]
#SAY
You just used a item that has\ 
stdmode 31 and anicount 2\
<ok/@next1>


Now make a item in the DB with :

stdmode 31 and use anicount between 1-30

if you look at the scipt, its a basic NPC scirpt, but it makes it so that when you double click a item, it will use the NPC scirpt, so if u make a item with
stdmode 31 and anicount 1

Code:
[@StdModeFunc1]
#SAY
You just used a item that has\ 
stdmode 31 and anicount 1\
<ok/@next1>

[@next1]
#SAY
Hi

this will appear, if u use a item with stdmode 31 and anicount 2

Code:
[@StdModeFunc2]
#SAY
You just used a item that has\ 
stdmode 31 and anicount 2\
<ok/@next1>

will appear...

Hope this is helpful to you lot :)
 

Senture

LOMCN VIP
VIP
Feb 8, 2004
1,529
1
184
possible use could be for events, such as easter eggs. you could wuite an npc script based on that so when you open an easter egg on any map it can give you a random item from a list :)
 

Toxick

Golden Oldie
Golden Oldie
Apr 17, 2003
1,397
0
193
you can also make it to recall a mob for you for a pet....

Basicly when you double click a item it will adcivate a NPC scirpt
 

Babyhack

Devilsoul Owner
VIP
Feb 4, 2004
5,343
28
305
Dublin, Ireland
LMAO i dont care about the credit
Tox in a Box can have it lol

none of us can clame credit for any of this stuff we only worked it out

BH
 

Toxick

Golden Oldie
Golden Oldie
Apr 17, 2003
1,397
0
193
nononono... i posted it i get CREDIT!!! :P i dont care who gets credit tbh, i just posted this, as i found this out a few weeks ago, just decided to post to tell pleople as some of you dont know. :P
 

Toxick

Golden Oldie
Golden Oldie
Apr 17, 2003
1,397
0
193
yes, Stdmode 31, Anicount 1-30

[@StdModeFunc2] - is the start of the item that has Anicount 2

[@StdModeFunc3] - is the start of the item that has Anicount 3

[@StdModeFunc4] - is the start of the item that has Anicount 4

ect ect
 

spunky05

LOMCN Veteran
Veteran
Loyal Member
Oct 7, 2003
271
1
65
Smallville
so with this type of script you could get gems to work like on Euro mir :)

or decent Guild Houses with Keys to Tele you there hehe
 

Sooden

LOMCN VIP
VIP
Jul 21, 2003
287
0
153
in the hole i'm digging
That is so cool, just tried it, making a toroteleport..
Guess it could be use to tt you to your house (using flag, to select players house) avoiding start points so recalled people (by house owner) done tt back to houses

guess you could have mobile shops and all sort, it rocks :P


anyway to reload file while sever live?
 

Xander

Pantie Sniffer!
Developer
Oct 20, 2003
2,737
55
295
Sheffield
hmm just did this with my egg and the egg disappears but no message comes up i used 31-1 but nothing
 

Sooden

LOMCN VIP
VIP
Jul 21, 2003
287
0
153
in the hole i'm digging
Well this works, guesing a sript error, or wrong anticount number in db -
----------------------------
[@StdModeFunc9]
#ACT
Give DearRecall 1
GMEXECUTE DearRecall
--------------------------------

Also have use numbers grater than 31,32 and they work too
 

Nightwolf

Developer
VIP
Jul 16, 2003
2,133
21
285
Manchester, UK
Xander said:
i have 31, 1 and when i double click my egg it sounds like a pot and disappers
thats down to the ledu client bundles rts bunds sound like pots aswell they just not all work as they should also weap like dss dont have the correct sound