Npc question [ event ]

Josiko

LOMCN Veteran
Veteran
Loyal Member
Apr 4, 2010
428
8
44
Spain
I'm riding an event of three rooms and I want to put on 10 moobs, and that killing one go two monsters = of that, as I can do that, also I have another question, as I
adding to a map plus experience as time goes on and how do I calculate the npc a timeout, I hope I appreciate any help.

[@main]
#if
!checklevel 35
#act
mapmove z011
GOTO @MAPZ011
#ELSEACT
GOTO @CHECK2

[CHECK2]
#IF
!checklevel 55
#act
mapmove z012
GOTO @MAPZ012
#ELSEACT
GOTO @CHECK3

[@CHECK3]
!checklevel 75
#act
mapmove z013
GOTO @MAPZ013
#ELSEACT
Eres demasiado nivel para entrar a los eventos\


[@MAPZ011]
#if
#ACT
ChangeMapAttr "Z011" "SAFE"
ChangeMapAttr "Z011" "NoFly"
ChangeMapAttr "Z011" "NoRFly"
ChangeMapAttr "Z011" "NoSpell"
Monclear
Delaygoto [local] 30 @z011msg
goto @COMIENZAZ011

[@COMIENZAZ011]
#if
!CheckHum Z011 10
#act
sysmsg "¡Aver si conseguis acabar con todos los monstruos!"
 

darkkiller

LOMCN Veteran
Veteran
Loyal Member
Jul 5, 2007
254
5
65
Explain more what do you want to do

--------------------------------------------

Explica mejor lo que quieres hacer y quiza pueda ayudarte (josiko aciendo un server O.o no quiero imaginarme k lvl seran tus colegas xD)
 
Upvote 0

Josiko

LOMCN Veteran
Veteran
Loyal Member
Apr 4, 2010
428
8
44
Spain
Ya lo tengo, lo que necesitaba,

pd: Mis colegas serán el level que ellos se curren ya que no tendré char gm
solamente lo estoy montando y ayudando :)
de todos modos gracias por ofrecerte!
 
Upvote 0

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
145
Manchester, UK
I'm riding an event of three rooms and I want to put on 10 moobs, and that killing one go two monsters = of that, as I can do that, also I have another question, as I
adding to a map plus experience as time goes on and how do I calculate the npc a timeout, I hope I appreciate any help.

[@main]
#if
!checklevel 35
#act
mapmove z011
GOTO @MAPZ011
#ELSEACT
GOTO @CHECK2

[CHECK2]
#IF
!checklevel 55
#act
mapmove z012
GOTO @MAPZ012
#ELSEACT
GOTO @CHECK3

[@CHECK3]
!checklevel 75
#act
mapmove z013
GOTO @MAPZ013
#ELSEACT
Eres demasiado nivel para entrar a los eventos\


[@MAPZ011]
#if
#ACT
ChangeMapAttr "Z011" "SAFE"
ChangeMapAttr "Z011" "NoFly"
ChangeMapAttr "Z011" "NoRFly"
ChangeMapAttr "Z011" "NoSpell"
Monclear
Delaygoto [local] 30 @z011msg
goto @COMIENZAZ011

[@COMIENZAZ011]
#if
!CheckHum Z011 10
#act
sysmsg "¡Aver si conseguis acabar con todos los monstruos!"

The text in red, you can't use a delaygoto and goto in the same part of the script. This is probably where it is going wrong as its a: not going to the first part (either you haven't scripted it or haven't posted it) and B: it wont go the the 2nd part either as the goto @COMIENZAZ011 isnt being used. Try doing the script so it goes to @COMIENZAZ011 then from that part make it go to @z011msg

Like so:

Code:
[@main]
#if 
!checklevel 35 
#act
mapmove z011
GOTO @MAPZ011
#ELSEACT
GOTO @CHECK2
 
[CHECK2]
#IF
!checklevel 55
#act
mapmove z012
GOTO @MAPZ012
#ELSEACT
GOTO @CHECK3
 
[@CHECK3]
!checklevel 75
#act
mapmove z013
GOTO @MAPZ013
#ELSEACT
Eres demasiado nivel para entrar a los eventos\
 
 
[@MAPZ011]
#if
#ACT
ChangeMapAttr "Z011" "SAFE"
ChangeMapAttr "Z011" "NoFly"
ChangeMapAttr "Z011" "NoRFly"
ChangeMapAttr "Z011" "NoSpell"
Monclear
goto @COMIENZAZ011
 
[@COMIENZAZ011]
#if
!CheckHum Z011 10
#act
sysmsg "¡Aver si conseguis acabar con todos los monstruos!"
Delaygoto [local] 30 @z011msg
#elseact
sysmsg "this room is occupied please come back later"
break
 
[@z011msg]
#say
the room is free do you wish to enter?\

<
 
Last edited:
Upvote 0

Drantan

Dedicated Member
Dedicated Member
Mar 27, 2010
81
0
33
España (Mallorca)
Code:
[@main]
#if 
!checklevel 35 
#act
mapmove z011
GOTO @MAPZ011
#ELSEACT
GOTO @CHECK2
 
[[COLOR=red]@[/COLOR]CHECK2]
#IF
!checklevel 55
#act
mapmove z012
GOTO @MAPZ012
#ELSEACT
GOTO @CHECK3

[@CHECK3]
[COLOR="red"]#IF[/COLOR]
!checklevel 75
#act
mapmove z013
GOTO @MAPZ013
#ELSEACT
[COLOR="red"]sysmsg "[/COLOR]Eres demasiado nivel para entrar a los eventos[COLOR="red"]"[/COLOR]
 
......................
 
[COLOR="Red"]Forgotten Scripts[/COLOR]
 
I think the post it is a bit old, but in case anyone has not noticed and want to use the script
 
Last edited:
Upvote 0