Jump to content

Happy

Members
  • Content Count

    170
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by Happy


  1. Instead of every hour, make it every 10 minutes.

    Instead of points, change to item.

    Stop when vending and pub, but allows AFK.

     

    /*
    Instead of every hour, make it every 10 minutes.
    
    Instead of points, change to item.
    
    Stop when vending and pub, but allows AFK.
    */
    
    -    script    ksdfskjfhs    -1,{
    OnPCLoginEvent:
        dispbottom "Your timer starts now. You will receive 10 minute tickets after being online for 10 minutes";
        while (1) {
            if ( checkvending() != 2 && !checkchatting() ) {
                .@hourpointtick++;
                if ( .@hourpointtick > .tick ) {
                    dispbottom "You have received 10 minute tickets";
                    getitem 7227, 10;
                    .@hourpointtick = 0;
                }
            }
            sleep2 .sleeploop;
        }
        end; // doesn't read
    OnInit:
        .sleeploop = 30000; // every 30 seconds
        .tick = 20; // loop 60 times of 30 seconds == 30 minutes
        end;
    }

    There you go, I'll leave the testing to you though just post here again if there are errors :)

    Might be better to use timers, i think there is already an hourly point reward somewhere with timers. Just try to search around.


  2. 7 hours ago, Hidekitakase said:

    Yeah, but the thing is, the bonus status don't change automatically when i change day to night or the opposite. I wanted that the bonus change automatically when the day is over... it's possible?

    maybe post the whole script and i second to @4144 its better if you use timers on this one. Look up addtimer in doc/script_commands.txt and if you haven't read the whole doc, doing a quick glance at each commands might be a big help for you in the future. You don't have to memorize them, you just need to know what's available to you.


  3. Based on the script after a quick look, you're supposed to talk to an npc after being announced as winner. If you've tried talking to the npc, maybe check if there's an error on map server after entering your name(winner name).


  4. Quote

    It seems like the " Target: "Enemy" " setting isn't doing what it should be scripted to be or am i just missing something? 
    Any experts help/reply would be appreciated.

    Hi! :) if that doesn't work, its either the skill_db you're editing is not the right skill_db eg. your server is in RE and you're editing Pre-Re skill_db or the opposite.

    or it just doesn't work and that the target for the skill is hard coded on source.


  5. It is possible. On map/party.c you can try to modify the contents of function party_create

    Find:

    int party_create(struct map_session_data *sd, const char *name,int item,int item2)


  6. On 6/28/2017 at 10:34 AM, greenieken said:

    May I request for a modification.

    Instead of every hour, make it every 10 minutes.

    Instead of points, change to item.

    Stop when vending and pub, but allows AFK.

    Hi! Do you still need it?


  7. Hi! on things like

    On 7/13/2017 at 0:37 PM, Relman said:

    else if ( @PlayersKilledStreak == .doublekill )
                setarray .@streakname$,"doublekill.wav","Réalise un Double Kill","!";

    getitem 985,5;

    put the getitem and the setarray inside a block using {  }

    Eg. 

    else if ( @PlayersKilledStreak == .doublekill ) {
    	setarray .@streakname$,"doublekill.wav","Réalise un Double Kill","!";
    	getitem <itemid>,<amount>;
    }

     

     

×
×
  • Create New...

Important Information

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