Jump to content

Brian

Members
  • Posts

    2223
  • Joined

  • Last visited

  • Days Won

    24

Posts posted by Brian

  1. Here's an example:

    -	script	login_logout	-1,{

    OnPCLoginEvent:

    dispbottom "You just logged in.";

    // do other stuff

    end;

    OnPCLogoutEvent:

    // dispbottom won't be useful because they logged out

    // ... but we could announce to everyone else:

    announce strcharinfo(0) + " has just logged out.",bc_all;

    // do other stuff

    end;

    }

    And yes, disconnects are treated the same as logouts and will also trigger OnPCLogoutEvent.
    • Upvote 2
  2. Flux CP now running! (but just localhost/cp)

    how can I make the fluxCP online/public? (I'm using localhost/cp)

    Login to your router, go to Port Forwarding, and forward port 80 to your computer's LAN ip. (You might also want to give your computer a static LAN ip.) Then players should be able to access your server at http://<WAN IP>/cp/

    To use a domain/sub-domain instead of an IP, register the domain and add an A Record that points to your WAN IP.

     

    After registering a dummy(test) account, this appeared through my login_table. (MySQL database)

    - How can I make this not MD5? (password)

     

    fk1ou8.png

    Edit the FluxCP file /config/servers.php and change this to false:
    'UseMD5'   => false,
  3. i change hide_woe_damage : to yes

    The hide_woe_damage server-side setting only spoofs the damage packets to "1", instead of the actual damage number. As Euphy said, your client should automatically not display damage numbers on 'gvg_castle' maps (like in ngek202's) screenshot.

    If your client is still displaying numbers (1 damage, or the actual damage numbers), that's a client issue. Looks like your client was modified with the "Show WoE Damage" option.

  4. Did you leave the page/tabs for a while, then click Edit / Quote and have those problems?

    That's happened to me a couple times -- I think it's because of our caching CDN. If you load the page then wait a while, your HTTP request might get routed to a different edge node the next time you click a link (Edit/Quote). Next time if you leave the page open for a while (10+ minutes), reload the page before clicking Edit or Quote.

    PS: these issues should not cause Internet Explorer to crash .. that's just IE :(

  5. -	script	apple	-1,{

    OnWhisperGlobal:

    set .@item_id, 512; // Apple

    if (countitem(.@item_id)) {

    if (Hp) {

    dispbottom "You don't require resurrection at this moment.";

    } else {

    set .@count, callsub(S_getrevivecount);

    // if they have less than 3 revives this hour

    if (.@count < 3) {

    callsub S_setrevivecount, .@count +1;

    dispbottom "Your Acolytes are now praying in Prontera, please wait 10 seconds for the final judgement.";

    sleep2 10000;

    recovery 0;

    dispbottom "You have "+(3 - (.@count+1))+" revives left for this hour.";

    } else {

    dispbottom "You can only be revived 3x every hour.";

    }

    }

    } else {

    dispbottom "You need to have a "+getitemname(.@item_id)+" in your inventory.";

    }

    end;

    S_getrevivecount:

    set .@now_hour, atoi(gettimestr("%y%m%d%H",9)); // YYMMDDHH

    if (atoi(delchar(revive+"",8)) < .@now_hour)

    return 0; // if their last revive was not this hour, then they have used 0 revives this hour

    else

    return atoi(charat(revive+"",8));

    S_setrevivecount:

    set revive, atoi(gettimestr("%y%m%d%H",9) + getarg(0));

    return;

    }

    • Upvote 2
  6. You'd have to add a condition in the source to check every message for the word "questitem", and trigger a label if found. It's a pretty terrible idea.

    I agree with Euphy.

    If you want a custom "word" to trigger a NPC, I think it'd be better to make a custom atcommand. You can use bindatcmd to make @questitem open your Dynamic Quest NPC.

    • Upvote 1
  7. To import a SQL file using the < operator, you don't run "mysql.exe" directly.

    1. open a command prompt

    2. 'cd' to C:\Program Files\MySQL\MySQL Server 5.0\bin\

    3. then type:

    mysql.exe -h myip -u myuser -p ragnarok < C:\Desktop\trunk\sql-files\mob_skill_db.sql
    • Upvote 1
×
×
  • Create New...