Jump to content
  • 0

buffer for guild


Yasunari Ishibashi

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

I would like to request a special buffer guild script

so its function script a buffer to a certain guild is there a simple example script?

thanks.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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;
}

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

if( getcharid(2) != guildID ) end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  189
  • Reputation:   16
  • Joined:  11/20/11
  • Last Seen:  

A Script for this would be like...

map,x,y,direction <TAB> script <TAB> NPC Name <TAB> NPC Sprite.{

if(getcharid(2) != "<Guild ID For this>") close;
sc_start ....

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

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?

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