Jump to content

Question

6 answers to this question

Recommended Posts

Posted

actually....both above

if( getcharid(2) != "guild ID" ) goto failed;

also wrong....because..

getcharid(2) return an integer...not string....so no need to use any quotation marks here... :)

suppose to be

if( getcharid(2) != GuildID ) goto failed;

beside using goto command....you can do it like this also

if( getcharid(2) != GuildID ){
mes "You cant use this NPC. Because it is not belong to your Guild.";
close;
}

Posted

thanks. II'I try

add this line before the buff script is run...

if( getcharid(2) != "guild ID" ) end;

I tried adding a goto failed;

example:

if( getcharid(2) != "guild ID" ) failed;

failed :

npctalk " Your Failed";

but the script does not work properly if there is a solution?

Posted

add this line before the buff script is run...

if( getcharid(2) != "guild ID" ) end;

I tried adding a goto failed;

example:

if( getcharid(2) != "guild ID" ) failed;

failed :

npctalk " Your Failed";

but the script does not work properly if there is a solution?

Should be like this..

if( getcharid(2) != "guild ID" ) goto failed;

failed :
npctalk " Your Failed";
end;

Posted

actually....both above

if( getcharid(2) != "guild ID" ) goto failed;

also wrong....because..

getcharid(2) return an integer...not string....so no need to use any quotation marks here... ani_heh.gif

suppose to be

if( getcharid(2) != GuildID ) goto failed;

beside using goto command....you can do it like this also

if( getcharid(2) != GuildID ){
mes "You cant use this NPC. Because it is not belong to your Guild.";
close;
}

thanks emistry ani_no1.gif

what if more than one guild for example there are 5? how to script?

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