Jump to content
  • 0

REQUEST, CHAGE GuildMaster via NPC w/ Specific ITEM ID


Question

7 answers to this question

Recommended Posts

Posted

GM= Game Master or Guild Master and which Item ID.

Game Master:

Which Level should be the max changeable?

(Well, I'm sure this isn't case, but just curious /no1)

Guild Master:

Access only Guild Master himself or Guild Members too?

Regards,

Chris

Posted

@Mirage:

Lol?

That will never work.

The config has to be inside of the npc or the map server prints syntax error o.o.

Also:

set .name@, "[NPC Name]"; // NPC Name

that kind of variable doesn't exist

Should be: set .@name$,"[NPC Name]";

Next mistake:

set @GID2,getcharid(2{"@player$"});
if(@GID2)==@GID) goto L_NotGuild;

should be:

set @GID2,getcharid(2,@player$);
if(@GID2 != @GID) goto L_NotGuild;

getcharid(2{"@player$"}): I guess you took the example from the doc/script_commands.txt

the {} stats it's optional also you were missing the "," after the 2.

If that is not given it takes the attached player to the npc.

By putting "" the name of the char is exactly like that.

To use an variable remove them like I did.

if(@GID2)==@GID):

First error would be ")" unmatch

second would be if the player is the same guild it would print that he/she is not in your guild which isn't the purpose.

Use "!=", which means is NOT equal to like: if(10 != 5) would be true, since 10 is not equal to 5 right /hmm?

I also saw these lines:

close;
end;

The "end;" is not necesarry in this case, since "close;" ends the script already.

It would be different if you had used "close2;" which closes the message window but doesn't end the script.

I hope you understand those commands a bit better now^^.

But for correction here is my modified script:

Pastebin.com

Regards,

Chris

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