Jump to content

whitesn

Members
  • Posts

    193
  • Joined

  • Last visited

Posts posted by whitesn

  1. http://pastebin.com/raw.php?i=dnng4smb

    http://pastebin.com/raw.php?i=JwYBip1V

     

    Test it first before using (I already tested though)

     

    edit: error on card xD wait a sec...

    edit2: it's working, but try it first maybe I missed something..

     

    Oh yeah, don't forget to configure the NPC beforehand..

    OnInit:
    setarray .item1[1],8048,8049,8050,8051,8025,8053,8054,8055,8056,8057,8058,8059,8060,8061,8062,8063,8064;
    setarray .item2[1],8128,8129,8130,8131,8132,8133,8134,8135,8136,8137,8138,8139,8140,8141,8142,8143,8144;
    
    // -- Just to test don't uncomment this line or you can just delete it anyway... --
    //setarray .item1[1],2102,2221; 
    //setarray .item2[1],2106,2227;
    

    you need to do @reloadscript or restart your server...

    • Upvote 1
  2. uhh is there any solution for this problem? My client can't save the BM keys also after closing the client

     

    Settings will saved to [E:\Games\Ragnarok\CleanKRO[04-05-2013]\\SaveData\UserKeys.lub] when
    you normally exit.
    
     

    Somehow I don't have UserKeys.lub on my SaveData folder and i don't know if that double backslash is client's fault or it's

    just there...

  3. Hey, it works. But I need a client that has 'zoom out max' and 'doesn't read folder data' diff. I tried WeeDiff, but for some reason it doesn't give me the 'Enable multiple GRF' diff (I already have WDGEnableMultipleGRF.dll on my plugins folder). Can you help me diffing the client?

     

    I take the latest ShinDiffer from Judas and it's working good, but I got Gravity Error upon entering map. Do you use any uncommon hex on your client ?

     

    All working out nicely /no1

  4. This script will help your player not to lose track from the changes you have made. Code is still messy though, I'm still learning the basics and I hope you guys can give me some feedbacks /ok

     

    5bF3SB7.gif

     

     

    Features

    • Display Changelog in sequence 1.1, 1.2, 1.3, until 1.9 then 2.0, 2.1.....

    • Edit a specific log

    • Remove a specific log

    • Remove all the logs

    • Some simple configuration

    • to be added later....

     

    How to use ?

    1. Open your phpmyadmin and execute this SQL Query

     

    CREATE TABLE `changelog` (
      `id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
      `changelog` VARCHAR(300) NOT NULL,
      `date` VARCHAR(30) NOT NULL,
      `author` VARCHAR(24) NOT NULL,
      PRIMARY KEY (`id`)
    )
    ENGINE = InnoDB;
     

    2. Download the attachment below, put it in your npc folder and add it to scripts_custom.conf

     

    3. Configuration (optional)

     

    // ------------- Inline Configuration -----------------
    set .npcname$,"[ ^3a68ffChangelog^000000 ]";
    set .minGMLevel,99;        // The minimum level of GM to make, edit, or remove a log.
    set .broadcast,1;        // 0=Disabled || 1=Enabled, broadcast when a GM edit / add a Change Log.
    set .loglimit,5;        // The Limit of Changelogs displayed
    end;
    // ----------------------------------------------------
     

    4. Restart your server or just type @reloadscript in game.

     

    changelog.txt

    changelog.txt

    • Upvote 1
  5. setarray .buffcode[0],30,32,36,37,44,45,72,73,74,75,110,115,147,148,149,120,121,175;
    

    lesson i learnt from @AnnieRuru is that, prevent using numbering when there are available "SC_NAME" / "EF_NAME" for you...

    you can get all the name from db/const.txt

     

    if($gmconfiguration == 0) setarray $buffconf[0],1,1,0,0,0,0,0,0,0,0,0,0,0,0,0;
    

    instead of array, perhap you can try using bitmask value ...

    Uhh what's the difference?

     

    How to use the bitmask value? Are you referring to this?

    Optional value <flag> is how the status change start will be handled (a bitmask).
    1: Status change cannot be avoided.
    2: Tick cannot be reduced by stats (default).
    4: sc_data loaded, so no value will be altered.
    8: Rate cannot be reduced.
  6. This is a Healer with in-game configuration, you can also set the minimum level of GM
    to configure the script. Hopefully this will help some server owner who has trouble on

    making buff script.

    PXvxcwd.png?1

    set .npcname$,"[ ^3a68ffHealer^000000 ]"; //The NPC Name
    set .gmlevel,99;	// Min GM Level to do in-game configuration (See conf/groups.conf for group_id's lists)
    set .buffduration,5; 	// Buff Duration in minute
    end;

    Features

    • Add / Remove buff in game

    • Set the configuration back to default (only giving Blessing and Agility buff)

    • Turn on all the buff
    • to be added more in the future... (feedbacks)


    v1.0 healer.txt

    • Upvote 1
  7. 2essy i want to ask about SGCP instalation

     

    first :

     

                                  Creating Database: sgcp

    Create Database Button

    CP can't working now it must to create a sgcp database. You want to create it at this time.        

     

    after i submit the button it comes up with this msg :

     

    Notice: Use of undefined constant code - assumed 'code' in F:\xampp\htdocs\sgcp2\install.php on line 2

    Notice: Use of undefined constant code - assumed 'code' in F:\xampp\htdocs\sgcp2\install.php on line 63

     

    after i open file install.php i found this 'if(empty($_GET[code]))'
    
     

    otherwise i succeed create database -> 'cpdb'

    but... my page WHITE blank.

     

    do you have any idea what should i do?

    I never get that kind of error. Are you by any chance using different or modified version?
  8. Hi guys can you please check this script that I referenced with your post?

     

     

    The reason i don't give any warnings with messages is because they might bypass the script using commands to unbind their character from the script (@go, @warp, @load, etc).

    Anyway compare check whether you've a specific string on another string

    On your script I might still bypass using

     

    Holl.ister

    Hollister.

    .Hollister

    -Hollister-

     

    or much more.

     

    for(set .a,0; .a < .bannedamt; set .a,.a+1) {
    should be
    for(set .a,0; .a <= .bannedamt; set .a,.a+1) {
  9. like this?

     

    - script   sample {
    if(strcharinfo(0) == getequipid(4) == 6010) {
    set .nickname$,strcharinfo(0);
    query_sql("UPDATE `char` SET name='[Title] "+.nickname$+"' WHERE name='"+.nickname$+"'");
    end;
    }
    

    How can i add SQL? I know how to put existing one but i dont know how to make one.

     

    Yeah it's just like that you can do a lot of modification though.

     

  10. Wow i learn alot by just reading in these forums, can i ask out of the topic, is it possible to make a title system using fake names attach in achievement/items/empbreaker etc? Then he can choose his desirable title on a npc?

     

    -       script  gmrenamer       -,{

         

        OnPCLoginEvent:

        set .nickname$,strcharinfo(0);

        setarray .banned$[0],"GM","[GM]","Admin","G M","[Admin]","A dmin";

        set .bannedamt,getarraysize(.banned$);

                if(getgmlevel() > 0) {

                        if(compare(.nickname$,"[GM] ") == 0) {

                        query_sql("UPDATE `char` SET name='[GM] "+.nickname$+"' WHERE name='"+.nickname$+"'");

                        mes "You have to relog to update your nickname to have ^FF0000[GM]^000000 tag";

                        }

                } else {

                        for(set .a,0; .a < .bannedamt; set .a,.a+1) {

                                if(compare(.nickname$,.banned$[.a]) == 1) {

                                atcommand "@block "+.nickname$+"";

                                }

                        }

                }

                end;

         

    }

    fakename isn't permanent they sometime changes on certain circumstances if I recall it right. So the best way is just to update the name on SQL.

×
×
  • Create New...