Create a free account to remove all ad content.

Author Topic:  IsPlayer [x,y,z] [x.y.z] [true|false] Also IsZone [builder] [true]  (Read 394 times)

0 Members and 1 Guest are viewing this topic.

Mystic_ReloadzZ

  • Fresh Meat
  • *
  • Posts: 8
    • View Profile
  • Xbox: MySt1C ReloadzZ
This script would be brilliant for a world like Hunger games because it could be used like this;
If
IsPlayer [x,y,z] [x,y,z] [true]
Then
Teleport [player] [x,y,z]

It would also help with "private mines" to stop players getting in.
The Second script i would like to see would help again for "private mines" becasue it could be used like this
If
IsZone [Builder] [true]
Then
Teleport [player] [x,y,z]
Or
IsZone [builder] [false]
Then
SetBuilder [zone name] [player]

JD DRAGON 7

  • Legendary Member
  • *
  • Posts: 1316
  • I'm a freelance builder.
    • View Profile
  • Xbox: JD DRAGON 7
  • PSN: JD_DRAGON7
  • Steam: JD_DRAGON_7
Re: IsPlayer [x,y,z] [x.y.z] [true|false] Also IsZone [builder] [true]
« Reply #1 on: July 11, 2015, 06:13:16 PM »
I'm not a scriptwriter but I think this can already be done, just written in a deferent way.
Growing old is inevitable but growing up is optional.
Wii U      JD_DRAGON_7
360        JD DRAGON 7
Ps3/ps4  JD_DRAGON7
Steam    JD_DRAGON_7

Nefty

  • Supreme Member
  • *
  • Posts: 2452
    • View Profile
  • Xbox: GoatOnTheM00n
Re: IsPlayer [x,y,z] [x.y.z] [true|false] Also IsZone [builder] [true]
« Reply #2 on: July 11, 2015, 06:28:57 PM »
This script would be brilliant for a world like Hunger games because it could be used like this;
If
IsPlayer [x,y,z] [x,y,z] [true]
Then
Teleport [player] [x,y,z]

It would also help with "private mines" to stop players getting in.
The Second script i would like to see would help again for "private mines" becasue it could be used like this
If
IsZone [Builder] [true]
Then
Teleport [player] [x,y,z]
Or
IsZone [builder] [false]
Then
SetBuilder [zone name] [player]]



What is the second coordinate looking for? The first is already checking if a player is there. All you have to do is set a zone where the two coordinates are, and then have your teleport script set to the entry script of that Zone.

By private mines, do you mean only one person? Or they have bought the permission to use it, like a V.I.P Mine? Because if its the latter, all you need to do is put a zone around it and then have them buy permissions to use it. I.E:

~ If you want them to pay say 64,000gp for it, it'd go something like this (I am not on Xbox right now, so I am not entirely sure of the order of the parameters):

If
HasInventory [GoldPieces] [true] [>=] [64000]

Then
Inventory [GoldPieces] [64000] [take]
History [MinePermission]

Else
Notify [You Do Not have enough money]


Then put a zone around the mine, and set this as your entry script:

If
HasHistory [MinePermission] [true]
Then
Notify [Welcome To The V.I.P Mine]
Else
Teleport [player] [Set this to anywhere but inside the mine. I'd set it about 5 blocks away from the mine]
Notify [Sorry, but you do not have the permission to enter this mine.]

~If someone could correct, or tell me the brackets are in correct order, i'd appreciate it.



Tempers

  • Elite Member
  • *
  • Posts: 642
  • Thats how we do it, Tempah style!
    • View Profile
  • Xbox: s7n Tempers
Re: IsPlayer [x,y,z] [x.y.z] [true|false] Also IsZone [builder] [true]
« Reply #3 on: July 13, 2015, 11:10:44 PM »
For a private mine just make a script that looks like this

Script:Buy Private Mine
If
hasinventory [goldpieces] [>=] [Amount]
then
Inventory [player] [take] [goldpieces] [Amount]
History [*Insert Gamertag Here*] [Player]
EndIf

Script:Lock Private Mine

If
hashistory [*Insert Gamertag Here*] [player] [false]
then
Teleport [player] [x,y,z]
EndIf


Zone the door and make the entry script Lock Private Mine and then run the script for the purchase for the player Replace

*Insert Gamertag Here* With the players Gamertag that is Purchasing the mine.

~Tempers~