Commit f54a168a authored by Atsukio's avatar Atsukio 🐬

PotatoNpc - Fixed mistyped variable causing quest to be globally shared

parent ea7c71d8
......@@ -170,17 +170,17 @@ command /npc-quest <integer> <text> <text>:
if metadata "NPC" of loop-player is set:
if name of loop-player is citizen arg-1:
if arg-2 is "fisherman":
if {rpg_player::quest::fisherman::date} is set:
if now is less than {rpg_player::quest::fisherman::date}:
if {rpg_player::%player%::quest::fisherman::date} is set:
if now is less than {rpg_player::%player%::quest::fisherman::date}:
stop
if {rpg_player::quest::fisherman::status} is "In progress":
if {rpg_player::%player%::quest::fisherman::status} is "In progress":
stop
if arg-3 is "decline":
make citizen arg-1 say "That's alright, see you next time." to player
stop
else if arg-3 is "accept":
make citizen arg-1 say "Come back to me when you have &710 Raw Salmon" to player
set {rpg_player::quest::fisherman::status} to "In progress"
set {rpg_player::%player%::quest::fisherman::status} to "In progress"
stop
stop
else:
......@@ -213,24 +213,24 @@ on npc right click:
message "<tooltip:View me shoppu UwU><cmd:/npc-shop %event-number% Disc><light gray>[<orange>View Shop<light gray>]" to player
stop
else if citizen event-number is "TomYaMee":
if {rpg_player::quest::fisherman::status} is "In progress":
if {rpg_player::%player%::quest::fisherman::status} is "In progress":
if player has 10 raw salmon:
subtract 10 raw salmon from player
add 100 to {peco.money::%player%}
set {rpg_player::quest::fisherman::date} to now
add 12 hours to {rpg_player::quest::fisherman::date}
set {rpg_player::quest::fisherman::status} to "Completed"
make citizen event-number say "Thanks for giving &710 Raw Salmon &r here's your reward. Come back in 12 hours for another quest." to player
set {rpg_player::%player%::quest::fisherman::date} to now
add 1 day to {rpg_player::%player%::quest::fisherman::date}
set {rpg_player::%player%::quest::fisherman::status} to "Completed"
make citizen event-number say "Thanks for giving &710 Raw Salmon &r here's your reward. Come back in 1 day for another quest." to player
message "Gained &e100 &2Rammycoin" to player
stop
make citizen event-number say "Come back to me once you have &710 Raw Salmon in your inventory" to player
stop
else if {rpg_player::quest::fisherman::status} is "Completed":
if now is greater than {rpg_player::quest::fisherman::date}:
else if {rpg_player::%player%::quest::fisherman::status} is "Completed":
if now is greater than {rpg_player::%player%::quest::fisherman::date}:
make citizen event-number say "Hey there, would you like to help me with fishing? I'll pay you &e100 &2Rammycoin if you catch me &710 Raw Salmon." to player
message "<command:/npc-quest %event-number% fisherman accept>[&aAccept&f]<r> | <command:/npc-quest %event-number% fisherman decline>[&cDecline&f]" to player
stop
if {rpg_player::quest::fisherman::status} is not set:
if {rpg_player::%player%::quest::fisherman::status} is not set:
make citizen event-number say "Hey there, would you like to help me with fishing? I'll pay you &e100 &2Rammycoin if you catch me &710 Raw Salmon." to player
message "<command:/npc-quest %event-number% fisherman accept>[&aAccept&f]<r> | <command:/npc-quest %event-number% fisherman decline>[&cDecline&f]" to player
stop
......@@ -288,5 +288,5 @@ command /balance:
# command /now:
# trigger:
# set {rpg_player::quest::fisherman::date} to now
# stop
# set {rpg_player::%player%::quest::fisherman::date} to now
# stop
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment