#CALL npc command help

Desolation Mir2 (Med Rate Server)

StuzUK

Dedicated Member
Dedicated Member
May 5, 2003
91
0
82
Cyber Space
Hi all been a while hows everyone =)

I ask for the usage of the #CALL command as it saves so much time in coding NPC's

Could some one please post me a small example of how to use this.

Thanks.
 

StuzUK

Dedicated Member
Dedicated Member
May 5, 2003
91
0
82
Cyber Space
Ive seen it done before and there is code example in NPC scripter
just cant get it to load the files might just copy the file into every relevent directory until it works then ill know what one it neads to be in.

NPC scripter says mapquest_def.

Some one will know and when we find out this saves loads of time in coding npcs with less errors.

Please help to get this command back.
 

DeathWish

LOMCN VIP
VIP
Oct 29, 2003
1,269
2
265
i think you can call other npcs or something like that, thats just a guess tho

:D :P
 

TheMonk

Dedicated Member
Dedicated Member
Apr 22, 2003
107
0
93
The Void
in the \Mir200\Envir\QuestDiary folder make a txt file

format it like this

\Mir200\Envir\QuestDiary\pets.txt
[@AxeSkeleton]
{

#IF
checkmarry 5
#ACT
marry mob AxeSkeleton
#SAY
Here's your Monster.
<Can i have another pet?/@buybaby>\ \
<Thankyou/@exit>
#ELSESAY
<Exit/@exit>

}

then in ur NPC have

#CALL [pets.txt] @AxeSkeleton


this is a good way of dooing things like town tele NPCs as you can easly change the the choords in all the npcs by changing the 1 file, or for shops; you can put the buy section in call, so all shops are the same and can all be updated at once
 

StuzUK

Dedicated Member
Dedicated Member
May 5, 2003
91
0
82
Cyber Space
Thanks people also if you want more than one function use this sample.

[@testit]

{

#IF
#SAY
At last it works.\ \

<Exit/@exit>

[@testit1]

#IF
#SAY
<Test to another function/@testit2>\
Test one works.\ \

<Exit/@exit>


[@testit2]

#IF
#SAY
<Back to Test one/@testit1>\
Test Two works.\ \

<Exit/@exit>

}

Does any one have the map quest full code as sample I have used before do not work correctly.

Thanks
 

Solitude

LOMCN VIP
VIP
Apr 22, 2003
326
0
133
South Wales
Lol, took you guys a while to get this ? The #Call function is very handy indeed. But no1 seems to have guessed its original purpose yet, or even used it to its full potential yet. By the way, the file u #CALL from has to be a certain format.

Now here's a lil test for u , what does the #INCLUDE function do ??

I'll post answer after sum ppl have guessed.

p.s please dont post the npc script for it (especially if its from my programs).

--Solitude--
 

Toxick

Golden Oldie
Golden Oldie
Apr 17, 2003
1,397
0
173
hehe :):):):).... i already know it...want 2 see some of the guesses people post here:)
 

Scorpian

Golden Oldie
Golden Oldie
Jul 8, 2003
728
37
165
Manchester
Solitude said:
Lol, took you guys a while to get this ? The #Call function is very handy indeed. But no1 seems to have guessed its original purpose yet, or even used it to its full potential yet. By the way, the file u #CALL from has to be a certain format.

Now here's a lil test for u , what does the #INCLUDE function do ??

I'll post answer after sum ppl have guessed.

p.s please dont post the npc script for it (especially if its from my programs).

--Solitude--

does it include text/action with the script loaded from #call ?

so say

#CALL [pets.txt] @AxeSkeleton
#INCLUDE
this extra text

or does it include another #CALL?

#CALL [pets.txt] @AxeSkeleton
#INCLUDE [pets.txt] @AxeWarrior
 

Viola A.I.

Golden Oldie
Golden Oldie
Aug 14, 2003
692
0
153
Newcastle - UK
include prollys another version of call is it not?
Adds another script at the #include point and executes it...
Just a guess, but you should be sharing anyways (plus not sharing kinda makes me think..."liar").:P
 

Solitude

LOMCN VIP
VIP
Apr 22, 2003
326
0
133
South Wales
The #Include Command Includes A .Def (Definition) File Which Contains Mob Info For The NPC. So You Would Do

[@main]
#INCLUDE woomawarrior.def

That Would Load The Information From The File For The NPC To Use. I Made A Post About This On MSRF! A Long Time Ago. It Would Seem The .Def Files Are Unused. When I Stabalize My PC Enough To Run A Server I'll Figure This Out So I Can Use It.

--Solitude--