Jump to content
  • 0

Ranger: Warg and Falcon


neojhz

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  03/08/12
  • Last Seen:  

I notice this code on warg mastery skill:

skill.c

case RA_WUGMASTERY:
 if( pc_isfalcon(sd) || pc_isridingwug(sd) || sd->sc.data[sC__GROOMY]) {
  clif_skill_fail(sd,skill,USESKILL_FAIL_LEVEL,0);
  return 0;
 }
 break;

Does this mean that if there is a falcon you can't have a warg right?

I was just wondering since there is no checkwarg() in the script. The rental npc can still give the Falcon even though the Ranger has a Warg. Which means the Ranger can still have both if they go this way. Is this the official behavior?

Nevermind.

Just confirmed here:

http://irowiki.org/wiki/Warg_Mastery

Allows you to summon a warg using your warg flute. Cannot be used while you have a falcon, nor can a falcon be rented while you have a warg.

So I went on ahead and implemented my own checkwarg() script:

I'm only hoping now that this is correct.

BUILDIN_FUNC(checkwarg)
{
TBL_PC* sd;
sd = script_rid2sd(st);
if( sd == NULL )
 return 0;
if( pc_iswug(sd) || pc_isridingwug(sd) ) 
 script_pushint(st, 1);
else
 script_pushint(st, 0);
return 0;
}

Now I'm trying to see how to turn off the falcons that are having warg or vice versa on the server.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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