Player debuffing

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
jasn
Posts: 70
Joined: Sat Jun 25, 2011 8:25 am
Location: Sweden

Player debuffing

#1 Post by jasn » Wed Feb 08, 2012 5:33 am

Was wondering and seraching about how to debuff your self or party members.
And all i could find was this from the wiki , but im not sure how to implement it and where in the profile.

Code: Select all

local target = player:getTarget();
 target:updateBuffs()
 if target:hasDebuff("debuffname") then
if we assume that the player(me) have a DeBuff of poison, as a druid i use Antidote or a Priest use Cleanse.
and the same goes for curses druid uses Purify, Priest use Cleanse ? or is it Remove Curse.

so if i understand the code snippet would be something like this?

Code: Select all

local target = player:getTarget();
 target:updateBuffs()
 if target:hasDebuff("debuffname") then PRIEST_CLEANSE
and now i know im totaly out on deep water. ;)

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Player debuffing

#2 Post by lisa » Wed Feb 08, 2012 5:51 am

I would probably set up a table for it but the trouble is how do you know what type of debuff it is?
Would you add in every single name or Id for every single debuff?
There must be something in memory which has the type as it would need it for when using skills to remove some types.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

jasn
Posts: 70
Joined: Sat Jun 25, 2011 8:25 am
Location: Sweden

Re: Player debuffing

#3 Post by jasn » Thu Feb 09, 2012 1:32 am

what i´ve seen so far is that poison has the word poison or poisoned in the debuff, bit worse with the curses tho.

But im way over my head on this one so ill just put the "debuffin" thingy to rest cause i dont have the knowhow and skills for it.

Thanks for the inputs tho.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest