Jump to content

Onairda

Members
  • Posts

    182
  • Joined

  • Last visited

Posts posted by Onairda

  1. My Webserv.bat is working and no error. However, it don't know where to place the emblem folder and the emblem's.

    Im using 2019 client will it work?

     

    On 9/19/2023 at 2:52 PM, Botaring said:

    It's just this, sir:
     

    web_port: 8888

     

    Mine has been solved. its working fine now :).

    You need to diff HTTP Emblem - before it works.

  2. Hello 🙂

    I've noticed that the latest rathena git have web-server.bat, I am just think how to enable this so I can use GIF emblem? and also is this fit to work with 2019-06.05f clients?

    Thank you so much

     

  3. 7 hours ago, AceofSpades said:

    then learn how to apply the queryl_sql guide here, you need to learn and understand how to apply it on your npc

    hahaha, thanks for replying 😄. but this is not what i asked 😄.

     

    5 hours ago, Winterfox said:

    If you have logging enabled, you can check the picklog table for rows where type is S.

    // 0x00000010 - (S) Log NPC transactions (buy/sell)

    For details, check log_athena.conf. The logging part is directly at the beginning of the file.

    Thank you so much Winterfox, this what I need ❤️

  4. Do we have a table in the database where we can track all the bought and sold items in the NPC?

     

    I am talking for the whole NPC inside the Ragnarok.

     

    I don't need a custom script to manually insert it in the database I want the default NPC script used inside the game.

     

    like the tool dealer, if someone buys and sells items to the tool dealer it will be recorded.

     

     

    thank you

     

     

     

     

  5. Hello Everyone,

    I was hoping if you could help me, to have the below script work. What I want is create a random generator code "Transaction Code" temporarily, which means only transacting players can see the generated Transaction Code and even 100 players using the script it wont give the same Transaction Code.

    prontera,155,155,3	script	TESTSTE	92,{
    
    	setarray .coupon_code$[0],"A","B","C","D","E","F","G","H","I","J","K","L",
    							  "M","N","O","P","Q","R","S","T","U","V","W","X",
    							  "Y","Z","0","1","2","3","4","5","6","7","8","9";
    	
    	set .@new_transaction$, "";
    	set .@code_exists$, 0;
    
    	mes "test";
    	while (@code_exists == 0) {
    		for (set @i, 0; @i < 6; set @i, @i+1) {
    			set .@random_char$, rand(0, (getarraysize(.coupon_code$) - 1));
    			set .@new_transaction$, .@new_transaction$ + .coupon_code$[.@random_char$];
    		}
    
    		query_sql("SELECT COUNT(*) FROM transaction_tbl WHERE transaction_code='" + .@new_transaction$ + "'", .@code_count);
    		if (.@code_count == 0) {
    			set .@code_exists$, 1;
    			query_sql("INSERT INTO transaction_tbl (transaction_code) VALUES ('" + .@new_transaction$ + "')");
    			mes "Transaction Code: " + .@new_transaction$ + " inserted into the database.";
    		} else {
    			set .@new_transaction$, "";
    		}
    	}
    
    	set .@new_transaction$, "";
    
    close;
    
    }

     

    Thank you

  6. On 8/9/2021 at 6:21 PM, L1nkZ said:

    Hi,

    Yes, Windows 7 32-bit is supported.

    Hello L1nkz,

    Can someone provide the steps for using this Rpatchur?

    I am already able to build the Rpatchur. However, I don't know what folder and files to edit the data for the website. 

    is it on the Rpatchure folder? or the Example folder rpatchur.yml?

     

    Please help 

     

    Thank you

  7. 4 hours ago, LearningRO said:

     

    *mail <destination id>,"<sender name>","<title>","<body>"{,<zeny>{,<item id array>,<item amount array>{,refine{,bound{,<item card0 array>{,<item card1 array>{,<item card2 array>{,<item card3 array>
    		{,<random option id0 array>, <random option value0 array>, <random option paramter0 array>{,<random option id1 array>, <random option value1 array>, <random option paramter1 array>
    		{,<random option id2 array>, <random option value2 array>, <random option paramter2 array>{,<random option id3 array>, <random option value3 array>, <random option paramter3 array>
    		{,<random option id4 array>, <random option value4 array>, <random option paramter4 array>}}}}}}}}};

     

    wow thanks for this could you show some example how to define it in script? ? thanks

  8. On 11/30/2012 at 1:36 AM, clydelion said:

    Mail via Scriptcommand

    With this mod, you can do something like this..

    (The sample code in the background is outdated)

    douypu.jpg

    This is a scriptcommand I wanted when I still had a server. It can be used in Achievement Systems, WoE prizes, and other events. This is better than getitem because the recipient doesn't need to be online.

    Usage:

    * sendmail <Recipient's Char ID>,"<Sender's Name>","<Title>","<Body>",<zeny>,<item_id>,<amount>{,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>};

    Description:

    Uses the same functions as the default mail system, but this time, it is done via script. All item, recipent, message, and title assignment are done in the background. Enjoy this free release. :)

    PS: This have not been used on a live server, if you discover a bug (or if there's something wrong with my coding) let me know. :D

    My sample script:

    This code will give the player a +10 Knife and 10,000 zennies upon reaching job level 10.

     

    -<tab>script<tab>Mail Test<tab>-1,{
    OnPCJobLvUpEvent:
    if(JobLevel != 9) end;
    set .charid, getcharid(0);
    set .sender$, "Achievement System";
    set .title$, "Basic Skills";
    set .itemid, 1201;
    set .itemamount, 1;
    set .zeny, 10000;
    set .refine, 10;
    set .body$, "You have successfully unlocked the achievement '"+.title$+"'. You have received "+.itemamount+" "+getitemname(.itemid)+"s and "+.zeny+" zennies.";
    sendmail .charid,.sender$,.title$,.body$,.zeny,.itemid,.itemamount,.refine;
    end;
    }
     

     

    PS: This wasn't used on a live server, please report any bugs you encounter.

    DIFF LINK

    Are this added to latest rA svn?

  9. anyone? please

    On 6/16/2022 at 11:59 PM, Emistry said:

    if the db isn't stored in same instance, then you probably should setup a scheduled tasks to sync it or manually sync it instead.

    love it. Thanks Emistry your fan since 2012 

  10. On 8/9/2021 at 9:12 AM, Eross said:

    Hi ! Im using @whosell and @whobuy on my old server .. apparently something has change since we upgraded to latest rathena ... 

     

    errors are coming since then .. Please help heres my source codes 

     

    Index: atcommand.c
    ===================================================================
    --- atcommand.c	(revision 16082)
    +++ atcommand.c	(working copy)
    @@ -8473,6 +8473,69 @@
     	return 0;
     }
     
    +/*==========================================
    +* @whobuys - List who is buying the item (amount, price, and location).
    +* remake by VoidLess, original by zephyrus_cr
    +* re-edit by deathscythe to work in rAthena
    +*------------------------------------------*/
    +ACMD_FUNC(whobuys)
    +{
    +    char item_name[100];
    +    int item_id, j, count = 0, sat_num = 0;
    +    bool flag = 0; // place dot on the minimap?
    +    struct map_session_data* pl_sd;
    +    struct s_mapiterator* iter;
    +    unsigned int MinPrice = battle_config.vending_max_value, MaxPrice = 0;
    +    struct item_data *item_data;
    +
    +    nullpo_retr(-1, sd);
    +    memset(item_name, '\0', sizeof(item_name));
    +
    +    if (!message || !*message || sscanf(message, "%99[^\n]", item_name) < 1) {
    +        clif_displaymessage(fd, "Input item name or ID (use: @whobuys <name or ID>).");
    +        return -1;
    +    }
    +    if ((item_data = itemdb_searchname(item_name)) == NULL &&
    +        (item_data = itemdb_exists(atoi(item_name))) == NULL)
    +    {
    +        clif_displaymessage(fd, msg_txt(sd, 19)); // Invalid item ID or name.
    +        return -1;
    +    }
    +
    +    item_id = item_data->nameid;
    +
    +    iter = mapit_getallusers();
    +    for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) )
    +    {
    +        if( pl_sd->buyer_id ) //check if player is autobuying
    +        {
    +			for (j = 0; j < pl_sd->buyingstore.slots; j++) {
    +				if(pl_sd->buyingstore.items[j].nameid == item_id) {
    +					snprintf(atcmd_output, CHAT_SIZE_MAX, "ID: %d | Price: %d z | Amount: %d | Buyer: %s | Location: %s (%d,%d)"
    +					,pl_sd->buyingstore.items[j].nameid
    +					,pl_sd->buyingstore.items[j].price
    +					,pl_sd->buyingstore.items[j].amount
    +					,pl_sd->status.name
    +					,mapindex_id2name(pl_sd->mapindex)
    +					,pl_sd->bl.x, pl_sd->bl.y);
    +					if(pl_sd->buyingstore.items[j].price < MinPrice) MinPrice = pl_sd->buyingstore.items[j].price;
    +					if(pl_sd->buyingstore.items[j].price > MaxPrice) MaxPrice = pl_sd->buyingstore.items[j].price;
    +                    clif_displaymessage(fd, atcmd_output);
    +                    count++;
    +                    flag = 1;
    +                }
    +            }
    +            if(flag && pl_sd->mapindex == sd->mapindex){
    +                clif_viewpoint(sd, 1, 1, pl_sd->bl.x, pl_sd->bl.y, ++sat_num, 0xFFFFFF);
    +                flag = 0;
    +            }
    +        }
    +    }
    +    mapit_free(iter);
    +
    +    if(count > 0) {
    +        snprintf(atcmd_output,CHAT_SIZE_MAX, "Found %d ea. Prices from %dz to %dz", count, MinPrice, MaxPrice);
    +        clif_displaymessage(fd, atcmd_output);
    +    } else
    +        clif_displaymessage(fd, "Nobody buying it now.");
    +
    +    return 0;
    +}
    +
     /**
      * Fills the reference of available commands in atcommand DBMap
      **/
    @@ -8717,6 +8780,7 @@
     		ACMD_DEF(charcommands),
     		ACMD_DEF(font),
     		ACMD_DEF(accinfo),
    +		ACMD_DEF(whobuys),
     		/**
     		 * For Testing Purposes, not going to be here after we're done.
     		 **/
    
    
    
    
    
    diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp
    index cab676cce..b7456cda7 100644
    --- a/src/map/atcommand.cpp
    +++ b/src/map/atcommand.cpp
    @@ -8395,6 +8395,152 @@ ACMD_FUNC(mapflag) {
     	return 0;
     }
     
    +/*==========================================
    +* @whosells - List who is vending the item (amount, price, and location).
    +* ported to work in latest rA [Cookie]
    +*------------------------------------------*/
    +ACMD_FUNC(whosells)
    +{
    +   char item_name[100];
    +   int item_id = 0, j, count = 0, sat_num = 0;
    +   int s_type = 1; // search bitmask: 0-name,1-id, 2-card, 4-refine
    +   int refine = 0,card_id = 0;
    +   bool flag = 0; // place dot on the minimap?
    +   struct map_session_data* pl_sd;
    +   struct s_mapiterator* iter;
    +   unsigned int MinPrice = battle_config.vending_max_value, MaxPrice = 0;
    +   struct item_data *item_data;
    +   nullpo_retr(-1, sd);
    +
    +
    +   if (!message || !*message) {
    +    clif_displaymessage(fd, "Use: @whosells (<+refine> )(<item_id>)(<[card_id]>) or @whosells <name>");
    +    return -1;
    +   }
    +   if (sscanf(message, "+%d %d[%d]", &refine, &item_id, &card_id) == 3){
    +    s_type = 1+2+4;
    +   }
    +   else if (sscanf(message, "+%d %d", &refine, &item_id) == 2){
    +    s_type = 1+4;
    +   }
    +   else if (sscanf(message, "+%d [%d]", &refine, &card_id) == 2){
    +    s_type = 2+4;
    +   }
    +   else if (sscanf(message, "%d[%d]", &item_id, &card_id) == 2){
    +    s_type = 1+2;
    +   }
    +   else if (sscanf(message, "[%d]", &card_id) == 1){
    +    s_type = 2;
    +   }
    +   else if (sscanf(message, "+%d", &refine) == 1){
    +    s_type = 4;
    +   }
    +   else if (sscanf(message, "%d", &item_id) == 1 && item_id == atoi(message)){
    +    s_type = 1;
    +   }
    +   else if (sscanf(message, "%99[^\n]", item_name) == 1){
    +    s_type = 1;
    +    if ((item_data = itemdb_searchname(item_name)) == NULL){
    +	    clif_displaymessage(fd, "Not found item with this name");
    +	    return -1;
    +    }
    +    item_id = item_data->nameid;
    +   }
    +   else {
    +    clif_displaymessage(fd, "Use: @whosells (<+refine> )(<item_id>)(<[card_id]>) or @whosells <name>");
    +    return -1;
    +   }
    +
    +   //check card
    +   if(s_type & 2 && ((item_data = itemdb_exists(card_id)) == NULL || item_data->type != IT_CARD)){
    +    clif_displaymessage(fd, "Not found a card with than ID");
    +    return -1;
    +   }
    +   //check item
    +   if(s_type & 1 && (item_data = itemdb_exists(item_id)) == NULL){
    +    clif_displaymessage(fd, "Not found an item with than ID");
    +    return -1;
    +   }
    +   //check refine
    +   if(s_type & 4){
    +    if (refine<0 || refine>10){
    +	    clif_displaymessage(fd, "Refine out of bounds: 0 - 10");
    +	    return -1;
    +    }
    +    /*if(item_data->type != IT_WEAPON && item_data->type != IT_ARMOR){
    +	    clif_displaymessage(fd, "Use refine only with weapon or armor");
    +	    return -1;
    +    }*/
    +   }
    +   iter = mapit_getallusers();
    +   
    +   for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) )
    +   {
    +    if( pl_sd->vender_id ) //check if player is vending
    +    {
    +	    for (j = 0; j < pl_sd->vend_num; j++) {
    +		    if((item_data = itemdb_exists(pl_sd->cart.u.items_cart[pl_sd->vending[j].index].nameid)) == NULL)
    +			    continue;
    +		    if(s_type & 1 && pl_sd->cart.u.items_cart[pl_sd->vending[j].index].nameid != item_id)
    +			    continue;
    +    		if(s_type & 2 && ((item_data->type != IT_ARMOR && item_data->type != IT_WEAPON) ||
    +                    (pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[0] != card_id &&
    +                    pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[1] != card_id &&
    +                    pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[2] != card_id &&
    +                    pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[3] != card_id)))
    +                continue;
    +            if(s_type & 4 && ((item_data->type != IT_ARMOR && item_data->type != IT_WEAPON) || pl_sd->cart.u.items_cart[pl_sd->vending[j].index].refine != refine))
    +                continue;
    +            if(item_data->type == IT_ARMOR)
    +                snprintf(atcmd_output, CHAT_SIZE_MAX, "Refine: +%d | ID: %d | Card: [%d] | Price: %d z | Amount: %d  | Seller: %s | Location: %s (%d,%d)"
    +					 ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].refine
    +                    ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].nameid
    +                    ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[0]
    +                    ,pl_sd->vending[j].value
    +                    ,pl_sd->vending[j].amount
    +                    ,pl_sd->status.name
    +                    ,mapindex_id2name(pl_sd->mapindex)
    +                    ,pl_sd->bl.x,pl_sd->bl.y);
    +            else if(item_data->type == IT_WEAPON)
    +                snprintf(atcmd_output, CHAT_SIZE_MAX, "Refine: +%d | ID: %d | Cards: [%d,%d,%d,%d] | Price: %d z | Amount: %d | Seller: %s | Location: %s (%d,%d)"
    +					 ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].refine
    +                    ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].nameid
    +                    ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[0]
    +                    ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[1]
    +                    ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[2]
    +                    ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[3]
    +                    ,pl_sd->vending[j].value
    +                    ,pl_sd->vending[j].amount
    +                    ,pl_sd->status.name
    +                    ,mapindex_id2name(pl_sd->mapindex)
    +                    ,pl_sd->bl.x,pl_sd->bl.y);
    +            else
    +                snprintf(atcmd_output, CHAT_SIZE_MAX, "ID: %d | Price: %d z | Amount: %d | Seller: %s | Location: %s (%d,%d)"
    +					 ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].nameid
    +                    ,pl_sd->vending[j].value
    +                    ,pl_sd->vending[j].amount
    +					 ,pl_sd->status.name
    +                    ,mapindex_id2name(pl_sd->mapindex)
    +                    ,pl_sd->bl.x, pl_sd->bl.y);                
    +            if(pl_sd->vending[j].value < MinPrice) MinPrice = pl_sd->vending[j].value;
    +            if(pl_sd->vending[j].value > MaxPrice) MaxPrice = pl_sd->vending[j].value;
    +            clif_displaymessage(fd, atcmd_output);
    +            count++;
    +            flag = 1;
    +    		}
    +            if (flag && pl_sd->mapindex == sd->mapindex) {
    +			//if (flag && pl_sd->bl.m == sd->bl.m) {
    +                clif_viewpoint(sd, 1, 1, pl_sd->bl.x, pl_sd->bl.y, ++sat_num, 0xFFFFFF);
    +                flag = 0;
    +            }
    +        }
    +    }
    +    mapit_free(iter);
    +    if(count > 0) {
    +        snprintf(atcmd_output, CHAT_SIZE_MAX, "Found %d ea. Prices from %dz to %dz.", count, MinPrice, MaxPrice);
    +    clif_displaymessage(fd, atcmd_output);
    +   } else
    +    clif_displaymessage(fd, "Nobody is selling it now.");
    +   return 0;
    +}
    +
     /*===================================
      * Remove some messages
      *-----------------------------------*/
    @@ -10593,6 +10739,7 @@ void atcommand_basecommands(void) {
     		ACMD_DEFR(channel,ATCMD_NOSCRIPT),
     		ACMD_DEF(fontcolor),
     		ACMD_DEF(langtype),
    +		ACMD_DEF(whosells),
     #ifdef VIP_ENABLE
     		ACMD_DEF(vip),
     		ACMD_DEF(showrate),

    whobuy_whosell.patch 10.2 kB · 18 downloads

     

    Error occured on latest rAthena.  please see below. thanks for your help

    image.thumb.png.4325109ed688c9ecf1a236feb90037bd.png

  11. 5 minutes ago, Poring King said:

    No you are wrong.. Check this out you need to read carefully

    // MySQL Login server - This connection is between your server Database and your mysql Server
    login_server_ip: 127.0.0.1
    login_server_port: 3306
    login_server_id: root - Username of your MySQL Server by default i assume its root
    login_server_pw: admin - Root password for your MySQL Server by default i assume its admin
    login_server_db: ragnarok db - Your database name which is contain of login table
    login_codepage:
    login_case_sensitive: no

    Now this is your connection to your Database to your test server / online server

    // MySQL Character server
    char_server_ip: 127.0.0.1
    char_server_port: 3306
    char_server_id: ragnarok - Server USERNAME which is place in 1 in Login Table .
    char_server_pw: ragnarok - Server PASSWORD which is place in 1 in Login Table .
    char_server_db: ragnarok db - Name of the database in your MySQL Server which is ragnarok db as far i see on your post

    // MySQL Map Server
    map_server_ip: 127.0.0.1
    map_server_port: 3306
    map_server_id: ragnarok - Apply the Same in the top
    map_server_pw: ragnarok - Apply the Same in the top
    map_server_db: ragnarok db - Apply the Same in the top

    // MySQL Log Database
    log_db_ip: 127.0.0.1
    log_db_port: 3306
    log_db_id: ragnarok - Apply the Same in the top
    log_db_pw: ragnarok - Apply the Same in the top
    log_db_db: ragnarok - Apply the Same in the top
    log_codepage:
    log_login_db: ragnarok db- I dont know where you put your logs file but i assume you put it on 1 database only which is ragnarok db

    My Personal Setup its up to you if you do this or not..
    log_login_db: loginlog - On my case i use 2 different database . First i put the main.sql file on my ragnarok_db . Then i create a new database for logs.sql file using login_db to easy locate all your logs file 

     

    Hello Poring king ?

    I really appreciate your response. Thank you! <3. However, I already resolved the issue by downgrading from MySQL server 8.+ to MySQL Server 5.+ .

  12. 6 hours ago, hendra814 said:

    your's ragnarok database not using ragnarok but ragnarok db

    Change at inter_athena,conf for login_server_db, ip_ban_db, char_server_db, map_server_db, and log_login_db

    Hello ?
     

    Thank you for your response. However, the Ragnarok DB is just a connection name on my MySQL. the account registered  in Administrator is ragnarok.

    username: ragnarok
    passwd: ragnarok

    port: 3306

    image.png.f2bcc8bcea42f15b9ca0addeab2585fb.png

    Inter_athena.conf are also have the correct details.

     

  13. Hello Everyone, 

    Good day!

    Seeking your kind assistance/advise regarding the below error showing when starting up the Server.

    image.thumb.png.d0ff60eadb5bfedb32af9d8245d49312.png

     

    Please see the below details of my Char, Maps, and Inter Athena config.

    Character_Athena.conf

    // Athena Character configuration file.
    
    // Note: "Comments" are all text on the right side of a double slash "//"
    // Whatever text is commented will not be parsed by the servers, and serves
    // only as information/reference.
    
    // Server Communication username and password.
    userid: ragnarok
    passwd: ragnarok
    
    // Server name, use alternative character such as ASCII 160 for spaces.
    // NOTE: Do not use spaces or any of these characters which are not allowed in
    //       Windows filenames \/:*?"<>|
    //       ... or else guild emblems won't work client-side!
    server_name: rAthena
    
    // Wisp name for server: used to send wisp from server to players (between 4 to 23 characters)
    wisp_server_name: Server
    
    // Login Server IP
    // The character server connects to the login server using this IP address.
    // NOTE: This is useful when you are running behind a firewall or are on
    // a machine with multiple interfaces.
    login_ip: 127.0.0.1
    
    // The character server listens on the interface with this IP address.
    // NOTE: This allows you to run multiple servers on multiple interfaces
    // while using the same ports for each server.
    //bind_ip: 127.0.0.1
    
    // Login Server Port
    login_port: 6900
    
    // Character Server IP
    // The IP address which clients will use to connect.
    // Set this to what your server's public IP address is.
    char_ip: 127.0.0.1
    
    // Character Server Port
    char_port: 6121
    
    //Time-stamp format which will be printed before all messages.
    //Can at most be 20 characters long.
    //Common formats:
    // %I:%M:%S %p (hour:minute:second 12 hour, AM/PM format)
    // %H:%M:%S (hour:minute:second, 24 hour format)
    // %d/%b/%Y (day/Month/year)
    //For full format information, consult the strftime() manual.
    //timestamp_format: [%d/%b %H:%M]
    
    //If redirected output contains escape sequences (color codes)
    stdout_with_ansisequence: no
    
    //Makes server log selected message types to a file in the /log/ folder
    //1: Log Warning Messages
    //2: Log Error and SQL Error messages.
    //4: Log Debug Messages
    //Example: "console_msg_log: 7" logs all 3 kinds
    //Messages logged by this overrides console_silent setting
    console_msg_log: 0
    
    // File path to store the console messages above
    console_log_filepath: ./log/char-msg_log.log
    
    //Makes server output more silent by ommitting certain types of messages:
    //1: Hide Information messages
    //2: Hide Status messages
    //4: Hide Notice Messages
    //8: Hide Warning Messages
    //16: Hide Error and SQL Error messages.
    //32: Hide Debug Messages
    //Example: "console_silent: 7" Hides information, status and notice messages (1+2+4)
    console_silent: 0
    
    // Console Commands
    // Allow for console commands to be used on/off
    // This prevents usage of >& log.file
    console: off
    
    // Type of server.
    // No functional side effects at the moment.
    // Displayed next to the server name in the client.
    // 0=normal, 1=maintenance, 2=over 18, 3=paying, 4=P2P
    char_maintenance: 0
    
    // Enable or disable creation of new characters.
    // Now it is actually supported [Kevin]
    char_new: yes
    
    // Display (New) in the server list.
    char_new_display: 0
    
    // Maximum users able to connect to the server.
    // Set to 0 to disable users to log-in. (-1 means unlimited)
    max_connect_user: -1
    
    // Group ID that is allowed to bypass the server limit of users.
    // Or to connect when the char is in maintenance mode (groupid >= allow)
    // Default: -1 = nobody (there are no groups with ID < 0)
    // See: conf/groups.conf
    gm_allow_group: 99
    
    // How often should the server save guild infos? (In seconds)
    // (character save interval is defined on the map config (autosave_time))
    autosave_time: 60
    
    // Display information on the console whenever characters/guilds/parties/pets are loaded/saved?
    save_log: yes
    
    // Starting point for new characters
    // Format: <map_name>,<x>,<y>{:<map_name>,<x>,<y>...}
    // Max number of start points is MAX_STARTPOINT in char.hpp (default 5)
    // Location is randomly picked on character creation.
    // NOTE: For Doram, this requires client 20151001 or newer.
    start_point: iz_int,18,26:iz_int01,18,26:iz_int02,18,26:iz_int03,18,26:iz_int04,18,26
    start_point_pre: new_1-1,53,111:new_2-1,53,111:new_3-1,53,111:new_4-1,53,111:new_5-1,53,111
    start_point_doram: lasa_fild01,48,297
    
    // Starting items for new characters
    // Max number of items is MAX_STARTITEM in char.cpp (default 32)
    // Format: <id>,<amount>,<position>{:<id>,<amount>,<position>...}
    // To auto-equip an item, include the position where it will be equipped; otherwise, use zero.
    // NOTE: For Doram, this requires client 20151001 or newer.
    start_items: 1201,1,2:2301,1,16
    start_items_doram: 1681,1,2:2301,1,16
    
    // Starting zeny for new characters
    start_zeny: 0
    
    // Size for the fame-lists
    fame_list_alchemist: 10
    fame_list_blacksmith: 10
    fame_list_taekwon: 10
    
    // Guild earned exp modifier.
    // Adjusts taxed exp before adding it to the guild's exp. For example, if set
    // to 200, the guild receives double the player's taxed exp.
    guild_exp_rate: 100
    
    // Name used for unknown characters
    unknown_char_name: Unknown
    
    // To log the character server?
    log_char: yes
    
    // Allow or not identical name for characters but with a different case (upper/lower):
    // example: Test-test-TEST-TesT; Value: 0 not allowed (default), 1 allowed
    name_ignoring_case: no
    
    // Manage possible letters/symbol in the name of charater. Control character (0x00-0x1f) are never accepted. Possible values are:
    // NOTE: Applies to character, party and guild names.
    // 0: no restriction (default)
    // 1: only letters/symbols in 'char_name_letters' option.
    // 2: Letters/symbols in 'char_name_letters' option are forbidden. All others are possibles.
    char_name_option: 1
    
    // Set the letters/symbols that you want use with the 'char_name_option' option.
    // Note: Don't add spaces unless you mean to add 'space' to the list.
    char_name_letters: abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890
    
    // Restrict character deletion by BaseLevel
    // 0: no restriction (players can delete characters of any level)
    // -X: you can't delete chars with BaseLevel <= X
    // Y: you can't delete chars with BaseLevel >= Y
    // e.g. char_del_level: 80 (players can't delete characters with 80+ BaseLevel)
    char_del_level: 0
    
    // Amount of time in seconds by which the character deletion is delayed.
    // Default: 86400 (24 hours)
    // NOTE: Requires client 2010-08-03aragexeRE or newer.
    char_del_delay: 86400
    
    // Restrict character deletion by email address or birthdate.
    // This restricts players from changing the langtype and deleting characters.
    // Defaults based on client date.
    // 1: Email address
    // 2: Birthdate
    // 3: Email address or Birthdate
    // IMPORTANT!
    // - This config only works for clients that send 0x0068 or 0x01fb for delete request.
    // - Use langtype 1 for newer clients (2013+), to use 0x01fb.
    // - Clients that are not using 0x0068 or 0x01fb, only use birthdate (YYMMDD) as default.
    char_del_option: 2
    
    // Restrict character deletion as long as he is still in a party or guild
    // 0: No restriction is applied
    // 1: Character cannot be deleted as long as he remains in a party
    // 2: Character cannot be deleted as long as he remains in a guild
    // 3: Character cannot be deleted as long as he remains in a party or guild(default)
    char_del_restriction: 3
    
    // Restrict certain class from being created. (Only functional on 20151001aRagexe or later)
    // 0: No character creation is allowed
    // 1: Only novice is allowed to be created    (pre-renewal default)
    // 2: Only summoner is allowed to be created
    // 3: Both novice and summoner can be created (renewal default)
    // Uncomment to customize the restriction
    //allowed_job_flag: 3
    
    // Folder that contains the database files.
    db_path: db
    
    //===================================
    // Pincode system
    //===================================
    // NOTE: Requires client 2011-03-09aragexeRE or newer.
    // A window is opened before you can select your character and you will have to enter a pincode by using only your mouse.
    // Default: yes
    pincode_enabled: yes
    
    // How often does a user have to change his pincode?
    // 0: never (default)
    // X: every X days
    pincode_changetime: 0
    
    // How often can a user enter the wrong pincode?
    // Default: 3 (client maximum)
    pincode_maxtry: 3
    
    // Are users forced to use a pincode when the system is enabled?
    // Default: yes
    pincode_force: yes
    
    // Are repeated numbers allowed?
    // Default: no
    pincode_allow_repeated: no
    
    // Are sequential numbers allowed?
    // Default: no
    pincode_allow_sequential: no
    
    //===================================
    // Addon system
    //===================================
    // Character moving
    // NOTE: Requires client 2011-09-28aragexeRE or newer.
    // Allows users to move their characters between slots.
    // Default: yes
    char_move_enabled: yes
    
    // Allow users to move a character to a used slot?
    // If enabled the characters are exchanged.
    // Default: yes
    char_movetoused: yes
    
    // Allow users to move characters as often as they like?
    char_moves_unlimited: no
    
    // Character renaming
    // Allow users to rename a character while being in a party?
    // Default: no
    char_rename_party: no
    
    // Allow users to rename a character while being in a guild?
    // Default: no
    char_rename_guild: no
    
    // Should we check if sql-tables are correct on server startup ?
    char_checkdb: yes
    
    // Default map if character is in not-existing map when loaded.
    default_map: prontera
    default_map_x: 156
    default_map_y: 191
    
    // After how many days should inactive clan members be removed from their clan?
    // 0: never remove them
    // X: remove clan members if they did not log in for X days
    // Default: 14
    clan_remove_inactive_days: 14
    
    //===================================
    // RODEX
    //===================================
    // After how many days should mails be returned to their sender?
    // 0: never return them
    // X: return them after X days
    // Default: 15
    mail_return_days: 15
    
    // How many days after a mail was returned to it's sender should it be deleted completely?
    // 0: never delete them
    // X: delete them X days after they were returned
    // Default: 15
    mail_delete_days: 15
    
    // Does the Retrieve All button ignore unread mail status?
    // no: Only return attachments from read mail
    // yes: Return attachments from all mail
    // Default: yes
    mail_retrieve: yes
    
    // Should mails without any attachments be returned to their sender?
    // Default: yes
    mail_return_empty: yes
    
    import: conf/import/char_conf.txt

     

     

    Map_Athena.conf

    //--------------------------------------------------------------
    //rAthena Map-Server Configuration File
    //--------------------------------------------------------------
    
    // Note: "Comments" are all text on the right side of a double slash "//"
    // Whatever text is commented will not be parsed by the servers, and serves
    // only as information/reference.
    
    //--------------------------------------------------------------
    //                     Configuration Info
    //--------------------------------------------------------------
    // Interserver communication passwords, set in account.txt (or equiv.)
    userid: ragnarok
    passwd: ragnarok
    
    // Character Server IP
    // The map server connects to the character server using this IP address.
    // NOTE: This is useful when you are running behind a firewall or are on
    // a machine with multiple interfaces.
    char_ip: 127.0.0.1
    
    // The map server listens on the interface with this IP address.
    // NOTE: This allows you to run multiple servers on multiple interfaces
    // while using the same ports for each server.
    //bind_ip: 127.0.0.1
    
    // Character Server Port
    char_port: 6121
    
    // Map Server IP
    // The IP address which clients will use to connect.
    // Set this to what your server's public IP address is.
    map_ip: 127.0.0.1
    
    // Map Server Port
    map_port: 5121
    
    //Time-stamp format which will be printed before all messages.
    //Can at most be 20 characters long.
    //Common formats:
    // %I:%M:%S %p (hour:minute:second 12 hour, AM/PM format)
    // %H:%M:%S (hour:minute:second, 24 hour format)
    // %d/%b/%Y (day/Month/year)
    //For full format information, consult the strftime() manual.
    //timestamp_format: [%d/%b %H:%M]
    
    //If redirected output contains escape sequences (color codes)
    stdout_with_ansisequence: no
    
    //Makes server log selected message types to a file in the /log/ folder
    //1: Log Warning Messages
    //2: Log Error and SQL Error messages.
    //4: Log Debug Messages
    //Example: "console_msg_log: 7" logs all 3 kinds
    //Messages logged by this overrides console_silent setting
    console_msg_log: 0
    
    // File path to store the console messages above
    console_log_filepath: ./log/map-msg_log.log
    
    //Makes server output more silent by omitting certain types of messages:
    //1: Hide Information messages
    //2: Hide Status messages
    //4: Hide Notice Messages
    //8: Hide Warning Messages
    //16: Hide Error and SQL Error messages.
    //32: Hide Debug Messages
    //Example: "console_silent: 7" Hides information, status and notice messages (1+2+4)
    console_silent: 0
    
    //Where should all database data be read from?
    db_path: db
    
    // Enable the @guildspy and @partyspy at commands?
    // Note that enabling them decreases packet sending performance.
    enable_spy: no
    
    // Read map data from GATs and RSWs in GRF files or a data directory
    // as referenced by grf-files.txt rather than from the mapcache?
    use_grf: no
    
    // Console Commands
    // Allow for console commands to be used on/off
    // This prevents usage of >& log.file
    console: off
    
    // Database autosave time
    // All characters are saved on this time in seconds (example:
    // autosave of 60 secs with 60 characters online -> one char is saved every 
    // second)
    autosave_time: 300
    
    // Min database save intervals (in ms)
    // Prevent saving characters faster than at this rate (prevents char-server 
    // save-load getting too high as character-count increases)
    minsave_time: 100
    
    // Apart from the autosave_time, players will also get saved when involved
    // in the following (add as needed):
    // 1: after every successful trade
    // 2: after opening vending/every vending transaction
    // 4: after closing storage/guild storage.
    // 8: After hatching/returning to egg a pet.
    // 16: After successfully sending a mail with attachment
    // 32: After successfully submitting an item for auction
    // 64: After successfully get/delete/complete a quest
    // 128: After every bank transaction (deposit/withdraw)
    // 256: After every attendance reward
    // 4095: Always
    // NOTE: These settings decrease the chance of dupes/lost items when there's a
    // server crash at the expense of increasing the map/char server lag. If your 
    // server rarely crashes, but experiences interserver lag, you may want to set
    // these off.
    save_settings: 4095
    
    // Message of the day file, when a character logs on, this message is displayed.
    motd_txt: conf/motd.txt
    
    // When @help or @h is typed when you are a gm, this is displayed for helping new gms understand gm commands.
    charhelp_txt: conf/charhelp.txt
    
    // Load channel config from
    channel_conf: conf/channels.conf
    
    // Maps:
    import: conf/maps_athena.conf
    
    import: conf/import/map_conf.txt

     

    Inter Athena.conf

    // Athena InterServer configuration.
    // Contains settings shared/used by more than 1 server.
    
    // Options for both versions
    
    // Log Inter Connections, etc.?
    log_inter: 1
    
    // Inter Log Filename
    inter_log_filename: log/inter.log
    
    // Level range for sharing within a party
    party_share_level: 15
    
    // Amount of status points a new character will start with
    start_status_points: 48
    
    // You can specify the codepage to use in your MySQL tables here.
    // (Note that this feature requires MySQL 4.1+)
    //default_codepage:
    
    // For IPs, ideally under linux, you want to use localhost instead of 127.0.0.1
    // Under windows, you want to use 127.0.0.1.  If you see a message like
    // "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"
    // and you have localhost, switch it to 127.0.0.1
    
    // Global SQL settings
    // overridden by local settings when the hostname is defined there
    // (currently only the login-server reads/obeys these settings)
    
    // MySQL Login server
    login_server_ip: 127.0.0.1
    login_server_port: 3306
    login_server_id: ragnarok
    login_server_pw: ragnarok
    login_server_db: ragnarok
    login_codepage:
    login_case_sensitive: no
    
    ipban_db_ip: 127.0.0.1
    ipban_db_port: 3306
    ipban_db_id: ragnarok
    ipban_db_pw: ragnarok
    ipban_db_db: ragnarok
    ipban_codepage:
    
    // MySQL Character server
    char_server_ip: 127.0.0.1
    char_server_port: 3306
    char_server_id: ragnarok
    char_server_pw: ragnarok
    char_server_db: ragnarok
    
    // MySQL Map Server
    map_server_ip: 127.0.0.1
    map_server_port: 3306
    map_server_id: ragnarok
    map_server_pw: ragnarok
    map_server_db: ragnarok
    
    // MySQL Log Database
    log_db_ip: 127.0.0.1
    log_db_port: 3306
    log_db_id: ragnarok
    log_db_pw: ragnarok
    log_db_db: ragnarok
    log_codepage:
    log_login_db: loginlog
    
    // MySQL Reconnect Settings
    // - mysql_reconnect_type:
    //   1: When MySQL disconnects during runtime, the server tries to reconnect
    //      mysql_reconnect_count times and shuts down if unsuccessful.
    //   2: When mysql disconnects during runtime, it tries to reconnect indefinitely.
    mysql_reconnect_type: 2
    mysql_reconnect_count: 1
    
    // DO NOT CHANGE ANYTHING BEYOND THIS LINE UNLESS YOU KNOW YOUR DATABASE DAMN WELL
    // this is meant for people who KNOW their stuff, and for some reason want to change their
    // database layout. [CLOWNISIUS]
    
    // ALL MySQL Database Table names
    
    // Login Database Tables
    login_server_account_db: login
    ipban_table: ipbanlist
    global_acc_reg_num_table: global_acc_reg_num
    global_acc_reg_str_table: global_acc_reg_str
    
    // Char Database Tables
    char_db: char
    hotkey_db: hotkey
    scdata_db: sc_data
    cart_db: cart_inventory
    inventory_db: inventory
    charlog_db: charlog
    skill_db: skill
    interlog_db: interlog
    memo_db: memo
    guild_db: guild
    guild_alliance_db: guild_alliance
    guild_castle_db: guild_castle
    guild_expulsion_db: guild_expulsion
    guild_member_db: guild_member
    guild_skill_db: guild_skill
    guild_position_db: guild_position
    guild_storage_db: guild_storage
    party_db: party
    pet_db: pet
    friend_db: friends
    mail_db: mail
    mail_attachment_db: mail_attachments
    auction_db: auction
    quest_db: quest
    homunculus_db: homunculus
    skill_homunculus_db: skill_homunculus
    mercenary_db: mercenary
    mercenary_owner_db: mercenary_owner
    elemental_db: elemental
    skillcooldown_db: skillcooldown
    bonus_script_db: bonus_script
    acc_reg_num_table: acc_reg_num
    acc_reg_str_table: acc_reg_str
    char_reg_str_table: char_reg_str
    char_reg_num_table: char_reg_num
    clan_table: clan
    clan_alliance_table: clan_alliance
    
    // Map Database Tables
    barter_table: barter
    buyingstore_table: buyingstores
    buyingstore_items_table: buyingstore_items
    item_table: item_db
    renewal-item_table: item_db_re
    item2_table: item_db2
    renewal-item2_table: item_db2_re
    item_cash_table: item_cash_db
    item_cash2_table: item_cash_db2
    mob_table: mob_db
    renewal-mob_table: mob_db_re
    mob2_table: mob_db2
    renewal-mob2_table: mob_db2_re
    mob_skill_table: mob_skill_db
    renewal-mob_skill_table: mob_skill_db_re
    mob_skill2_table: mob_skill_db2
    renewal-mob_skill2_table: mob_skill_db2_re
    mapreg_table: mapreg
    sales_table: sales
    vending_table: vendings
    vending_items_table: vending_items
    market_table: market
    roulette_table: db_roulette
    guild_storage_log: guild_storage_log
    
    // Use SQL item_db, mob_db and mob_skill_db for the map server? (yes/no)
    use_sql_db: no
    
    inter_server_conf: inter_server.yml
    
    import: conf/import/inter_conf.txt

     

    Login table

    image.thumb.png.a1c8be032a730472167ca30f71cb157c.png

     

    Mysql Login details:

    username: ragnarok
    passwd: ragnarok
    port: 3306
    image.png.7ea70fc505bbc62eed95bcd1a1858975.png

    Thank you so much! ❤️

  14. On 2/12/2022 at 4:08 PM, KazumaSatou said:

    I think FluxCP didn't allow players to attach files for security purposes. That's why they use the "Screenshot Proof" textbox link. But you can add it yourself just check for some answers at stackoverflow.

    Thank you for you reply. 

    Do you know what file or php page where I can edit this page?. thank you

  15. Update ->
    Delete all except login table
     

    TRUNCATE TABLE `auction`;
    TRUNCATE TABLE `cart_inventory`;
    TRUNCATE TABLE `charlog`;
    TRUNCATE TABLE `char`;
    TRUNCATE TABLE `elemental`;
    TRUNCATE TABLE `friends`;
    TRUNCATE TABLE `acc_reg_num`;
    TRUNCATE TABLE `acc_reg_str`;
    TRUNCATE TABLE `guild_alliance`;
    TRUNCATE TABLE `guild_castle`;
    TRUNCATE TABLE `guild_expulsion`;
    TRUNCATE TABLE `guild_member`;
    TRUNCATE TABLE `guild_position`;
    TRUNCATE TABLE `guild_skill`;
    TRUNCATE TABLE `guild_storage`;
    TRUNCATE TABLE `guild`;
    TRUNCATE TABLE `homunculus`;
    TRUNCATE TABLE `hotkey`;
    TRUNCATE TABLE `interlog`;
    TRUNCATE TABLE `inventory`;
    TRUNCATE TABLE `ipbanlist`;
    TRUNCATE TABLE `mail`;
    TRUNCATE TABLE `mapreg`;
    TRUNCATE TABLE `memo`;
    TRUNCATE TABLE `mercenary_owner`;
    TRUNCATE TABLE `mercenary`;
    TRUNCATE TABLE `party`;
    TRUNCATE TABLE `pet`;
    TRUNCATE TABLE `quest`;
    TRUNCATE TABLE `sc_data`;
    TRUNCATE TABLE `skill_homunculus`;
    TRUNCATE TABLE `skill`;
    TRUNCATE TABLE `storage`;
    TRUNCATE TABLE `mail`;
    TRUNCATE TABLE `mail_attachments`;

     

  16. Hello! ?
     

    Can someone help me to edit this script?

    What I want is If player get killed on the pvp map, he will loose 100,000z, and the player who killed will got 100,000z and white potion.

    but if the player who got died doesn't have a Zeny the killer will also not get any Zeny and a potion.

     

    -	script	PVPPOINTS	-1,{
    
    OnPCKillEvent:
    getmapxy.@map$,.@x,.@y,0;
    if(getcharid(3) == killedrid) end;
    if(.@map$ != "pvp_y_1-2") end;
    
    set .@player1, getcharid(3);
    set .@player2, killedrid;
    
    attachrid(.@player2);
    set .@player2points, #CASHPOINTS;
    if(.@player2points) {
     set #CASHPOINTS, #CASHPOINTS - 1;
     dispbottom "You Lost 1 Cash Point from "+rid2name(killerrid);
    }
     emotion e_sob,1;
    
    attachrid(.@player1);
    if(.@player2points) {
     set #CASHPOINTS, #CASHPOINTS + 1;
     dispbottom "You Gained 1 Cash Points from "+rid2name(killedrid);
    }
    else
     dispbottom "Sorry no cash points on the "+rid2name(killedrid);
     emotion e_meh,1;
    end;
    } 

     

×
×
  • Create New...