Jump to content

Vettra

Members
  • Posts

    34
  • Joined

  • Last visited

Posts posted by Vettra

  1. Help pls

    code:
     

    int channel_send(struct Channel *channel, struct map_session_data *sd, const char *msg) {
        int idx = 0;
        
        if(!channel || !sd || !msg || (idx = channel_pc_haschan(sd, channel)) < 0)
            return -1;
        
        
        if(DIFF_TICK(sd->channel_tick[idx] + channel->msg_delay, gettick()) > 0) {
            char cdmessage[CHAT_SIZE_MAX];
            
            int cdseconds = DIFF_TICK(sd->channel_tick[idx] + channel->msg_delay, gettick()) / 1000;
            int cdmilliseconds = (DIFF_TICK(sd->channel_tick[idx] + channel->msg_delay, gettick()) - (cdseconds * 1000))/100;
          
            //clif_messagecolor(&sd->bl,color_table[COLOR_RED],msg_txt(sd,1455),false,SELF); //You're talking too fast!
            safesnprintf(cdmessage, sizeof(cdmessage), "You still have %d.%d second(s) left before you can use the channel again.", cdseconds, cdmilliseconds);
            clif_displaymessage(sd->fd, cdmessage);
            return -2;
        }
        else {
            char output[CHAT_SIZE_MAX];
            unsigned long color = channel->color;
            if((channel->opt&CHAN_OPT_COLOR_OVERRIDE) && sd->fontcolor && sd->fontcolor < channel_config.colors_count && channel_config.colors[sd->fontcolor])
                color = channel_config.colors[sd->fontcolor];
            safesnprintf(output, CHAT_SIZE_MAX, "%s %s : %s", channel->alias, sd->status.name, msg);
            clif_channel_msg(channel,output,color);
            sd->channel_tick[idx] = gettick();
        }
        return 0;
    }

     

    screenOrion Online107.jpg

  2. Hello, I would like to know how to make a dialog run automatically when I drop a certain item.

    Ex: I killed a poring and dropped the card of the same, how do I for a dialogue when this happens?

  3. Hello everyone, someone has managed to create a simple register, using this form below?

      <form action="/">
          <hr>
    
    <center>
        <input type="text" name="name" id="name" placeholder="E-mail" required>
    
        <input type="text" name="name" id="name" placeholder="Usuário" required>
    
        <input type="password" name="name" id="name" placeholder="Senha" required>
        <input style="margin-bottom:25px;" type="password" name="name" id="name" placeholder="Confirmar Senha" required><br/>
        <font size="1">*Você está concordando com os <a href="#">termos</a> ao se registrar.</font><br/>
         <a href="#" class="button" type="submit"class="button">REGISTRAR USUÁRIO</a>
        </center>
       <br/><br/><br/><br/>
       
      </form>
  4. On 02/01/2018 at 12:02 PM, ifeelingz said:

    ./configure --enable-64bit --enable-packetver=20170517 && make clean && make server

    and

    ./athena-start start

    I can login to select the character and it's gone. Map can not be accessed.

    Main Client : kRO Full Client - 2017-10-09 - Includes BGM & RSU

    image.png.23d18850bbff0cb1b2ade156c581ee0c.png

    image.thumb.png.e4debc5049c24f9d4e4ce480f350f371.png

    image.thumb.png.4199e3e4ccebb4b9b0f932dd4c11ba50.png

    # clientinfo.xml

    
    <?xml version="1.0" encoding="euc-kr" ?>
    <clientinfo>
    	<desc>Ragnarok Client Information</desc>
    	<servicetype>korea</servicetype>
    	<servertype>primary</servertype>
    	<connection>
    		<display>Local</display>
          		<address>103.212.183.xxx</address>
          		<port>5020</port>
          		<version>56</version>
          		<langtype>5</langtype>
    		<registrationweb>www.ragnarok.com</registrationweb>
    		<loading>
    			<image>loading00.jpg</image>
    			<image>loading01.jpg</image>
    			<image>loading02.jpg</image>
    			<image>loading03.jpg</image>
    			<image>loading04.jpg</image>
    		</loading>
       	</connection>
    </clientinfo>

    # conf/import
    - map_conf.txt
     


    - login_conf.txt


    - char_conf.txt

    Thank you very much.

    Same problem, but map and char configurated corretly

  5. @Cyro

    I update GCC5, new erro, help pls

    make[1]: Entering directory `/home/emulador/src/login'
            MKDIR   obj
            CC      account.c
            CC      ipban.c
            CXX     login.cpp
            CC      loginchrif.c
            CC      loginclif.c
            CC      logincnslif.c
            CC      loginlog.c
            LD      login-server
    /usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
    /usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
    /usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    obj/login.o: In function `do_shutdown()':
    login.cpp:(.text+0x84): undefined reference to `do_shutdown_loginchrif()'
    obj/login.o: In function `login_config_read(char const*, bool)':
    login.cpp:(.text+0x10e6): undefined reference to `ipban_config_read(char const*, char const*)'
    login.cpp:(.text+0x10f8): undefined reference to `loginlog_config_read(char const*, char const*)'
    obj/login.o: In function `do_final':
    login.cpp:(.text+0x1752): undefined reference to `login_log(unsigned int, char const*, int, char const*)'
    login.cpp:(.text+0x177f): undefined reference to `ipban_final()'
    login.cpp:(.text+0x1784): undefined reference to `do_final_loginclif()'
    login.cpp:(.text+0x1789): undefined reference to `do_final_logincnslif()'
    login.cpp:(.text+0x17c6): undefined reference to `do_final_loginchrif()'
    login.cpp:(.text+0x1801): undefined reference to `loginlog_final()'
    obj/login.o: In function `do_init':
    login.cpp:(.text+0x185a): undefined reference to `account_db_sql()'
    login.cpp:(.text+0x1870): undefined reference to `logcnslif_get_options(int, char**)'
    login.cpp:(.text+0x18a7): undefined reference to `do_init_loginclif()'
    login.cpp:(.text+0x18ac): undefined reference to `do_init_loginchrif()'
    login.cpp:(.text+0x18be): undefined reference to `ipban_init()'
    login.cpp:(.text+0x191d): undefined reference to `logclif_parse(int)'
    login.cpp:(.text+0x19b5): undefined reference to `do_init_logincnslif()'
    login.cpp:(.text+0x19de): undefined reference to `login_log(unsigned int, char const*, int, char const*)'
    login.cpp:(.text+0x19f1): undefined reference to `loginlog_init()'
    obj/login.o: In function `parse_console':
    login.cpp:(.text+0xb1): undefined reference to `cnslif_parse(char const*)'
    obj/loginchrif.o: In function `logchrif_parse_reqchangemail.part.0':
    loginchrif.c:(.text+0x1b): undefined reference to `login_get_accounts_db'
    obj/loginchrif.o: In function `logchrif_send_accdata':
    loginchrif.c:(.text+0x757): undefined reference to `login_get_accounts_db'
    obj/loginchrif.o: In function `logchrif_parse_requpdaccstate':
    loginchrif.c:(.text+0xb2f): undefined reference to `login_get_accounts_db'
    obj/loginchrif.o: In function `logchrif_parse_reqbanacc':
    loginchrif.c:(.text+0xc61): undefined reference to `login_get_accounts_db'
    obj/loginchrif.o: In function `logchrif_parse_reqchgsex':
    loginchrif.c:(.text+0xe5a): undefined reference to `login_get_accounts_db'
    obj/loginchrif.o:loginchrif.c:(.text+0x1029): more undefined references to `login_get_accounts_db' follow
    obj/loginchrif.o: In function `logchrif_parse_setacconline':
    loginchrif.c:(.text+0x1209): undefined reference to `login_add_online_user'
    obj/loginchrif.o: In function `logchrif_parse_setaccoffline':
    loginchrif.c:(.text+0x1254): undefined reference to `login_remove_online_user'
    obj/loginchrif.o: In function `logchrif_parse_updonlinedb':
    loginchrif.c:(.text+0x12cf): undefined reference to `login_online_db_setoffline'
    loginchrif.c:(.text+0x132e): undefined reference to `login_create_online_user'
    loginchrif.c:(.text+0x1358): undefined reference to `login_waiting_disconnect_timer'
    obj/loginchrif.o: In function `logchrif_parse_req_global_accreg':
    loginchrif.c:(.text+0x13eb): undefined reference to `login_get_accounts_db'
    obj/loginchrif.o: In function `logchrif_parse_setalloffline':
    loginchrif.c:(.text+0x14e0): undefined reference to `login_online_db_setoffline'
    obj/loginchrif.o: In function `logchrif_parse_updpincode':
    loginchrif.c:(.text+0x1553): undefined reference to `login_get_accounts_db'
    obj/loginchrif.o: In function `logchrif_parse_pincode_authfail':
    loginchrif.c:(.text+0x1633): undefined reference to `login_get_accounts_db'
    loginchrif.c:(.text+0x16b1): undefined reference to `login_remove_online_user'
    obj/loginchrif.o: In function `logchrif_parse_accinfo':
    loginchrif.c:(.text+0x175e): undefined reference to `login_get_accounts_db'
    obj/loginchrif.o: In function `logchrif_server_reset':
    loginchrif.c:(.text+0x1ba0): undefined reference to `login_online_db_setoffline'
    obj/loginclif.o: In function `logclif_auth_failed':
    loginclif.c:(.text+0xe1): undefined reference to `login_msg_txt'
    loginclif.c:(.text+0x183): undefined reference to `login_msg_txt'
    loginclif.c:(.text+0x201): undefined reference to `login_get_accounts_db'
    obj/loginclif.o: In function `logclif_parse_reqcharconnec':
    loginclif.c:(.text+0x428): undefined reference to `login_mmo_auth'
    obj/loginclif.o: In function `logclif_parse':
    loginclif.c:(.text+0xad9): undefined reference to `login_mmo_auth'
    loginclif.c:(.text+0x111d): undefined reference to `lan_subnetcheck'
    loginclif.c:(.text+0x12ab): undefined reference to `login_add_online_user'
    loginclif.c:(.text+0x12c3): undefined reference to `login_waiting_disconnect_timer'
    loginclif.c:(.text+0x134e): undefined reference to `login_waiting_disconnect_timer'
    loginclif.c:(.text+0x139a): undefined reference to `login_remove_online_user'
    obj/logincnslif.o: In function `cnslif_parse':
    logincnslif.c:(.text+0x46d): undefined reference to `login_config_read'
    logincnslif.c:(.text+0x513): undefined reference to `login_mmo_auth_new'
    collect2: error: ld returned 1 exit status
    make[1]: *** [login-server] Error 1
    make[1]: Leaving directory `/home/emulador/src/login'
    make: *** [login] Error 2

     

  6. Hello, I dont no how i fixed it, help pls.

    Cent Os 6

    gcc-c++-4.4.7-18.el6.x86_64 already installed

     

     

    error:

    [root@vps emulador]# ./configure && make clean && make server
    checking for g++... g++
    checking whether the C++ compiler works... yes
    checking for C++ compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking how to run the C++ preprocessor... g++ -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether we are using the GNU C++ compiler... (cached) yes
    checking whether g++ accepts -g... (cached) yes
    checking for ar... /usr/bin/ar
    checking whether byte ordering is bigendian... yes
    configure: error: bigendian is not supported... stopping


     

  7. Hey guys, I need the modification in this event for every 2 hours!

     

    code:

    Spoiler
    
    -	script	Bombring	-1,{
    OnInit:
    	set .eventstarted, 0;
    	set $bombring_reward,100;
    	bindatcmd "enablebombring","Bombring::OnGMStart";
    	bindatcmd "disablebombring","Bombring::OnGMStop";
    	hideonnpc "The Baaam#qz";
    	hideonnpc "Evento BombRing#prt";
    	end;
    	
    OnGMStart:
    	if (getgroupid() < 99){
    		dispbottom "You are not eligible for this command.", RED;
    		end;
    	}
    	set .eventstarted, 0;
    OnEventStart:
    	initnpctimer;
    	hideoffnpc "Evento BombRing#prt";
    	set .x, 5;
    OnTimer0000:
    	if (.eventstarted == 1) 
    		end;
    	announce "[BombRing]: O evento BombRing começou, vá em prontera para entrar!",bc_all;
    	sleep2 5000;
    	announce "[BombRing]: "+.x+" minutos para começar!",bc_all;
    	set .x, .x - 1;
    	end;
    OnTimer60000:
    OnTimer120000:
    OnTimer180000:
    OnTimer240000:
    	if (.eventstarted == 1) 
    		end;
    	announce "[BombRing]: "+.x+" minutos para o evento começar!",bc_all;
    	set .x, .x - 1;
    	end;
    OnTimer290000:
    	if (.eventstarted == 1) 
    		end;
    	announce "[BombRing]: 10 segundos para começar!",bc_all;
    	end;
    OnTimer300000:
    	if (.eventstarted == 1) 
    		end;
    	set .totalplayers, getmapusers ("quiz_02");
    	announce "[The Baaam]: "+.totalplayers+" jogadores entraram no evento!",bc_all;
    	announce "[The Baaam]: O evento começou!!",bc_all;
    	hideonnpc "The Baaam#prt";
    	stopnpctimer;
    	callsub OnEventStart1;
    	end;
    	
    OnEventStart1:
    	set .totalplayers, getmapusers ("quiz_02");
    	mapannounce "quiz_02","[BombRing]: Ok, escutem, é assim que funciona.",bc_all;
    	sleep 2000;
    	mapannounce "quiz_02","[BombRing]: Bombrings correrão desenfreados nesta área.",bc_all;
    	sleep 2000;
    	mapannounce "quiz_02","[BombRing]: e todos eles vão...BOOOOOOM!",bc_all;
    	sleep 2000;
    	mapannounce "quiz_02","[BombRing]: tudo o que você tem que fazer é ficar vivo :P",bc_all;
    	sleep 2000;
    	mapannounce "quiz_02","[BombRing]: Isso acontecerá por 30 segundos, em um total de 5 rounds.",bc_all;
    	sleep 2000;
    	mapannounce "quiz_02","[BombRing]: Entãoooo, prontos ou não ai vem eles!!!", bc_all;
    	
    	for (set .round,1;.round <= 5;set .round, .round + 1) {
    		set .totalplayers, getmapusers ("quiz_02");
    		callsub OnBombringSummon;
    		sleep 10000;
    	}
    
    	if (.round > 5 && getmapusers("quiz_02") > 0){
    		hideoffnpc "The Baaam#qz";
    		mapannounce "quiz_02","[BombRing]: Wooooow! Isso é raro! jogadores ganharam! :D",bc_all;
    	}
    	end;
    		
    OnBombringSummon:
    	mapannounce "quiz_02","[BombRing]: Round "+.round+"!!",bc_all;
    	set .eventstarted, 1;
    	initnpctimer;
    	while (.eventstarted == 1) {
    		if ( (3 * .totalplayers) <= 60)
    			areamonster "quiz_02",48,334,71,357,"Corra por sua vida!",1904,3 * .totalplayers;
    		else
    			areamonster "quiz_02",48,334,71,357,"Corra por sua vida!",1904,60;
    		
    		if(.round == 1) {
    			sleep 4000;
    		} else if (.round == 2) {
    			sleep 3000;
    		} else if (.round == 3) {
    			sleep 2000;
    		} else if (.round == 4) {
    			sleep 1500;
    		} else if (.round == 5) {
    			sleep 1000;
    		}
    	}
    	if (.eventstarted == 1)
    		mapannounce "quiz_02","[BombRing]: Round "+.round+" acabou!!",bc_all;
    	if (.round < 5)
    		mapannounce "quiz_02","[BombRing]: proximo round em 10 segundos.",bc_all;
    	return;
    	
    OnTimer31000:
    	if (.eventstarted == 0)
    		end;
    	else
    		set .eventstarted, 0;
    		killmonsterall "quiz_02";
    		cleanmap "quiz_02";
    	stopnpctimer;
    	end;
    	
    OnPCDieEvent:
    	if (strcharinfo(3) == "quiz_02") {
    		mapannounce "quiz_02","[BombRing]: "+strcharinfo(0)+" foi explodido!!",bc_all;
    		dispbottom "Você recebeu 1x [Ticket de Recompensa] por participar do evento.";
    		getitem 100,1;
    		warp "savepoint",0,0;
    		if (getmapusers("quiz_02") <= 1) {
    			stopnpctimer;
    			set .eventstarted, 0;
    			set .round, 6;
    			killmonsterall "quiz_02";
    			cleanmap "quiz_02";
    			hideoffnpc "The Baaam#qz";
    			mapannounce "quiz_02","[The Baaam]: Temos um vencedor!!",bc_all;
    		} 	
    	}
    	end;
    	
    OnGMStop:
    	set .eventstarted, 0;
    	set .round, 6;
    	killmonsterall "quiz_02";
    	cleanmap "quiz_02";
    	hideoffnpc "The Baaam#qz";	
    	end;
    }
    
    quiz_02,59,345,5	script	The Baaam#qz	1904,{
    mes "[^666699"+strnpcinfo(1)+"^000000]";
    mes "Mandou bem! Você é muito bom nisso!";
    next;
    
    mes "[^666699"+strnpcinfo(1)+"^000000]";
    mes "Você recebeu ^ff990010x [<ITEM>Moedas de Ouro<INFO>671</INFO></ITEM>]^000000 e ^ff99005x [<ITEM>Ticket's de Recompensa<INFO>100</INFO></ITEM>]^000000";
    getitem 671,10;
    getitem $bombring_reward,5;
    next;
    mes "[^666699"+strnpcinfo(1)+"^000000]";
    mes "Agora saia antes que você acabe explodindo!";
    next;
    atcommand "@go 0";
    end;
    }
    
    prontera,142,167,5	script	Evento BombRing#prt	879,{
    mes "[^666699The Baaam^000000]";
    mes "Olá!! gostaria de participar do evento Bombring?";
    Switch(Select("Sim!:Que evento é esse?:Não...")) {
    	case 1:
    		mes "[^666699The Baaam^000000]";
    		mes "Muito bem! esteja pronto!";
    		next;
    		warp "quiz_02",59,345;	
    		break;
    	case 2:
    		mes "[^666699The Baaam^000000]";
    		mes "Bem, tudo o que você tem que fazer é ficar vivo...";
    		mes "Isto é, esquivando das explosões dos ^00FF00Bombrings^000000!";
    		next;
    		mes "[^666699The Baaam^000000]";
    		mes "Se você ganhar:";
    		mes "^ff990010x [<ITEM>Moedas de Ouro<INFO>671</INFO></ITEM>]^000000";
    		mes "^ff99005x [<ITEM>Ticket's de Recompensa<INFO>100</INFO></ITEM>]^000000";
    		close;
    		break;
    	case 3:
    		mes "[^666699The Baaam^000000]";
    		mes "Tudo bem, volte se mudar de idéia!";
    		close;
    		break;
    	}
    end;
    
    OnInit:
    	hideonnpc "Evento BombRing#prt";
    }

     

     

×
×
  • Create New...