Jump to content

madtoyz

Members
  • Posts

    142
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by madtoyz

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

    - How to use this code for lot guild.

    example :

    - Setup only Leader guild from LordOfDeath,ArmyOfHeaven,JackFrozen can redeem item from NPC

    getitem :

    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
    

    correct me if wrong :

    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$,LordOfDeath,ArmyOfHeaven,JackFrozen;
    

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

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

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

×
×
  • Create New...