Jump to content
  • 0

Help > Please edit here my script Guild pack info


GMH

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  10/15/13
  • Last Seen:  

Please edit this guild pack info below, I would hope when GM level 99 click the NPC he'll see just "Guild List" on menu and if when normal player click the npc he'll see just "I have a GM's Approval Card" and if normal player without GM's Approval Card on inventory, the npc say that "You don't have a GM's Approval Card to exchange" and "You must be in a guild to receive a guild package" if not in guild.

 

Thanks guys!

 

Just edit this script below:

Guild_Pack_Info.txt

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  39
  • Reputation:   2
  • Joined:  08/19/12
  • Last Seen:  

Please take your time, when you're writing a post to get help on this section.
I'm not a native speaker, just like you (hopefuly), yet I take my time to explain my problem better and I'm choosing my topictitle a bit more careful,

nobody wants to help you unless he's really bored(like me).
 

You just have to edit this line:

 

switch(select( (countitem(25003)?"I have a GM's Approval Card":"") + ":Guild List")) {

 

and replace it with this:

switch(select( ((countitem(25003) || getgmlevel() == 99 ) ?"I have a GM's Approval Card":"") + ":Guild List")) {

 

This will show "Guild List" directly for a GM, the rest of your desires are already fulfilled in this script.

Edited by Emistry
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  10/15/13
  • Last Seen:  

Ok, Thanks for your reply:)

 

but can you change "Guild List" menu on normal players will not show?

Edited by nieloveyou
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  39
  • Reputation:   2
  • Joined:  08/19/12
  • Last Seen:  

So you want that players can't access the NPC completely if they don't have any GM allowance?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  10/15/13
  • Last Seen:  

Yes sir, but if they don't have a GM Allowance the NPC will reply "You don't have a GM Allowance".

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  39
  • Reputation:   2
  • Joined:  08/19/12
  • Last Seen:  

Just add this before the switch:

if(countitem(25003) && getgmlevel() < 99)
{
mes "You don't have a GM Allowance.";
close;
}

This counts for all people who have a lesser gm level then 99.

 

Also I made a little mistake at this part:

switch(select( ((countitem(25003) || getgmlevel() == 99 ) ?"I have a GM's Approval Card":"") + ":Guild List")) {

This would mean that if he has the allowance card it would show "I have a GM's Approval Card" or if he is GM Level 99, but you wanted it to be not shown for GMs level 99,

so it should be like this:

switch(select( ((countitem(25003) && getgmlevel() != 99 ) ?"I have a GM's Approval Card":"") + ":Guild List")) {

Since you want that a GM Level 99 can see only the Guild List.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  10/15/13
  • Last Seen:  

nothing changes, normal player still can see Guild List:)

 

Please edit to, If normal player doesn't have GM approval card then the NPC will reply "You don't have a GM Allowance".

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  39
  • Reputation:   2
  • Joined:  08/19/12
  • Last Seen:  

Please post you're edited script.

 

 

EDIT:

yeah, I made a little mistake:

 

if(countitem(25003) && getgmlevel() < 99)
{
mes "You don't have a GM Allowance.";
close;
}
this is wrong change it to this:
if(!countitem(25003) && getgmlevel() < 99)
{
mes "You don't have a GM Allowance.";
close;
}
And here the final menu line:
switch(select( (getgmlevel() != 99 "I have a GM's Approval Card" : "") +(getgmlevel() < 99 ? "" : ":Guild List") )) {
Edited by skyleo
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  10/15/13
  • Last Seen:  

Thanks you, but I got error sir.

 

post-21347-0-65439500-1383712491_thumb.jpg

 

 

This my Guild Package NPC:

Guild_Pack_Info.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  10/15/13
  • Last Seen:  

Need help, bump up:(

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