Skip to content

Commit

Permalink
resolve conversation
Browse files Browse the repository at this point in the history
  • Loading branch information
omarcopires committed Apr 18, 2024
1 parent bbe3701 commit 18c327a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions data-canary/npc/king_canary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ local function creatureSayCallback(npc, creature, type, message)
end
npcHandler:setTopic(playerId, 2)
elseif npcHandler:getTopic(playerId) == 4 then
if player:kv():get("golden-outfit-quest") == 1 then
if player:kv():get("golden-outfit-quest") < 2 then
if goldenOutfitQuest == 1 then
if goldenOutfitQuest < 2 then
if player:removeMoneyBank(250000000) then
npcHandler:say("Take this helmet as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:addOutfitAddon(1210, 1)
Expand All @@ -117,8 +117,8 @@ local function creatureSayCallback(npc, creature, type, message)
end
npcHandler:setTopic(playerId, 2)
elseif npcHandler:getTopic(playerId) == 5 then
if player:kv():get("golden-outfit-quest") == 2 then
if player:kv():get("golden-outfit-quest") < 3 then
if goldenOutfitQuest == 2 then
if goldenOutfitQuest < 3 then
if player:removeMoneyBank(250000000) then
npcHandler:say("Take this boots as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:addOutfitAddon(1210, 2)
Expand Down
8 changes: 4 additions & 4 deletions data-otservbr-global/npc/emperor_kruzak.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ local function creatureSayCallback(npc, creature, type, message)
end
npcHandler:setTopic(playerId, 2)
elseif npcHandler:getTopic(playerId) == 4 then
if player:kv():get("golden-outfit-quest") == 1 then
if player:kv():get("golden-outfit-quest") < 2 then
if goldenOutfitQuest == 1 then
if goldenOutfitQuest < 2 then
if player:removeMoneyBank(250000000) then
npcHandler:say("Take this helmet as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:addOutfitAddon(1210, 1)
Expand All @@ -122,8 +122,8 @@ local function creatureSayCallback(npc, creature, type, message)
end
npcHandler:setTopic(playerId, 2)
elseif npcHandler:getTopic(playerId) == 5 then
if player:kv():get("golden-outfit-quest") == 2 then
if player:kv():get("golden-outfit-quest") < 3 then
if goldenOutfitQuest == 2 then
if goldenOutfitQuest < 3 then
if player:removeMoneyBank(250000000) then
npcHandler:say("Take this boots as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:addOutfitAddon(1210, 2)
Expand Down
8 changes: 4 additions & 4 deletions data-otservbr-global/npc/king_tibianus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ local function creatureSayCallback(npc, creature, type, message)
end
npcHandler:setTopic(playerId, 2)
elseif npcHandler:getTopic(playerId) == 4 then
if player:kv():get("golden-outfit-quest") == 1 then
if player:kv():get("golden-outfit-quest") < 2 then
if goldenOutfitQuest == 1 then
if goldenOutfitQuest < 2 then
if player:removeMoneyBank(250000000) then
npcHandler:say("Take this helmet as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:addOutfitAddon(1210, 2)
Expand All @@ -127,8 +127,8 @@ local function creatureSayCallback(npc, creature, type, message)
end
npcHandler:setTopic(playerId, 2)
elseif npcHandler:getTopic(playerId) == 5 then
if player:kv():get("golden-outfit-quest") == 2 then
if player:kv():get("golden-outfit-quest") < 3 then
if goldenOutfitQuest == 2 then
if goldenOutfitQuest < 3 then
if player:removeMoneyBank(250000000) then
npcHandler:say("Take this boots as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:addOutfitAddon(1210, 1)
Expand Down
8 changes: 4 additions & 4 deletions data-otservbr-global/npc/percybald.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ local function creatureSayCallback(npc, creature, type, message)
end
npcHandler:setTopic(playerId, 13)
elseif npcHandler:getTopic(playerId) == 15 then
if player:kv():get("royal-costume-outfit-quest") == 1 then
if player:kv():get("royal-costume-outfit-quest") < 2 then
if royalCostumeOutfitQuest == 1 then
if royalCostumeOutfitQuest < 2 then
if player:removeItem(22516, 7500) and player:removeItem(22721, 6250) then
npcHandler:say("Take this sheild as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:addOutfitAddon(1457, 1)
Expand All @@ -192,8 +192,8 @@ local function creatureSayCallback(npc, creature, type, message)
end
npcHandler:setTopic(playerId, 13)
elseif npcHandler:getTopic(playerId) == 16 then
if player:kv():get("royal-costume-outfit-quest") == 2 then
if player:kv():get("royal-costume-outfit-quest") < 3 then
if royalCostumeOutfitQuest == 2 then
if royalCostumeOutfitQuest < 3 then
if player:removeItem(22516, 7500) and player:removeItem(22721, 6250) then
npcHandler:say("Take this crown as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:addOutfitAddon(1457, 2)
Expand Down
8 changes: 4 additions & 4 deletions data-otservbr-global/npc/queen_eloise.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ local function creatureSayCallback(npc, creature, type, message)
end
npcHandler:setTopic(playerId, 2)
elseif npcHandler:getTopic(playerId) == 4 then
if player:kv():get("golden-outfit-quest") == 1 then
if player:kv():get("golden-outfit-quest") < 2 then
if goldenOutfitQuest == 1 then
if goldenOutfitQuest < 2 then
if player:removeMoneyBank(250000000) then
npcHandler:say("Take this helmet as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:addOutfitAddon(1210, 1)
Expand All @@ -117,8 +117,8 @@ local function creatureSayCallback(npc, creature, type, message)
end
npcHandler:setTopic(playerId, 2)
elseif npcHandler:getTopic(playerId) == 5 then
if player:kv():get("golden-outfit-quest") == 2 then
if player:kv():get("golden-outfit-quest") < 3 then
if goldenOutfitQuest == 2 then
if goldenOutfitQuest < 3 then
if player:removeMoneyBank(250000000) then
npcHandler:say("Take this boots as a token of great gratitude. Let us forever remember this day, my friend. ", npc, creature)
player:addOutfitAddon(1210, 2)
Expand Down

0 comments on commit 18c327a

Please sign in to comment.