Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- claim: /claimset = >>>
- #Reads coords
- assign(@x1, get_value(concat(player() 'claimx1')))
- assign(@z1, get_value(concat(player() 'claimz1')))
- assign(@x2, get_value(concat(player() 'claimx2')))
- assign(@z2, get_value(concat(player() 'claimz2')))
- #Checking for defined X coords ##!!!!!!!!!!!! SHOULD CHECK HERE FOR NULL VALUES!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- if(or(is_null(@x1), is_null(@x2)), die(color(LIGHT_PURPLE)'You need to mark both corners!'), msg('X1 and X2 both exist!')
- #Checking x dim constraints
- if(gt(pow(subtract(@x1, @x2), 2), 400), die(color(LIGHT_PURPLE)'Too large in X dimension. Redefine corners.'))
- #Checking y dim constraints
- if(gt(pow(subtract(@z1, @z2), 2), 400), die(color(LIGHT_PURPLE)'Too large in Y dimension. Redefine corners.'))
- runas(~op, '/pm opoq testing')
- runas(rTriggersplayer, sconcat('/region claim' concat(player() 'claim1') player()))
- <<<
Add Comment
Please, Sign In to add comment