Jump to content
  • 0

getunitdata


Kakaroto

Question


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

Hello,
I have a little problem in getunitdata variable, can anyone help me? print:

lCy1irt.png

script:

  OnTimer10000:
    initnpctimer;
    .@map$ = instance_mapname("1@face");
    .@label = instance_npcname("#BlackLogic") + "::OnSkillunit";
    getunitdata 'BossID,.@bossdata;
    .@x = .@bossdata[6];
    .@y = .@bossdata[7];
    switch('progress) {
Edited by Kakaroto
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   127
  • Joined:  04/04/16
  • Last Seen:  

Try this

 

 

replace

'BossID = monster(.@map$,140,72,"--ja--",2530,1,instance_npcname("#jubileu")+"::OnBlackFace");

with

monster(.@map$,140,72,"--ja--",2530,1,instance_npcname("#jubileu")+"::OnBlackFace");
'BossID = $@mobid[0];

anyway just want to ask why are you using as the prefix of your variable?

 

I've been inactive in rathena so i don't know if there's such update.

But I think if you use 'BossID, it will be saved as character permanent variable.

Please correct me if i'm wrong.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

getunitdata 'BossID,.@bossdata;

what is that .@bossdata stored?? 

it stored nothing inside..

Link to comment
Share on other sites

  • 0

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

getunitdata 'BossID,.@bossdata;

what is that .@bossdata stored?? 

it stored nothing inside..

 

            switch('progress){
                case 0:
                    mapannounce .@map$,"O Jubileu foi invocado, peque ele pelo pé",bc_map,0xFFFF90;
                    'BossID = monster(.@map$,140,72,"--ja--",2530,1,instance_npcname("#jubileu")+"::OnBlackFace");
                    break;
getunitdata 'BossID,.@bossdata;

that

Edited by Kakaroto
Link to comment
Share on other sites

  • 0

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

Try this

 

 

replace

'BossID = monster(.@map$,140,72,"--ja--",2530,1,instance_npcname("#jubileu")+"::OnBlackFace");

with

monster(.@map$,140,72,"--ja--",2530,1,instance_npcname("#jubileu")+"::OnBlackFace");
'BossID = $@mobid[0];

anyway just want to ask why are you using as the prefix of your variable?

 

I've been inactive in rathena so i don't know if there's such update.

But I think if you use 'BossID, it will be saved as character permanent variable.

Please correct me if i'm wrong.

 

 

 

 
 
Ow, it worked ... thanks.
 
'like'
Edited by Kakaroto
Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  588
  • Reputation:   437
  • Joined:  01/26/16
  • Last Seen:  

anyway just want to ask why are you using as the prefix of your variable?

' prefixed variable is instance-bound variable.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   127
  • Joined:  04/04/16
  • Last Seen:  

 

anyway just want to ask why are you using as the prefix of your variable?

' prefixed variable is instance-bound variable.

 

Oh okay. I didn't know that there's already an instance variable. Thanks for the heads up!

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...