removed debugging statements

This commit is contained in:
Malcolm Roberts 2024-01-12 14:54:31 -06:00
parent 1cda0fca3d
commit 8a46c2c4bb
4 changed files with 1 additions and 9 deletions

View File

@ -5,7 +5,6 @@
function RunAction(string actionType, jsonvalue params) function RunAction(string actionType, jsonvalue params)
{ {
echo "RunAction: ${actionType}, ${params}"
if ${actionType.Equal["npc_dialog"]} if ${actionType.Equal["npc_dialog"]}
{ {
call npc_dialog_action params call npc_dialog_action params

View File

@ -4,7 +4,5 @@ function npc_dialog_action(jsonvalueref params)
{ {
variable NpcHelpers npcHelpers variable NpcHelpers npcHelpers
echo "npc_dialog_action::params ${params.AsJSON~}"
call npcHelpers.GetQuestFromNpc "${params.Get["npc_name"]}" "${params.Get["dialog_options"]}" call npcHelpers.GetQuestFromNpc "${params.Get["npc_name"]}" "${params.Get["dialog_options"]}"
} }

View File

@ -99,7 +99,6 @@ objectdef QuestWriterController
{ {
variable jsonvalue step variable jsonvalue step
step:SetValue["${Context.Source.Metadata.Get["step"].AsJSON~}"] step:SetValue["${Context.Source.Metadata.Get["step"].AsJSON~}"]
echo "${step.AsJSON~}"
QueueCommand call RunAction ${step.Get["type"]} "${step.Get["params"].AsJSON~}" QueueCommand call RunAction ${step.Get["type"]} "${step.Get["params"].AsJSON~}"
} }

View File

@ -17,7 +17,6 @@ objectdef NpcHelpers
variable QuestHelpers QuestHelper variable QuestHelpers QuestHelper
function GetQuestFromNpc(string npcName, string choices) function GetQuestFromNpc(string npcName, string choices)
{ {
echo "NpcHelpers::GetQuestFromNpc[\"${npcName}\", \"${choices}\"]"
if ${npcName.Length} < 1 if ${npcName.Length} < 1
{ {
echo "Usage: GetQuestFromNpc <NPC Name> [comma separted string of dialog choices(optional)]" echo "Usage: GetQuestFromNpc <NPC Name> [comma separted string of dialog choices(optional)]"
@ -41,8 +40,6 @@ objectdef NpcHelpers
{ {
variable string choice variable string choice
choice:Set[${choices.Token[${idx}, ","]}] choice:Set[${choices.Token[${idx}, ","]}]
echo "choice: ${choice}"
EQ2UIPage[ProxyActor,Conversation].Child[composite,replies]:SpewProperties
EQ2UIPage[ProxyActor,Conversation].Child[composite,replies].Child[${choice}]:LeftClick EQ2UIPage[ProxyActor,Conversation].Child[composite,replies].Child[${choice}]:LeftClick
wait 5 wait 5
} }
@ -52,9 +49,8 @@ objectdef NpcHelpers
variable int dialogOptionsTaken = 0; variable int dialogOptionsTaken = 0;
do do
{ {
echo "Clicking dialog option 1 for loop #${dialogOptionsTaken}"
dialogOptionsTaken:Inc dialogOptionsTaken:Inc
EQ2UIPage[ProxyActor,Conversation].Child[composite,replies].Child[button,1]:LeftClick EQ2UIPage[ProxyActor,Conversation].Child[composite,replies].Child[1]:LeftClick
wait 5 wait 5
} }
while !${RewardWindow(exists)} && ${dialogOptionsTaken} < 10 while !${RewardWindow(exists)} && ${dialogOptionsTaken} < 10