Jump to content
  • 0

Help > Please edit here my script Guild pack info


Question

Posted

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

9 answers to this question

Recommended Posts

Posted (edited)

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
Posted (edited)

Ok, Thanks for your reply:)

 

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

Edited by nieloveyou
Posted

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.

Posted

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

Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...