Jump to content
  • 0
Reducto

REQUEST, CHAGE GuildMaster via NPC w/ Specific ITEM ID

Question

7 answers to this question

Recommended Posts

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

Link to comment
Share on other sites

Test this out.

http://www.mediafire.com/?9ytw37ulh7qu4ug

Tell me bugs and etc.

Don't forget to change configurations.

//Configurations Start

set [email protected], "[NPC Name]"; // NPC Name
set [email protected], 512; //Item Required
set [email protected], 1; //Number of items required

map,x,y,z script NPC_NAME NPC_ID,{

//Configuration End

Edited by Mirage
Link to comment
Share on other sites

@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 [email protected], "[NPC Name]"; // NPC Name

that kind of variable doesn't exist

Should be: set [email protected]$,"[NPC Name]";

Next mistake:

set @GID2,getcharid(2{"@player$"});
if(@GID2)[email protected]) 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)[email protected]):

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

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.