Jump to content
  • 0

@fish


Pneuma

Question


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

Simple @command request; When a player types @fish; it warps them to the fishing area :(

brasilis 239 78

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

eA/rA revision > src > map > atcommand.c

Find:

/*==========================================
* atcommand_info[] structure definition
*------------------------------------------*/

AtCommandInfo atcommand_info[] = {

Add BEFORE:

ACMD_FUNC(fish)
{	
	npc_event(sd,"fishwarp::OnFishMap",0);
	return 0;
}

add after this:

/*==========================================
* atcommand_info[] structure definition
*------------------------------------------*/

AtCommandInfo atcommand_info[] = {

this:

{ "fish",			  0,0,	 atcommand_fish },

-------------------------------------------------------------

Add an NPC with this inside:

-	script	fishwarp	-1,{
end;

OnFishMap:
warp "brasilis",239,78;
end;
}

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