Jump to content
  • 0

Leader Guild redeem item at NPC


madtoyz

Question


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

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.

Link to comment
Share on other sites

14 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

Can you please elaborate exactly what you want it to do? The first two parts aren't really clear...

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:  

try this...

http://pastebin.com/raw.php?i=j2iqdd1i

give item to 1 Guild by pm the NPC.

[ npc:Sample ] GuildName#ItemID#Amount

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

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...
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

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

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:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

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

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:  

try this...

http://pastebin.com/raw.php?i=j2iqdd1i

give item to 1 Guild by pm the NPC.

[ npc:Sample ] GuildName#ItemID#Amount

9uGJw.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

try this...

http://pastebin.com/raw.php?i=j2iqdd1i

give item to 1 Guild by pm the NPC.

[ npc:Sample ] GuildName#ItemID#Amount

9uGJw.png

this is via admin cmd,

how bout if just put the item in getiitem on script then set name of guild(only leader can redeem it) ?

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:  

replace this with OnWhisperGlobal part....

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

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;

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:  

check for guild and guild master before give items....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

thats mean,at the code no need to put itemid and guildname right ?.just put at OnWhisperGlobal only ?

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:  

yes.../swt mentioned in previous post

try this...

http://pastebin.com/raw.php?i=j2iqdd1i

give item to 1 Guild by pm the NPC.

[ npc:Sample ] GuildName#ItemID#Amount

9uGJw.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

/no1 settle.

solve

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