How do I make items run scripts?

NickAKAVexus

Golden Oldie
Golden Oldie
Apr 16, 2005
1,427
1
145
New york
I discovered how to check if your on a certain map so now guild decoration systems can be completed properly no limited movment crap. :) I will of course share this after I have it working.
 

Slanesh

Golden Oldie
Golden Oldie
Sep 6, 2004
522
6
125
Stoke, England
Set STDMode to 31 and anicount to differeing numbers (each number has to have a unique anicount from 1 to 30 as far as I can remember).

Then, in the C:\Mirserver\Mir200\Envir\market_def\QFunction-0.txt type an NPC code using the following commands:

Code:
[@StdModeFunc1] for item with Anicount 1
[@StdModeFunc2] for item with Anicount 2
etc etc

Here's an example I made:

Code:
[@StdModeFunc1]
#IF
CHECKSLAVECOUNT < 5
#ACT
goto @summon1
#ELSEACT
goto @error1

[@summon1]
#ACT
recallmob FeliceHunter 0
#SAY
You have summoned a Felice Hunter!\ \
<Exit/@exit> \

[@error1]
#ACT
give SummonFelice 1
#SAY
You cannot summon any more creatures...\ \
<Exit/@exit> \


[@StdModeFunc2]
#IF
CHECKSLAVECOUNT < 5
#ACT
goto @summon2
#ELSEACT
goto @error2

[@summon2]
#ACT
recallmob Ogre 0
#SAY
You have summoned an Ogre!\ \
<Exit/@exit> \

[@error2]
#ACT
give RecallOgre 1
#SAY
You cannot summon any more creatures...\ \
<Exit/@exit> \
 
Upvote 0

Jamie

LOMCN Developer
Developer
Mar 29, 2003
4,797
299
370
United Kingdom
Slanesh said:
Set STDMode to 31 and anicount to differeing numbers (each number has to have a unique anicount from 1 to 30 as far as I can remember).

Then, in the C:\Mirserver\Mir200\Envir\market_def\QFunction-0.txt type an NPC code using the following commands:

Code:
[@StdModeFunc1] for item with Anicount 1
[@StdModeFunc2] for item with Anicount 2
etc etc

Here's an example I made:

Code:
[@StdModeFunc1]
#IF
CHECKSLAVECOUNT < 5
#ACT
goto @summon1
#ELSEACT
goto @error1

[@summon1]
#ACT
recallmob FeliceHunter 0
#SAY
You have summoned a Felice Hunter!\ \
<Exit/@exit> \

[@error1]
#ACT
give SummonFelice 1
#SAY
You cannot summon any more creatures...\ \
<Exit/@exit> \


[@StdModeFunc2]
#IF
CHECKSLAVECOUNT < 5
#ACT
goto @summon2
#ELSEACT
goto @error2

[@summon2]
#ACT
recallmob Ogre 0
#SAY
You have summoned an Ogre!\ \
<Exit/@exit> \

[@error2]
#ACT
give RecallOgre 1
#SAY
You cannot summon any more creatures...\ \
<Exit/@exit> \


Thx - This Helps alot :)

P.S - Just refreshing it as it will be asked oftern
 
Upvote 0