mongen

kyeron

LOMCN Veteran
Veteran
Loyal Member
Sep 28, 2008
296
1
45
timisoara
me again .. sry to bug u ppl but i cant seem to be able to make some simple commands work .. so this is my script for entering a kr (script is triggered from mapquest) with key that u get when u kill a km ,
mapquest :
Code:
D2005  [0] 0 [Enter] * * [MapQuest_Def\EnterKR] [@ogreKR]
script :
Code:
[@ogrekr]

#if 
check [401] 1
#act
enter_ok
#elseact
goto @ogrekr_1

[@ogrekr_1]
#IF
#ACT
FormatStr "FLD_nume='%s'" %USERNAME
ReadValueSql "TBL_KeyMaker" %A9 "FLD_nume,FLD_ogrekey" @LoadKeys

[@LoadKeys()]
#ACT
Mov   A1   %ARG(1)
Mov   D1   %ARG(2)


#if
Large D1 0
#act
set [401] 1
Mov  A1  %USERNAME
DEC  D1  1
FormatStr "FLD_ogrekey=%s" %D1
Mov A8 %A9
FormatStr "FLD_nume='%s'" %A1
UpdateValueSql "TBL_KeyMaker" %A9 %A8
Enter_OK
mongen demon 1 ;[COLOR="Red"]were this should be to work ? [/COLOR]

#elseact
enter_fail
#elsesay
u have <$output(D1)> key's how do u whant to go in
all script works fine exept the mongen .. i get in and i dont have a boss to kill , i tryed
Code:
mongen D2005 demon 1 ; d2005 map name 
mongen d2005 53 27 demon 1 1 ; map name coords and radius 
mongen "demon" 1 ; i saw the name betwen the " " in the mon_ai so i tryed that to
tryed to change the "mongen" position in the script but that didnt worked eighter , tryed with "goto @ogrers" and after a lil down from the script i made
Code:
[@ogrers]
#act 
mongen demon 1
, but nothing works atm
 
Last edited:

CrusaderIssy

Dedicated Member
Dedicated Member
Jun 19, 2007
31
0
52
me again .. sry to bug u ppl but i cant seem to be able to make some simple commands work .. so this is my script for entering a kr (script is triggered from mapquest) with key that u get when u kill a km ,
mapquest :
Code:
D2005  [0] 0 [Enter] * * [MapQuest_Def\EnterKR] [@ogreKR]
script :
Code:
[@ogrekr]     <<<< Should be @ogreKR like it says in the mapquest I think

#if 
check [401] 1
#act
enter_ok
#elseact
goto @ogrekr_1

[@ogrekr_1]
#IF
#ACT
FormatStr "FLD_nume='%s'" %USERNAME
ReadValueSql "TBL_KeyMaker" %A9 "FLD_nume,FLD_ogrekey" @LoadKeys

[@LoadKeys()]
#ACT
Mov   A1   %ARG(1)
Mov   D1   %ARG(2)


#if
Large D1 0
#act
set [401] 1
Mov  A1  %USERNAME
DEC  D1  1
FormatStr "FLD_ogrekey=%s" %D1
Mov A8 %A9
FormatStr "FLD_nume='%s'" %A1
UpdateValueSql "TBL_KeyMaker" %A9 %A8
Enter_OK
mongen demon 1 ;[COLOR=Red]were this should be to work ? [/COLOR]

#elseact
enter_fail
#elsesay
u have <$output(D1)> key's how do u whant to go in
all script works fine exept the mongen .. i get in and i dont have a boss to kill , i tryed
Code:
mongen D2005 demon 1 ; d2005 map name 
mongen d2005 53 27 demon 1 1 ; map name coords and radius 
mongen "demon" 1 ; i saw the name betwen the " " in the mon_ai so i tryed that to
tryed to change the "mongen" position in the script but that didnt worked eighter , tryed with "goto @ogrers" and after a lil down from the script i made
Code:
[@ogrers]
#act 
mongen demon 1
, but nothing works atm


I'd also suggest trying a line more like:
Code:
mongenp "4,104,193,5" Demon 1
mongenp "[Map],[X Coord],[Y Coord],[Radius]" [Mob Name] [Amount]

Don't know if this will work for sure but there the bits I'd guess at changing... hope it helps
 
Upvote 0

kyeron

LOMCN Veteran
Veteran
Loyal Member
Sep 28, 2008
296
1
45
timisoara
ty alot worked :P .. i tryed befour the mongep to see wot it does but didnt add the map and coords befour ... so ty works now like u said :D
 
Upvote 0