[CD3.55] help script in menu D

kastaña

Dedicated Member
Dedicated Member
Jun 18, 2012
15
1
29
Hello I am new at forum

I want to create script in D to invoke mob and bos near pj



depending on the map this






example;

PJ is in kr met --> invoke mooneviltongs in kr for one stoneofking OK

PJ is in bichon ---> invoke mooneviltongs in bichon for one stoneofking fail for not being in kr met
 

kastaña

Dedicated Member
Dedicated Member
Jun 18, 2012
15
1
29
I want to create option in menu D to invoke boss near pj

[@Invoke]
#SAY
Welcome <$USERNAME>, here you can invoke different boss,
You need to be in your KR, also need one stoneofking

<Invoke Mooneviltongs/@MET>\
<Invoke ForbiddenChief/@FC>\
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
So you want to checkitem stoneofkings to see if it's in bag;
You need to ask what boss they want to spawn;
Spawn boss then take stoneofkings ??

#SAY
Welcome <$USERNAME>, here you can invoke different boss,
You need to be in your KR, also need one stoneofking

<Invoke Mooneviltongs/@MET>\
<Invoke ForbiddenChief/@FC>\

[@MET]
#IF
checkitem StoneofKings 1
#ACT
mongenp "0,250,150,10" MoonEvilTongs 1 <------spawns on map 0, location 250, 150 in a radius of 10 steps 1 MoonEvilTong
TAKE StoneofKings 1
close
#ELSEACT
sysmsg "You don't have what is required"
close
 
Last edited:
  • Like
Reactions: LightningStar
Upvote 0

kastaña

Dedicated Member
Dedicated Member
Jun 18, 2012
15
1
29
I want the boss appears by pj

example
to invoke met need be pj in kr met


[@Main]
#SAY
<MET/@met>\\
;--------------------------------------------
[@met]
#if
checkitem StoneofKings 1
#act
Take StoneofKings 1
mov D4 %P9
Mov A1 %USERX
Mov A2 %USERY
ForMatStr "%s,%s,%s,1" %A0 %A1 %A2
MonGenP "%A9" mooneviltongs 1 1
#SAY
Met invoke!!
#ELSESAY
not have what it takes

pd.I just want this work if pj this in kr met




I dont know which is command for script check map and cords of pj
 
Last edited:
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
Put it all together and you get :)

[@Invoke]
#SAY
Welcome <$USERNAME>, here you can invoke different boss,
You need to be in your KR, also need one stoneofking

<Invoke Mooneviltongs/@MET>\
<Invoke ForbiddenChief/@FC>\

[@MET]
#ACT
Mov A0 %USERMAP
#IF
Equal A0 "D705"
#ACT
goto @met2
#Elseact
sysmsg "You are not in the KR"
close

[@met2]
#IF
checkitem StoneofKings 1
mongenp "D705,30,30,25" MoonEvilTongs 1
TAKE StoneofKings 1
close
#ELSEACT
sysmsg "You don't have what is required"
close

Not sure why you would want to spawn the Mob on top of you.
Script of course can be shortened if you intend to use for many KR.
 
Upvote 0

kastaña

Dedicated Member
Dedicated Member
Jun 18, 2012
15
1
29
thank you both!!! thank thank

I have the script:chuncky:

idaBigA thank for command

chimera thank for example

mixing and testing and got the script :courage:

[@Main]
#SAY
<MET/@met>\\

;--------------------------------------------
[@met]
#if
checkitem StoneOfKing 1
#act
Mov A0 %USERMAP
Mov A1 %USERX
Mov A2 %USERY
ForMatStr "%s,%s,%s,3" %A0 %A1 %A2
goto @met2
#ELSESAY
not have what it takes

[@met2]
#IF
Equal A0 "31"
#act
take StoneOfKing 1
MonGenP "%A9" mooneviltongs 1
#SAY
Met invoke!!
#ELSESAY
you dont are in kr
 
Last edited:
Upvote 0