Jump to content
  • 0

Leader Guild redeem item at NPC


Question

Posted

Leader Guild redeem item at NPC

- GM will setup name of guild on the NPC.

- Setup what item will give to the guild.

- Guild leader only can redeem for 1time only and wait until next update from GM to recieve the reward on NPC.

14 answers to this question

Recommended Posts

Posted

uh, be weary of that... there is no checks for spammin

nevermind, didn't notice "GM" I always think that is "GUILD MASTER" and not "GAME MASTER" haha
;)

been out of the RO loop for a while, forgot the terms...
Posted

prontera,157,187,5 script Guild Redeem Item 757,{
if( getguildname(getcharid(2)) == .Guild$ && getguildmaster(getcharid(2)) == strcharinfo(0) ){
getitem 18601,5;//Red Bred Hat
getitem 18603,5;//Black Devil Mask[1]
getitem 18509,5;//RWC 2010 Indonesia
getitem 18508,5;//Garuda Hat
getitem 18599,5;//Black Devil Mask
set .Guild$,RENZO;
mes "here's your reward.";
}else{
mes "Sorry there is nothing you can claim here.";
}
close;
OnWhisperGlobal:
if( getgmlevel() >= 99 ){
if( getitemname(atoi(@whispervar1$)) != "null" && atoi(@whispervar1$) > 0 ){
 set .Guild$,@whispervar0$;
 set .Item,atoi(@whispervar1$);
 set .Amount,atoi(@whispervar2$);
 dispbottom "[ Guild Assigned : "+.Guild$+" | Item : "+getitemname(.Item)+" | Amount : "+.Amount+" ]";
}else{
 dispbottom "[ Invalid Setup ] :  GuildName#ItemID#Amount";
}
}
end;
}

when click this NPC....they will say Sorry there is nothing you can claim here...

how the script working ?teach me please

Posted

Leader Guild redeem item at NPC

- GM will setup name of guild on the NPC.

- Setup what item will give to the guild.

- Guild leader only can redeem for 1time only and wait until next update from GM to recieve the reward on NPC.

Posted

set .Guild$,RENZO;

izit right ?

OnWhisperGlobal:
if( getgmlevel() >= 99 ){
if( getitemname(atoi(@whispervar1$)) != "null" && atoi(@whispervar1$) > 0 ){
 set .Guild$,@whispervar0$;
 set .Item,atoi(@whispervar1$);
 set .Amount,atoi(@whispervar2$);
 dispbottom "[ Guild Assigned : "+.Guild$+" | Item : "+getitemname(.Item)+" | Amount : "+.Amount+" ]";
}else{
 dispbottom "[ Invalid Setup ] :  GuildName#ItemID#Amount";
}
}
end;
}

explain this func for me please....because when i try using gm level99,nothing happen

Posted

replace this with OnWhisperGlobal part....

OnInit:
set .Guild$,"NAME";
set .Item,<itemID>;
set .Amount,<Amount>;
end;

and this code is what for ?

if( getguildname(getcharid(2)) == .Guild$ && getguildmaster(getcharid(2)) == strcharinfo(0) ){
getitem 18601,5;//Red Bred Hat
getitem 18603,5;//Black Devil Mask[1]
getitem 18509,5;//RWC 2010 Indonesia
getitem 18508,5;//Garuda Hat
getitem 18599,5;//Black Devil Mask
set .Guild$,RENZO;
mes "here's your reward.";
}else{
mes "Sorry there is nothing you can claim here.";
}
close;

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