Jump to content
  • 0

Latest version of rAthena


sprdosat

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   5
  • Joined:  08/28/13
  • Last Seen:  

Hi guys. After I updated rAthena to the latest version, this error appeared in the script, can anyone help me?

20-colorful-wallpaper_hzpXg9X.jpg

arvore_da_vida.txt

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  177
  • Reputation:   6
  • Joined:  10/22/18
  • Last Seen:  

On 4/30/2019 at 11:44 PM, Dev G Inc said:

Please indicate how it was solved.

Thanks!

Edit and change your npc script that using UNITTYPE to BL.

Example 1: 

getmapxy(.@map$,.@x,.@y,UNITTYPE_NPC,strnpcinfo(0)); to getmapxy(.@map$,.@x,.@y,BL_NPC,strnpcinfo(0));

Example 2:

getmapxy(.@map$,.@x,.@y,UNITTYPE_PC,strnpcinfo(0)); to getmapxy(.@map$,.@x,.@y,BL_PC,strnpcinfo(0));

 

BL_PC - Character object (default)

BL_NPC - NPC object

BL_PET - Pet object

BL_HOM - Homunculus object

BL_MER - Mercenary object

BL_ELEM - Elemental object

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  122
  • Reputation:   17
  • Joined:  12/10/12
  • Last Seen:  

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

prontera,148,196,4	script	arvoredavida	14591,{
	end;
	
OnInit:
OnTimer3000:
	initnpctimer;
	getmapxy(.@map$,.@x,.@y,BL_NPC,strnpcinfo(0));
	areapercentheal .@map$,.@x-5,.@y-5,.@x+5,.@y+5,20,20;
	end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  11/17/17
  • Last Seen:  

Currently getmapxy doesn't work with variable. It's a bug. https://github.com/rathena/rathena/issues/3918

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   5
  • Joined:  08/28/13
  • Last Seen:  

Solved, Thanks.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  148
  • Reputation:   10
  • Joined:  12/03/18
  • Last Seen:  

On 2/5/2019 at 6:45 PM, sprdosat said:

Solved, Thanks.

Please indicate how it was solved.

Thanks!

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