Jump to content
  • 0

R>Guild Dungeon Warper


ADMSarah

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.03
  • Content Count:  143
  • Reputation:   10
  • Joined:  08/19/23
  • Last Seen:  

Hi good day, can someone help me out to make this NPC based on the following:

  • Only guild castle owners can use the NPC, if your guild doesn't occupy any castle(s) you are not allowed to access the NPC.
  • If the player is on the Clan they can not use this NPC.
  • If player doesn't have guild they can not use this NPC.
Quote

prontera,146,173,4    script    Hybrid Guild Warper    4_GEFFEN_08,{
    if(!getcharid(2)) end;
    warp "job_thief10",179,27;
    end;

OnAgitStart:
OnAgitStart2:
    hideonnpc strnpcinfo(3);
    end;

OnAgitEnd:
OnAgitEnd2:
    hideoffnpc strnpcinfo(3);
    end;

OnInit:
    hideonnpc strnpcinfo(3);
    end;
  }
 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  133
  • Topics Per Day:  0.03
  • Content Count:  686
  • Reputation:   89
  • Joined:  04/07/14
  • Last Seen:  

21 hours ago, Questune said:

Hi good day, can someone help me out to make this NPC based on the following:

  • Only guild castle owners can use the NPC, if your guild doesn't occupy any castle(s) you are not allowed to access the NPC.
  • If the player is on the Clan they can not use this NPC.
  • If player doesn't have guild they can not use this NPC.

 

To check if player have guild

		if(!getcharid(2)) {
			mes "[Guild Checker]";
			mes "You don't belong in any Guild.";
			close;
		}

to check if player have clan

		if(!getcharid(5)) {
			mes "[Clan Checker]";
			mes "You don't belong in any Clan.";
			close;
		}
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...