Jump to content
  • 0

Setunitdata Help


Kakaroto

Question


  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  624
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

Hello good afternoon, someone could tell me what's wrong with the sentence of this script?
 
                .@skillunit = monster(.@map$,359,294,"",2337,1);
                setunitdata .@skillunit, 9, 0;
                setunitdata .@skillunit, 29, 1;
                unitskilluseid .@skillunit,353,10,1;

Error in the map_server:

bfoU15I.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  666
  • Reputation:   674
  • Joined:  11/12/12
  • Last Seen:  

The GID is not supposed to be 199 (GIDs are way higher); the monster function does not return a value by default either, so I'm assuming you made a custom command? Either way, the following should work properly:

                monster(.@map$,359,294,"",2337,1);
                .@skillunit = $@mobid[0];
                setunitdata .@skillunit, 9, 0;
                setunitdata .@skillunit, 29, 1;
                unitskilluseid .@skillunit,353,10,1;
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  624
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

 

The GID is not supposed to be 199 (GIDs are way higher); the monster function does not return a value by default either, so I'm assuming you made a custom command? Either way, the following should work properly:

                monster(.@map$,359,294,"",2337,1);
                .@skillunit = $@mobid[0];
                setunitdata .@skillunit, 9, 0;
                setunitdata .@skillunit, 29, 1;
                unitskilluseid .@skillunit,353,10,1;

 

 

 
 
It is to be used in a custom instance.
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...