Jump to content

Question

Posted (edited)

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

6 answers to this question

Recommended Posts

  • 0
Posted

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
  • 0
Posted (edited)
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
  • 0
Posted (edited)

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
  • 0
Posted

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

' prefixed variable is instance-bound variable.

  • 0
Posted

 

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!

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...