danielps Posted January 12, 2017 Posted January 12, 2017 Hi there... I need someone really good with script or Acquainted with setunit commands .... I have a script, and it's working perfectly, but when i try to change mos mode it stop working and don't give any log error! setunitdata .@mymob, 9, MD_AGGRESSIVE ; setunitdata .@mymob, 9, 0x0000004; In fact, the 'st one i think it show an error.. the fact is, i can't change my mob mode, why ? Could someone give me an exemple how to make a mob: MD_SKILL_IMMUNE,MD_STATUS_IMMUNE,MD_DETECTOR,MD_KNOCKBACK_IMMUNE? Thanks for helpping! Quote
0 Capuche Posted January 12, 2017 Posted January 12, 2017 (edited) We didn't push the mode to constant yet. Don't forget to retrieve the original mode of your mob and add it. A sample : monster "prontera",0,0,"Quest Poring",1002,1; .@mob_unique_id = $@mobid[0]; getunitdata .@mob_unique_id, .@data; setunitdata .@mob_unique_id, UMOB_MODE, ( .@data[UMOB_MODE] | 0x0000004 ); Edited January 12, 2017 by Capuche 1 Quote
0 danielps Posted January 12, 2017 Author Posted January 12, 2017 1 hour ago, Capuche said: We didn't push the mode to constant yet. Don't forget to retrieve the original mode of your mob and add it. A sample : monster "prontera",0,0,"Quest Poring",1002,1; .@mob_unique_id = $@mobid[0]; getunitdata .@mob_unique_id, .@data; setunitdata .@mob_unique_id, UMOB_MODE, ( .@data[UMOB_MODE] | 0x0000004 ); Hey bro, i'll try it and tell you if it worked, i'm at job right now hehe but i have a question what is $@mobid[0] ? 1- I didn't undestand this part ".@mob_unique_id = $@mobid[0];" 2- And, why do i nedd to retrieve the original mode of my mob? 3- This wokrs? -> setunitdata .@mymobid, UMOB_MODE,(0x0000004 | 0x0000080 | 0x0200000); ? Alredy liked +1 for helping even if don't work for me hehe xD Thanks! Quote
0 Capuche Posted January 13, 2017 Posted January 13, 2017 19 hours ago, danielps said: 1- I didn't undestand this part ".@mob_unique_id = $@mobid[0];" Please read the docs ! 19 hours ago, danielps said: 2- And, why do i nedd to retrieve the original mode of my mob? setunitdata will remove the previous mode and set your mode. Sometimes you need to keep the original mode. 19 hours ago, danielps said: 3- This wokrs? -> setunitdata .@mymobid, UMOB_MODE,(0x0000004 | 0x0000080 | 0x0200000); It will work. 2 Quote
0 danielps Posted January 13, 2017 Author Posted January 13, 2017 53 minutes ago, Capuche said: Please read the docs ! setunitdata will remove the previous mode and set your mode. Sometimes you need to keep the original mode. It will work. Thanks bro, it kind of worked hehe +1 again. But last question, why do my mobs (bg mobs) don't attack other bg mobs? They are from different bg teams but attack only players from other bg team, dont attack mobs from other team =/ Thanks again bro! Quote
Question
danielps
Hi there...
I need someone really good with script or Acquainted with setunit commands ....
I have a script, and it's working perfectly, but when i try to change mos mode it stop working and don't give any log error!
setunitdata .@mymob, 9, MD_AGGRESSIVE ;
setunitdata .@mymob, 9, 0x0000004;
In fact, the 'st one i think it show an error.. the fact is, i can't change my mob mode, why ?
Could someone give me an exemple how to make a mob:
MD_SKILL_IMMUNE,MD_STATUS_IMMUNE,MD_DETECTOR,MD_KNOCKBACK_IMMUNE?
Thanks for helpping!
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.