Jump to content
  • 0

Help Script Guild


Dynasty

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  151
  • Reputation:   5
  • Joined:  11/09/12
  • Last Seen:  

Hello Rathena Community

 

I ve a doubt...

 

how i can make a npc that when your guild is max lvl and if you re the leader the npc give you a item 1 time just 1 time?

 

C:



Help me plz Y_Y

Edited by Dynasty
Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

if (getcharid(2))

mes "You are already in a guild.";

else {

mes "Input a guild name.";

input .@name$;

atcommand "@guild "+.@name$;

mes "Guild ^FF0000"+.@name$+"^000000 created.";

}

close;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

	set .@gid, getcharid(2);

if (GuildReward)

mes "You can only receive your reward once.";

else if (!.@gid)

mes "You aren't in a guild!";

else if (getguildmasterid(.@gid) != getcharid(0))

mes "Only the Guild Master may receive this reward.";

else {

query_sql("SELECT `guild_lv` FROM `guild` WHERE `guild_id` = "+.@gid,.@lv);

if (.@lv < 50)

mes "Your guild has not yet reached the max level.";

else {

getitem ITEM_ID,AMOUNT; // Write your item here.

mes "Here's your reward!";

set GuildReward,1;

}

}

close;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  151
  • Reputation:   5
  • Joined:  11/09/12
  • Last Seen:  

but if i want to disable the command @guild how i can do the same thing (@guild) in a npc? how i can make a npc (npc make guild)?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  151
  • Reputation:   5
  • Joined:  11/09/12
  • Last Seen:  

THANKS,! I REALLY LOVE YOU! *-*.

 

Ok, finally if i want to break the guild and disable the command "/breakguild" for what the only way to break the guild will be for the npc?

 

sry my inglish is so bad u_u

Edited by Dynasty
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

'/breakguild' command is a client command. Currently I don't know how to disable it and run the client command from NPC instead.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  151
  • Reputation:   5
  • Joined:  11/09/12
  • Last Seen:  

But, should have a form to disable that commands, and other thing, how i can make npc that when woe start enable the effect of item in specific and when woe end disable the effect ??

Edited by Dynasty
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

To disable client command, you have to hex it.

Edit your item script and use if agitstart and agitstart2.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  151
  • Reputation:   5
  • Joined:  11/09/12
  • Last Seen:  

mmm Like that?

 

-   Script  WoeBrooch  -1,{

 

Onagistart:

   enable_item:

???

Onagiend:

   disable_item:

?????



up

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  151
  • Reputation:   5
  • Joined:  11/09/12
  • Last Seen:  

help me plz :c

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