[Holley] Problem Script

kaiser86

Dedicated Member
Dedicated Member
Dec 13, 2011
64
0
32
Spain
Hi all
My question is, I wonder if someone could help me with a script,
I want to do is a npc that when your kill 4 boss you access to another room that is check that the 4 boss killed in that room to get into the other room and if still alive some boss of the 4 not let you in


Thanks and regards

Sorry my Englihs use google translator.
 

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
175
Redditch, UK
You can do this by using flags, use a mapquest_def script to trigger when a boss is killed, then add a flag such as

#ACT
Set [001] 1

this will say you have killed this boss
then to check if they have killed it

#IF
CHECK [001] 1
#ACT
mapmove 11
#ELSEACT
mapmove 0

Just edit to search for 4 rather than 1 like

#IF
CHECK [001] 1
CHECK [002] 1
CHECK [003] 1
CHECK [004] 1
#ACT
Mapmove Boss2
#ELSEACT
Mapmove Boss1
 
Upvote 0

kaiser86

Dedicated Member
Dedicated Member
Dec 13, 2011
64
0
32
Spain
Hi thanks for your reply,
Can you tell me what kind of script used in mapquest_def please
thanks
 
Upvote 0

dsmir3

LOMCN Veteran
Veteran
Loyal Member
Mar 12, 2010
311
7
45
Judging by your response, you don't actually have a clue what your doing with regards to the server files. I would suggest that you go HERE and learn to script first, then read through just about every post in this section and learn what the rest of us had to, it will also stop you from asking the same old questions that are answered on a regular basis.
 
Upvote 0

kaiser86

Dedicated Member
Dedicated Member
Dec 13, 2011
64
0
32
Spain
Hi thanks for your reply,
I did not know this site and I've been looking but have not found anything so I would like to receive a little help
thanks and regards.

Hi I have done this and wanted to know if anyone can tell me the script to the quest to make me have proven experience with giveexp 2000000 does not work any help please?


Thank you!


[@fleasrus1]
#IF
CHECK [380] 0
#ACT
SET [380] 1
goto @fleasrus
break
#ELSEACT
break


[@fleasrus2]
#IF
checkitem ParalysisRing 1
#ACT
take ParalysisRing 1
#SAY
{FCOLOR/10}<Introducir Nombre de magia/@@InputMagName1>{FCOLOR/12}\\
[@@InputMagName1]
#ACT
MOV A4 %INPUTSTR
goto @rinimabugei1


[@rinimabugei1]
#if
CHKMAGICLEVEL %A4 3
#act
HLSCRIPTCMD CHANGEMAGLEVEL %A4 4
SysMsg "Tu magia ha sido aumentada!!!:)"
#IF
CheckFame
#ACT
Mov D4 %P9
Inc D4 8
setfame %D4
SysMsg "Tus fp han aumentado!:)"
SysMsg "Tu Registro de misiones ha sido actualizado"
SET [381] 1
Mision completada\
#SAY
< Gracias!/@joblist>
#ELSESAY
Largo de aqui!\
< Me voy!/@Exit>
 
Last edited:
Upvote 0

kaiser86

Dedicated Member
Dedicated Member
Dec 13, 2011
64
0
32
Spain
Hello Yolom,
Thank you so much for your help works well
Thank you!!


As for what to Geordiehc,
The process works, when I kill the boss throws the flag and let me go to another map,
but when the boss respawn again, having thrown the flag on the last boss, talk to the npc and still letting me some idea?


thanks


Sorry for my English using Google translator
 
Upvote 0

Yolom

LOMCN Veteran
Veteran
Aug 7, 2010
325
21
45
Spain
Just check if mob is dead...

Replaces the words marked with colors, for your appropriate.

Code:
[@main]
#IF
Checkmonmap [COLOR=#b22222]map[/COLOR] [COLOR=#800080]quantity[/COLOR] [COLOR=#0000cd]mob[/COLOR]
#SAY
You have to kill at [COLOR=#006400]Boss1[/COLOR] to move to [COLOR=#006400]Boss2[/COLOR].\
#ELSEACT
mapmove [COLOR=#b22222]map[/COLOR] [COLOR=#4b0082]X[/COLOR] [COLOR=#2f4f4f]Y[/COLOR]
break

Regards,
 
Upvote 0

kaiser86

Dedicated Member
Dedicated Member
Dec 13, 2011
64
0
32
Spain
Hi thanks for the answers
this is my script:

[@main]
#SAY
Para transpasar este humbral deberas.\\
haber aniquilado a los 4 jefes de esta zona\\
<?Estas preparado?/@go>\
<Tengo miedo/@exit>\\\


[@go]
#IF
CHECK [580] 1
CHECK [581] 1
CHECK [582] 1
CHECK [583] 1
CHECKITEM MirRing 1
#ACT
MapMove House
#ELSESAY
No cumples los requisitos.\







Once the zone chairpersons are dead let me enter the selected map,
but when the zone chairpersons come back even when they still letting me live
I tested your script yolom but only works and lets me go to the next room if bosses are alive.


Thanks for your help
 
Upvote 0

Yolom

LOMCN Veteran
Veteran
Aug 7, 2010
325
21
45
Spain
I tested your script yolom but only works and lets me go to the next room if bosses are alive.


Thanks for your help

Wrong! This is the best way to do this, I hope you understand.

This command checks if the boss is alive or dead.

Code:
#IF
Checkmonmap [COLOR=#b22222]map[/COLOR] [COLOR=#006400]quantity [/COLOR][COLOR=#0000cd]mob[/COLOR]

Map: you must put the map, where the boss is having to kill to get to the next.
Quantity: must be 1.
Mob: You have to put the name of the creature that must kill to go to next.


Code:
[@main]
#IF
Checkmonmap map 1 mob
#SAY
You have to kill at Boss1 to move to Boss2.\
#ELSEACT
mapmove map X Y  
break

Reading this script, says:
If in the "map" are at least "1 (Quantity)" "mob" alive, will tell you that you have to kill him. But if not alive will take you to the next room.



Regards,
 
Upvote 0

dagras

LOMCN Veteran
Veteran
Feb 6, 2011
282
3
44
I want to make a script, on an npc, that players can use a password system (their own password) to teleport to a set map, sort of like an own private map with their choice of mobs such as snowtower, oasis, witch island , desertcity, numaruins etc.

but also to say who is on that map, and not allow others to be able to teleport to it unless they know the password.and once the map is cleared then those that are in that map will be teleported out so other players can request that map.


this is the password script i have to move to xxx map.

[@PWChoose11]
#IF
#ACT
mov A1 ""
goto @typepw11
[@typepw11]
#SAY
<Enter desired password/@@TypePw11>\
You wish to confirm the password as:{FCOLOR/10}<$OUTPUT(A1)>{FCOLOR/12}?\\
<Continue/@continuetitle11>\
<Reset/@pwchoose11>\
[@@TypePw11]
#ACT
mov A1 %Inputstr
goto @typepw11
[@continuetitle11]
#IF
EQUAL A1 "athena"
#ACT
SYSMSG "You have gained access"
MAPMOVE 12b 150 150
#ELSEACT
SYSMSG "You do not have the correct password"


i have tried to add the following to it too

[@main]
#IF
Checkmonmap 12b
#SAY
You have to kill All mobs on F1 to move to F2.\
please re-check alive monsters\
#ELSEACT
mapmove 12b 150 150
break

any help would be appreciated

thx
 
Upvote 0