Jump to content

penwilders

Members
  • Content Count

    33
  • Joined

  • Last visited

Posts posted by penwilders


  1. help please where to put this? in a .txt file? like a npc?

     -    script    debuffer    -1,{OnInit:    setarray .Map$[0], "arug_cas01", "schg_cas01", "schg_cas02";    set .size, getarraysize(.Map$);    for ( set .@i, 0; .@i < .size; set .@i, .@i + 1 )        setmapflag .Map$[.@i], mf_loadevent;    end;    OnPCLoadMapEvent:    getmapxy(@map$, @x, @y, 0);    while ( .@j < .size ) {        if ( @map$ == .Map$[.@j] )            sc_end SC_ALL;        set .@j, .@j + 1;    }    end;}

  2. i have a bunch of custom auras and i want the NPC Aura to be a npc that can change your aura with a list of custom auras you have and requires an item like 10 proof of donation per custom aura you choose.

    and if you want to change another 10 proof of donation is required.

    i have an example of a custom aura

     

    Lionheart_Aura.rar


  3. this is my script of my broadcaster npc

     

     
    prontera,146,169,5 script Broadcaster 114,{
    //what's the npc name to show in messages?
    set @npcname$, "Broadcaster";
    //NPC Headers Name:
    set @header$,"[^0000ff" + @npcname$ + "^000000]";
    //NPC COST PER Broadcast:
    set @broadcastfee, 5000000;
    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    mes @header$;
    mes "Hi, I'm the Broadcaster";
    mes "I can Broadcast a message for you";
    next;
    mes @header$;
    mes "It costs 5 Million Zeny ";
    next;
    mes @header$;
    mes "Would you like to Broadcast?";
    switch (select("Yes","No")){
    case 1:
    if(@Broadcast> gettimetick(2)) {
    next;
    mes @header$;
    mes "Sorry you have to wait for 3 minutes.";
    close;
    }
    next;
    mes @header$;
    if(Zeny<5000000) goto noZenybc;
    set Zeny, Zeny - @broadcastfee;
    mes "Please input your message.";
    next;
    input @broadcast$;
    announce "Message from "+strcharinfo(0)+": "+@broadcast$+"",0,0x00FFFF;
    close2;
    set @Broadcast, gettimetick(2)+180;
    dispbottom "Broadcaster: Please wait for 3 minutes until next broadcast to avoid flooding.";
    end;
    case 2:
    mes "Suit yourself";
    close;
    }
    noZenybc:
    mes "I have to check that you have";
    mes "enough money";
    next;
    mes @header$;
    mes "Im sorry but you don't have enough Zeny";
    mes "Go get it if you want to Broadcast";
    close;
    }
     
     
     
    but once you relog you can broadcast again. i want 1 char/account/ only to broadcast for every 3 mins to avoid flooding/spamming
     
    thanks in advance

  4.  

    prontera,150,150,4    script    rentitem#123    100,{//prontera,150,150,4<tab>script<tab>rentitem#123<tab>100mes "Rent cost: " + .rentitemamt + "x " +getitemname(.rentitemid)+ " for one day";    next;    mes "What do you want to rent?";switch ( select ( .menu$ )  ) { // items to rent menu    case 1: callsub OnDeclareDays; // call OnDeclareDays to input days.            callsub OnRentItems,2410,.days; // 2410 is sleipnir's Item ID. only change the item ID.    case 2:    callsub OnDeclareDays; // call OnDeclareDays to input days.            callsub OnRentItems,2629,.days; // 2629 is Megs's Item ID. only change the item ID.    // to add more items add more cases example    // case 3: callsub OnDeclareDays;    //            callsub OnRentItems,2220,.days; // rent hat    // and add its name on .menu$ part at the bottom.    // pretty simple huh. }OnDeclareDays:        mes "How many days do you want to rent it?";        input .days; // input days        if (.days == 0 ) { // 0 is not a valid value.            mes "0 is not a valid value.";            close;        }        return .days;OnRentItems:        if ( countitem ( .rentitemid ) < getarg(1) * .rentitemamt ) { // not enough items            mes " ","Not Enough items","You need "+getarg(1) * .rentitemamt+"x "+getitemname(.rentitemid);            close;        }        delitem .rentitemid, getarg(1) * .rentitemamt; // delete items        rentitem getarg(0), getarg(1) * 86400; // rent an items. 86400 = 1 day in seconds        close;OnInit:    set .rentitemid, 7227; // item id of TCG change to your likings.    set .rentitemamt, 10; // item amount of TCG change to your likings.    set .menu$,"Sleip:Megs"; // to add an item separate the item with ":" without the quotes eg: "Sleip:Megs:HAT"}

    try?

     

    @edit

    added some comments.

    npc doesn't appear :(

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.