Full Version : King of the hill XMLsystem
xmlspawner >>XMLSpawner Mods and Tips >>King of the hill XMLsystem


<< Prev | Next >>

XavierWER- 08-09-2006
Ive been messing around with the idea of making a FFA King of the hill pvp system
with the use of xmlspawner, and its been going pretty good.

Points awarder: this spawner is in the center of a square which gives out the points
1: IF/PLAYERSINRANGE,3=1/11/22
11: SETONTRIGMOB/ATTACHMENT,xmlvalue,kingofthehill,value/INC,1/SAY/Ive Been awarded a point/hidden/false
11: GOTO/12
12: SETONTRIGMOB/SAY/{GETONTRIGMOB,[ATTACHMENT,xmlvalue,kingofthehill,value]}
12: GOTO/33
22: SETONNEARBY,3,,playermobile/SAY/No Points awarded.
22: GOTO/33/blah (Needs to be a unique line)
33: SETONTHIS/SAY/RESET (Just a line that does nothing to make sure it resets

upon recieving a point the player will be made unhidden, and say
"Ive Been awarded a point" followed by how many points they have totally.
I had todo this on an extra line or it wouldnt display the correct number of points.

TriggerOnCarried: "ATTACHMENT,kingofthehill,xmlvalue"
Group = true
Min/MaxDelay Instant
RefractMin/Max: 25 seconds
ProximityRange = 3

Very simple, but does the intended effect. Ive had to disable the No points awarded
in the latest event, seeing as theres always a big bunch of players in the zone.

I set this up in a arena that has xmlspawners that sends ghosts to one of 5 random
respawn locations. In each of those locations ive setup a spawner to ress, heal and
get them their corpse:

RESURRECT
SENDMSG,33/Your corpse is at your feet.
SETONNEARBY,50,{GETONTRIGMOB,name},corpse/x/{GETONTRIGMOB,x}/y/{GETONTRIGMOB,y}/z/{GETONTRIGMOB,z}
SETONTRIGMOB/hits/80/mana/60


Seeing as after a short while they'll get a big bunch of corpses I setup this at the exits of each of the respawn locations:
1: IF/{GETONTRIGMOB,corpse.totalweight=0/11
2: GOTO/1
11: SET,{GETONTRIGMOB,corpse.serial}/DELETE

Which simply deletes the players recent corpse if its totalweight = 0, which would mean its empty.



At the join spot ive got this spawner:
SETONTRIGMOB/ATTACH/xmlvalue,kingofthehill,0,120/SAY/Ive joined the battle/x/../y/../z/..

And a similar one if anyone wishes to leave.

A simple yet fun system in the works on UOG: Divinity.

ArteGordon- 08-10-2006
very clever system. And simple too. I like it.

XavierWER- 08-11-2006
next step would be making it teams oriented.
FFA doesnt sit to well with players, they generally team up.
Ive even got a region controller (excellent tool) that disables the ability to heal others.

Seeing as people are teaming up and hoarding points I figured I'll try to make
it 2vs2vs2vs2 etc.

Challanges:
Enabling people to choose a partner.
Points being awarded to a team instead of a single player.

Optional: If one player dies he cant be resurrected till his team mate has been killed aswell.

Finale: Making it automated with a signup price, like 1-5k gold. Winning team
shares the spoils of the total gold pool.