[Question] How to remove effect from player ?

02/20/2015 17:48 Khalidmadkour#1
In Revo DB there are NPC which give the player an effect like this picture >>

[Only registered and activated users can see links. Click Here To Register...]

the problem is when the player choose blue effect or any other one and then try to change it to another one , nothing happen
for example
the player choosed blue effect and after 2 min he choosed red effect and nothing happen
so can anyone tell me how or what action to remove the effect from player
like Remove Skill200 or anything else

2- in the action which give the player the effect i found this
85000010 85000023 0 4001 0 156 0 604800 0


" 156 0 604800 0 " << what is this refers to ?

Thanks ^^
02/20/2015 18:09 idlemonkey#2
explaination of the action type
Code:
ACTION_MAGIC_ATTACHSTATUS = 4001, // supplement condition, szParam= " status power secs times "
so explaining the portion of the action you posted
Code:
status power   secs     times
156      0 	604800   0
assign status 156 lvl 0 for 7 days in seconds with no repeating time

to detach a status according to the documentation is a bit more convoluted i guess
Code:
ACTION_MAGIC_ATTACK = 4002, // black magic attack, data=magictype, szParam= " magiclevel "
// requests in the magictype table to have the corresponding data
// supports at present the black magic type includes:
// MAGICSORT_DETACHSTATUS
// MAGICSORT_STEAL
I assume this explains itself as set the type to 4002 to data is the status id (156 in the example) and the parameters are MAGICSORT_DETACHSTATUS and the status level
02/20/2015 18:50 stedabest321#3
ADD it
Quote:
85000010 85000023 0 4001 0 156 0 604800 0
REMOVE IT
Quote:
85000010 85000023 0 4001 0 0 0 0 0
Though i havnt tested it, Let me know if it works and get back to me :)

Also you do not need to add anything in the Data leave that 0

****this will delete every effect on the char I THINK ******

******************
Or you can go into cq_special_status and delete them ?
02/20/2015 21:17 Khalidmadkour#4
Quote:
Originally Posted by idlemonkey View Post
explaination of the action type
Code:
ACTION_MAGIC_ATTACHSTATUS = 4001, // supplement condition, szParam= " status power secs times "
so explaining the portion of the action you posted
Code:
status power   secs     times
156      0 	604800   0
assign status 156 lvl 0 for 7 days in seconds with no repeating time

to detach a status according to the documentation is a bit more convoluted i guess
Code:
ACTION_MAGIC_ATTACK = 4002, // black magic attack, data=magictype, szParam= " magiclevel "
// requests in the magictype table to have the corresponding data
// supports at present the black magic type includes:
// MAGICSORT_DETACHSTATUS
// MAGICSORT_STEAL
I assume this explains itself as set the type to 4002 to data is the status id (156 in the example) and the parameters are MAGICSORT_DETACHSTATUS and the status level
Thank you! WORKING FINE!


Quote:
Originally Posted by stedabest321 View Post
ADD it

REMOVE IT


Though i havnt tested it, Let me know if it works and get back to me :)

Also you do not need to add anything in the Data leave that 0

****this will delete every effect on the char I THINK ******

******************
Or you can go into cq_special_status and delete them ?
i cant go into cq_special every time the player's mind tell him go change ur effect xD
Working FINE !!!! , thanks bro :D ( it removed all effects expect that the effects which came from action ( self xxxx )

Thanks!

Another question status id of the effect like >> 156 from where i get it . and is there a way to add new one ?