Jump to content
  • 0

Euphy - Hunt mission getmapxy not working


Montella

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  07/05/13
  • Last Seen:  

Hello, I am using hunting mission script.

https://github.com/rathena/rathena/blob/master/npc/custom/quests/hunting_missions.txt

At the first I want to thank you Euphy for making this, but when i load this script it says

parse_callfunc: not enough arguments, expected ','

...

getmapxy(.@map1$,.@x1,.@y1);

....

So I changed it to 

getmapxy(.@map1$,.@x1,.@y1,3);

Then load script is fine but killing on the screen doesn't work and i mean this part

.Party = 3; // Party options: 0 (exclude party kills), 1 (include party kills), 2 (same map only), 3 (screen area only)

It still count monsters if im not in the screen with the character who has active hunt.

 

Any idea where could be problem? Thank you! ?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   199
  • Joined:  05/03/13
  • Last Seen:  

You have to use one of those:

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

Setting „3“ in getmapxy does not mean „screen area only“.

if you want „screen area only“ set .Party = 3. 

 

Sorry for the ugly formatting. Copy paste is weird on mobile. 

Edited by Normynator
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  07/05/13
  • Last Seen:  

Thanks for reply.

I know I have to set it to .Party =  3 I already set it to 3 before. Then i tried and it didnt work, cause of that problem of getmapxy i guess.

I tried all of those objects as u said and it is still not working.

If I use "BL_PC" it doesn't say any error, but script still not working on "screen area" its still like "on map"

others:

BL_NPC - Invalid Type 128 or Invalid Type 256

@Euphy Any idea? ? 

https://github.com/rathena/rathena/blob/master/npc/custom/quests/hunting_missions.txt#L280

Its is this line.

Thank you!

I used everywhere in getmapxy function number 0 what represent BL_PC and its working. 

for example: 

getmapxy(.@map2$,.@x2,.@y2,0,rid2name($@partymemberaid[.@i]));
getmapxy(.@map1$,.@x1,.@y1,0);
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...