Jump to content
  • 0

R< new script like pet <pet_id>;


mjonrest

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  08/16/13
  • Last Seen:  

Dear all,

 

i have search for entire rathena and cant find to solve this problem,

 

could we catch many mob by using one taming item?
 

ex: unripe apple can catch poring,drops, or poporing

however i have try to use this kind of script:

 

function	script	tame	{
setarray .@poke[0],1002,1003,1011;
for( .@i = 0; .@i < getarraysize(.@tame); .@i++) { 
pet .@tame;
end;
}
}

but it can only catch mob id "3671"

 

and i try to use this too

Quote

40000,all_in_one_tamer,all in one tamer,2,2500,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ itemskill "SA_TAMINGMONSTER",1; },{},{}

still nothing can help.

 

any idea how to create a new script command just like 

Quote

pet <pet_id>;

thanks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

pet 0;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

On 13.12.2017 at 10:39 AM, mjonrest said:

Dear all,

 

i have search for entire rathena and cant find to solve this problem,

 

could we catch many mob by using one taming item?
 

ex: unripe apple can catch poring,drops, or poporing

however i have try to use this kind of script:

 


function	script	tame	{
setarray .@poke[0],1002,1003,1011;
for( .@i = 0; .@i < getarraysize(.@tame); .@i++) { 
pet .@tame;
end;
}
}

but it can only catch mob id "3671"

 

and i try to use this too

still nothing can help.

 

any idea how to create a new script command just like 

thanks

First, you have an mistake in your script: 

You declare an array .@poke but you're using an array called .@tame afterwards, which the content is not declared anywhere. 

Second, by using an array you have to declare  the index [<Index>] where the value is saved inn, or you will always get the first value in the array.

Example: .@tame[.@i]

Third, if I'm not wrong an pet_db file exists, where you have to declare every mob which can be tamed before using any taming skill/command.

I hope I could help.

Regards,

Chris

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