madtoyz Posted September 30, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Share Posted September 30, 2012 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. Quote Link to comment Share on other sites More sharing options...
Z3R0 Posted October 1, 2012 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 618 Reputation: 201 Joined: 11/09/11 Last Seen: June 14, 2024 Share Posted October 1, 2012 Can you please elaborate exactly what you want it to do? The first two parts aren't really clear... Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 1, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 1, 2012 try this... http://pastebin.com/raw.php?i=j2iqdd1i give item to 1 Guild by pm the NPC. [ npc:Sample ] GuildName#ItemID#Amount Quote Link to comment Share on other sites More sharing options...
Z3R0 Posted October 1, 2012 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 618 Reputation: 201 Joined: 11/09/11 Last Seen: June 14, 2024 Share Posted October 1, 2012 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... Quote Link to comment Share on other sites More sharing options...
madtoyz Posted October 4, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Author Share Posted October 4, 2012 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 Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 4, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 4, 2012 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. Quote Link to comment Share on other sites More sharing options...
madtoyz Posted October 4, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Author Share Posted October 4, 2012 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 Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 4, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 4, 2012 try this... http://pastebin.com/raw.php?i=j2iqdd1i give item to 1 Guild by pm the NPC. [ npc:Sample ] GuildName#ItemID#Amount Quote Link to comment Share on other sites More sharing options...
madtoyz Posted October 6, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Author Share Posted October 6, 2012 try this... http://pastebin.com/raw.php?i=j2iqdd1i give item to 1 Guild by pm the NPC. [ npc:Sample ] GuildName#ItemID#Amount 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) ? Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 6, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 6, 2012 replace this with OnWhisperGlobal part.... OnInit: set .Guild$,"NAME"; set .Item,<itemID>; set .Amount,<Amount>; end; Quote Link to comment Share on other sites More sharing options...
madtoyz Posted October 6, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Author Share Posted October 6, 2012 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; Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 6, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 6, 2012 check for guild and guild master before give items.... Quote Link to comment Share on other sites More sharing options...
madtoyz Posted October 6, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Author Share Posted October 6, 2012 thats mean,at the code no need to put itemid and guildname right ?.just put at OnWhisperGlobal only ? Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 6, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 6, 2012 yes... 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 Quote Link to comment Share on other sites More sharing options...
madtoyz Posted October 6, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Author Share Posted October 6, 2012 settle. solve Quote Link to comment Share on other sites More sharing options...
Question
madtoyz
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.