Jump to content
  • 0

Help Script Guild


Question

Posted (edited)

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

10 answers to this question

Recommended Posts

Posted

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;

Posted

	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;

Posted (edited)

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
Posted (edited)

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

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