madtoyz Posted September 30, 2012 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
Z3R0 Posted October 1, 2012 Posted October 1, 2012 Can you please elaborate exactly what you want it to do? The first two parts aren't really clear... Quote
Emistry Posted October 1, 2012 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
Z3R0 Posted October 1, 2012 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
madtoyz Posted October 4, 2012 Author 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
Emistry Posted October 4, 2012 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
madtoyz Posted October 4, 2012 Author 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
Emistry Posted October 4, 2012 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
madtoyz Posted October 6, 2012 Author 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
Emistry Posted October 6, 2012 Posted October 6, 2012 replace this with OnWhisperGlobal part.... OnInit: set .Guild$,"NAME"; set .Item,<itemID>; set .Amount,<Amount>; end; Quote
madtoyz Posted October 6, 2012 Author 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
Emistry Posted October 6, 2012 Posted October 6, 2012 check for guild and guild master before give items.... Quote
madtoyz Posted October 6, 2012 Author Posted October 6, 2012 thats mean,at the code no need to put itemid and guildname right ?.just put at OnWhisperGlobal only ? Quote
Emistry Posted October 6, 2012 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
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.
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.