Script Help.

Play Now

Matt2010

Dedicated Member
Dedicated Member
Jan 10, 2010
22
0
27
St Evenage
He guys, me again xD

Been making a few scripts, and this one has gone wrong, ive added EXPtokens to game, and everything,
This is my script, can someone advise me on whats wrong, thanks.


[@main]
Hello <$USERNAME>!\
Do You Have An EXP Token?\
I Can Spawn You 10 EXPHens Per Token!\
<Yes I Have A Token/@Spawn>\
<No, I will Return When I Have One/@exit>

[@spawn]
#IF
#ACT
take item ExpToken
MOB ExpHen 10
#ELSE
#SAY
You Can't Fool Me!\
Come Back When You've Got A Token!\
<Sorry!!/@exit>
 

Hany

Golden Oldie
Golden Oldie
Feb 28, 2005
918
120
180
[@main]
Hello <$USERNAME>!\
Do You Have An EXP Token?\
I Can Spawn You 10 EXPHens Per Token!\
<Yes I Have A Token/@Spawn>\
<No, I will Return When I Have One/@exit>

[@spawn]
#IF
chekitem ExpToken 1
#ACT
take item ExpToken 1
MOB ExpHen 10
#ELSEACT
#SAY
You Can't Fool Me!\
Come Back When You've Got A Token!\
<Sorry!!/@exit>

Its either ElseSay or ElseAct then #say

im not sure im still learning aswell :P
 
Last edited:
Upvote 0

Matt2010

Dedicated Member
Dedicated Member
Jan 10, 2010
22
0
27
St Evenage
[1/19/2010 9:40:38 PM] Quest problem: takeitem ExpToken 1 Row:23 FileName: .\Envir\Npc_def\Exp-Q001.txt
[1/19/2010 9:40:38 PM] Quest problem: MOB ExpHen 10 Row:24 FileName: .\Envir\Npc_def\Exp-Q001.txt

=\

Anyone Fix This Script For Me?

Want to make it take the xp Token and spawn 10 ExpHens

Thanks
 
Upvote 0

Hany

Golden Oldie
Golden Oldie
Feb 28, 2005
918
120
180
[@main]
Hello <$USERNAME>!\
Do You Have An EXP Token?\
I Can Spawn You 10 EXPHens Per Token!\
<Yes I Have A Token/@Spawn>\
<No, I will Return When I Have One/@exit>

[@spawn]
#IF
chekitem ExpToken 1
#ACT
takeitem ExpToken 1
MONGEN ExpHen 10
#ELSEACT
#SAY
You Can't Fool Me!\
Come Back When You've Got A Token!\
<Sorry!!/@exit>

here u go i guess
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
dont you 2 look at the NPC command lists?

dont try help some1 if u dunno if its right hany

iuse this

#ACT
Param1 D2083 ;mapname
Param2 82 ;coords
Param3 44 ;coords
MONGEN EvilMir 1 0 ;mobname - amount - spread

noobs
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
this well saves room in the txt

MONGENEX

see the commands txt in sticky

[@main]
Hello <$USERNAME>!\
Do You Have An EXP Token?\
I Can Spawn You 10 EXPHens Per Token!\
<Yes I Have A Token/@Spawn>\
<No, I will Return When I Have One/@exit>

[@spawn]
#IF
chekitem ExpToken 1
#ACT
takeitem ExpToken 1
MONGENEX map cords 0
#ELSEACT
#SAY
You Can't Fool Me!\
Come Back When You've Got A Token!\
<Sorry!!/@exit>
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
mongenex isnt as effective as u dont have a spread, and u cannot make it set to a certain coords

for example, EC / RME that has to be at a set coords

so.. my way would work better
 
Upvote 0