Kakaroto Posted May 7, 2016 Posted May 7, 2016 (edited) Hello,I have a little problem in getunitdata variable, can anyone help me? print: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 May 7, 2016 by Kakaroto Quote
0 Technoken Posted May 7, 2016 Posted May 7, 2016 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. 1 Quote
0 Emistry Posted May 7, 2016 Posted May 7, 2016 getunitdata 'BossID,.@bossdata; what is that .@bossdata stored?? it stored nothing inside.. Quote
0 Kakaroto Posted May 7, 2016 Author Posted May 7, 2016 (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 May 7, 2016 by Kakaroto Quote
0 Kakaroto Posted May 7, 2016 Author Posted May 7, 2016 (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 May 8, 2016 by Kakaroto Quote
0 Secrets Posted May 8, 2016 Posted May 8, 2016 anyway just want to ask why are you using ' as the prefix of your variable? ' prefixed variable is instance-bound variable. Quote
0 Technoken Posted May 23, 2016 Posted May 23, 2016 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! Quote
Question
Kakaroto
Hello,

Edited by KakarotoI have a little problem in getunitdata variable, can anyone help me? print:
script:
6 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.