Simple Quest Npc - HOW ?

Drantan

Dedicated Member
Dedicated Member
Mar 27, 2010
81
0
33
España (Mallorca)
Saludos.

Me estoy volviendo loco a la hora de conseguir programar
una quest tan sencilla tal como es recoger 10 items. He
sacado la relacion entre los diferentes archivos del NPC
que da la mision. Pero el problema llega cuando:

a) No se como decirle al NPC que ofrezca la mision
b) Que diablos significa
Mov D4 %P9

He visto los comandos de NPC , pero no se donde busca
dichos valores. Gracias por adelantado.
************************************************
I'm going crazy at the time to get set
a simple quest is to collect as 10 items. I
out the relationship between different NPC files
that gives the mission. But the problem comes when:

a) do not know how to tell the NPC that provides the mission
b) What the hell means
Mov D4% P9

I have seen the NPC commands, but not where it looks
these values. Thanks in advance.

EDIT:
Example:

;;不要删掉此行
[@main]
#IF
Check [209] 1
Check [210] 1
Check [409] 0
#ACT
Mov A8 "Cerdo"
goto @TodayQuest_TQCase1
#ELSEACT
goto @main_Except

[@main_Except]
#ACT
break

[@TodayQuest_TQCase1]
#CALL [TodayQuest\QT_TotalMonster.txt] @TodayQuest_Monster_Cerdo
;;不要删掉此行
 
Last edited:

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
your Example:

;;不要删掉此行
[@main]
#IF
Check [209] 1 // For What ever the flags are in use
Check [210] 1 //
Check [409] 0 //
#ACT
Mov A8 "Cerdo" //Where you read out "Cerdo" ??
goto @TodayQuest_TQCase1
#ELSEACT
goto @main_Except

[@main_Except]
#ACT
break

[@TodayQuest_TQCase1]
#CALL [TodayQuest\QT_TotalMonster.txt] @TodayQuest_Monster_Cerdo
;;不要删掉此行



You will have a quest check that checks if the player have collect 10 items ? If Yes than why you not use

Checkitem Name Amount ????

Example

#If
Checkitem WoomaHorn 10
#act
take woomahorn 10
@goto questscript xyz
#elseact
break

if you wann have a quest after quest session make txt files

#If
checkitem WoomaHorn 10
checknamelist ../quest1.txt
#act
take WoomaHorn 10
addnamelist ../quest1.txt
@goto questscript xyz
#elsesay
You have not the needed Items!!, Or you had done that quest part./
<Exit/@exit>
#elseact
break

//example 2 quest after quest1

#if
Checkitem NumaHorn 10
checknamelist ../quest1.txt
#say
Congratulations you have completed 2nd quest!
#act
take NumaHorn 10
delnamelist ../quest1.txt
addnamelist ../quest2.txt
@goto quest3
#elsesay
you havent done the first quest of that serries or a item is missing.
#elseact
break

hope it helps abit


EDIT : Had not think about the scripts i wrote ...so there are possibilities to make it better.. i wrote them in 1 minute out of head...i see no errors...should work
 
Last edited:
Upvote 0

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
Sorry for double posting

a) Mov d4 %p9 The server reads a variable out and write it in %P9
but p9 is not stable..... so you tell the server ....that he should write what is in p9 also in d4

Mov d4 %p9 means than..... write in d4 the same what server get and wrote in p9 (or easier copy p9 in d4)

if you will have more help with textfiles take the search and look as keyword : Delnamelist , addnamelist and checknamelist and you found
 
Upvote 0

Drantan

Dedicated Member
Dedicated Member
Mar 27, 2010
81
0
33
España (Mallorca)
I'm sorry to answer so late, but this last month, I've been a little busy and I could not look much the forum.

Thank you very much for the answers, right away I start testing with this information
 
Upvote 0

Josiko

LOMCN Veteran
Veteran
Loyal Member
Apr 4, 2010
428
8
44
Spain
drantan have a very errors...

@goto kdlnf --> goto @dkjfnds

#say
kdjfnsdkfnsdfknfsd --->

#say
ksdjfnsdndsff\ or \\ for finish
 
Upvote 0