Jump to content
  • 0

setunitdata MODE


danielps

Question


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   18
  • Joined:  10/09/14
  • Last Seen:  

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!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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 by Capuche
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   18
  • Joined:  10/09/14
  • Last Seen:  

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!

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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.

  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   18
  • Joined:  10/09/14
  • Last Seen:  

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...