Commit 99b69503 authored by Atsukio's avatar Atsukio 🐬

Town - Fixed #36 and changed chunk sizes to 20 per player.

parent 4c3ea786
......@@ -98,14 +98,15 @@ command /potatotown <text="help"> [<text>]:
set {ptown.%arg 2%.size} to 0
set {ptown.%player%} to arg 2
add player's name to {ptown.%arg 2%.playerlist::*}
set {ptown.%arg 2%.maxsize} to 10
set {ptown.%arg 2%.maxsize} to 20
set {ptown.%arg2%.doublesize} to true
add 1 to {ptown.%arg 2%.size}
add arg 2 to {ptownlist::*}
set {ptown.%arg 2%.owner} to player's name
set {ptownlist.chunk::%chunk of player%} to arg 2
set {ptown.%arg 2%.desc} to "Default description. Please change."
set {ptown.%arg 2%.home} to location of player
set {ptoiwn.%arg 2%.money} to 0
set {ptown.%arg 2%.money} to 0
broadcast "[&6PTown&f] &9%player% created a new sexy town named %arg 2%"
stop
if {ptownlist.chunk::%chunk at player%} is set:
......@@ -626,7 +627,7 @@ command /potatotown <text="help"> [<text>]:
if {ptown.invited.confirmation.%player%} is 1:
if "%arg 2%" is equal to "%{ptown.readytojoin.%player%}%":
set {ptown.%player%} to "%arg 2%"
add 10 to {ptown.%arg 2%.maxsize}
add 20 to {ptown.%arg 2%.maxsize}
add player's name to {ptown.%arg 2%.playerlist::*}
add player's name to {ptown.%arg 2%.normallist::*}
clear {ptown.invited.confirmation.%player%}
......@@ -953,7 +954,7 @@ command /potatotown <text="help"> [<text>]:
if "%{ptown.%{_town}%.owner}%" is player's name:
loop {ptown.%{_town}%.normallist::*}:
if "%arg 2%" is equal to "%loop-value%":
if {ptown.%{_town}%.maxsize} - 10 is less than {ptown.%{_town}%.size}:
if {ptown.%{_town}%.maxsize} - 20 is less than {ptown.%{_town}%.size}:
if {language.%player%} is "chinese":
message "[&6PTown&f] 低认领容量"
if {language.%player%} is "english":
......@@ -967,13 +968,13 @@ command /potatotown <text="help"> [<text>]:
if {language.%player%} is "english":
message "[&6PTown&f] Kicked %arg 2%"
clear {ptown.%arg 2%}
subtract 10 from {ptown.%{_town}%.maxsize}
subtract 20 from {ptown.%{_town}%.maxsize}
stop
loop {ptown.%{_town}%.modlist::*}:
if "%loop-value%" is player's name:
loop {ptown.%{_town}%.normallist::*}:
if "%arg 2%" is equal to "%loop-value-2%":
if {ptown.%{_town}%.maxsize} - 10 is less than {ptown.%{_town}%.size}:
if {ptown.%{_town}%.maxsize} - 20 is less than {ptown.%{_town}%.size}:
if {language.%player%} is "chinese":
message "[&6PTown&f] 低认领容量"
if {language.%player%} is "english":
......@@ -987,7 +988,7 @@ command /potatotown <text="help"> [<text>]:
if {language.%player%} is "english":
message "[&6PTown&f] Kicked %arg 2%"
clear {ptown.%arg 2%}
subtract 10 from {ptown.%{_town}%.maxsize}
subtract 20 from {ptown.%{_town}%.maxsize}
stop
if {language.%player%} is "chinese":
message "您的目标玩家不可用或者您没有踢他的权限"
......@@ -1003,7 +1004,7 @@ command /potatotown <text="help"> [<text>]:
if {ptown.leave.confirmation.%player%} is 1:
set {_townleave} to {ptown.%player%}
clear {ptown.%player%}
remove 10 from {ptown.%{_townleave}%.maxsize}
remove 20 from {ptown.%{_townleave}%.maxsize}
remove player's name from {ptown.%{_townleave}%.playerlist::*}
remove player's name from {ptown.%{_townleave}%.normallist::*}
remove player's name from {ptown.%{_townleave}%.modlist::*}
......@@ -1263,7 +1264,7 @@ command /potatotownadmin <text> [<text>] [<text>]:
remove {_player} from {ptown.%{_town}%.modlist::*}
remove {_player} from {ptown.%{_town}%.normallist::*}
remove {_player} from {ptown.%{_town}%.playerlist::*}
remove 10 from {ptown.%{_town}%.maxsize}
remove 20 from {ptown.%{_town}%.maxsize}
clear {ptown.%{_player}%}
broadcast "%{_player}% has been forced to be kicked out of %{_town}%"
stop
......@@ -1272,7 +1273,7 @@ command /potatotownadmin <text> [<text>] [<text>]:
loop {ptownlist::*}:
if arg 2 is equal to loop-value:
set {ptown.%arg 3%} to "%arg 2%"
add 10 to {ptown.%arg 2%.maxsize}
add 20 to {ptown.%arg 2%.maxsize}
add arg 3 to {ptown.%arg 2%.playerlist::*}
add arg 3 to {ptown.%arg 2%.normallist::*}
message "Added %arg 3% to %arg 2%"
......@@ -1539,6 +1540,9 @@ on spawn of a creeper or a zombie or a spider or an enderman or a witch or a cow
on join:
set {ptown.%player%.foodlevel} to player's food level
clear {%player%.foodlevel}
if {ptown.%{ptown.%player%}%.doublesize} is not set:
set {ptown.%{ptown.%player%}%.doublesize} to true
set {ptown.%{ptown.%player%}%.maxsize} to ({ptown.%{ptown.%player%}%.maxsize} * 2)
on hunger meter change:
set {_test} to player's food level
......
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