Okay, what I'm using RMX-OS along with Blizz-ABS to make a multiplayer game with a PvP system. I'd like to use scripts to make certain maps that are "dangerous," so if you kill another player in one of these maps you get all of their items, gold, and weapons/armor. I was thinking this could easily be accomlished using scripts that have all, in effect, been written already.
The player that "got the kill" would need to be recognized, which could maybe be done with a slight variation on the part of the Blizz-ABS RMXOS script determining which player "got the kill" on a certain monster (last hit).
Then there would need to be a script transferring all items/weapons/armor/gold to the inventory of the killer. This could maybe be accomplished with a variation on the trading script from RMXOS, which transfers items from one player's inventory to another.
I'd then put all of this in my game over common event, in a conditional that would only be run if a certain switch was on, which is turned on/off upon entry/exit of the "dangerous" maps.
Would this work?
Thanks you very much for any help/scripts/advice on this topic! :)
^
Well, I don't know a TON of scripting yet, but, it seems like the easiest way would be to use conditional "if" statements to determine whether or not a switch will activate the transfer or not. You could have it be a common event for ALL battles, and have it activate the xfer only if:
001: Dangerous area = true
002: Last hit = true
003: (are you using characters level to determine if it's 'fair' to steal from dead n00b?)
That could allow it to activate the transfer, and, you can call it for ANY battle, and still have correct results.
Its not really that easy since you have to get data from the killed player.
Hmmm.....anyone else have any ideas on this?
*double posts*
Somebody please help? At least to start maybe give a script that will transfer all a player's items to the inventory of another player?
i dont know about transfer but u could have it when u die in a "dangerous" area you lose all your equipped items and your killer would get a random piece of equipment that a player of your level could equip i cant script it myself but im pretty shure it would b much easer to make