Jump to content

Innos

Members
  • Posts

    62
  • Joined

  • Last visited

Posts posted by Innos

  1. Hi,

    bei mir gibt es für Spieler kein @go. Jedoch würde ich gerne 1 Town mit @go 0 zB freigeben ohne das die anderen Towns mit @go möglich sind.

    Gibt es da einen einfachen weg? Oder muss ich alle Towns aus der Source raus nehmen und nur die eine drin lassen?

  2. //=============================================================//
    // Daily Card for Online User	                               //
    //==== Copyright ==============================================//
    // Innos '2017 for www.ex-RO.de                                //
    //==== Version ================================================//
    // V.1.0 - Testversion										   //
    //==== Infos ==================================================//
    // Special daily Event for Daily Card from 12a.m. to 10p.m.    //
    //=============================================================//
    
    -	script	Daily Card	-1,{
    
    Onclock1125:
    Onclock1130:
    Onclock1135:
    Onclock1140:
    .onlineusers = getusers(1);
    announce "[Day Card] : "+.onlineusers+" Player online!",bc_all,0xFF6060;
    if(.onlineusers < 5) {	announce "[Day Card] : Zu wenig Spieler Online für eine Auslosung!",bc_all,0xFF6060; }
    if(.onlineusers > 5) {
    	announce "[Day Card] : Es wird eine Zahl von 1 bis 9 gewürfelt, liegt sie unter "+.onlineusers+" kommt es zur Auslosung!",bc_all,0xFF6060;
    	set .dailynumber,rand (1,9);
    	announce "[Day Card] : Die Zahl ist: "+.dailynumber+"!",bc_all,0xFF6060;
    	
    	if (.dailynumber < .onlineusers) {
    	announce "Karte wird ausgespielt!",bc_all,0x81BEF7; 
    
                    query_sql "SELECT `account_id` FROM `char` WHERE `online` = '1' ORDER BY `account_id` ASC",.@aid;
                    if(!.@aid){ end; }
    
    				for(set .@i,0; .@i < getarraysize(.@aid); set .@i,.@i+1)
                    {
                            set .@total,.@i;
                    }
    				
                    set .rand3,rand(.@total);
    				
                    for(set .@i,0; .@i < getarraysize(.@aid); set .@i,.@i+1)
                    {
                            if (attachrid(.@aid[.rand3])) {
                                    getitem 501,1;
                            }
                    }
                    
    				//why the users get the item value from usersonline count? they should only get one item -.-
                    announce "TEST TEST TEST KEIN GEWINN//Der Gewinner der Day Card "+.@daycard$+" ist "+rid2name(.@aid[.rand3])+"! Gratulation!",bc_all;
    //				query_sql ("INSERT INTO `daily_card` (time_created,nameid,item_name,account_id,char_name) VALUES (NOW(), '"+.items+"', '"+.@daycard$+"', '"+.rand3+"', '"+rid2name(.@aid[.rand3])+"')");
    				end;
    	}else{
    	announce "Karte wird leider nicht ausgespielt!",bc_all,0x81BEF7; end;
    	}
    }
    
    //OnInit:
            
    //				if (gettime(4)==0){ set .items,501; set .@daycard$, "Sonntag"; }
    //				if (gettime(4)==1){ set .items,501; set .@daycard$, "Montag"; }
    //				if (gettime(4)==2){ set .items,501; set .@daycard$, "Dienstag"; }
    //				if (gettime(4)==3){ set .items,501; set .@daycard$, "Mittwoch"; }
    //				if (gettime(4)==4){ set .items,501; set .@daycard$, "Donnerstag"; }
    //				if (gettime(4)==5){ set .items,501; set .@daycard$, "Freitag"; }
    //				if (gettime(4)==6){ set .items,501; set .@daycard$, "Samstag"; }
    //		end;
    }
    
    //SQL for Log
    /*
    DROP TABLE IF EXISTS `daily_card`;
    CREATE TABLE IF NOT EXISTS `daily_card` (
      `time_created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
      `nameid` INT(11) UNSIGNED NOT NULL DEFAULT '0',
      `item_name` VARCHAR(45) NOT NULL DEFAULT '',
      `account_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',
      `char_name` VARCHAR(45) NOT NULL DEFAULT '',
      PRIMARY KEY (`time_created`)
    ) ENGINE=MYISAM;
    
    query_sql ("INSERT INTO `daily_card` (time_created,nameid,item_name,account_id,char_name) VALUES ('NOW(), "+.@reward+", '"+@daycard$+"', '0', '0')");
    
    */
    
    //===============================================================================

     

    I have a problem with my script. The Online User who wins becomes more than 1 Item. Why?  I want that the User become only 1. In this Test it's a Red Potion. The Winner becomes so many Red Potion are Users Online. If 10 Users online he becomes 10.

    This Script should a simple Roulette. At a Full Hour he dice, if the Dice under the Online Count a random Online User becomes a Item. Very Simple. But it don't work correctly.

     

    What's my failure?

     

    ignore the SQL entry's, this only log for later.

  3. OK i have changed back to

    #ifndef PACKETVER
    	#define PACKETVER 20170517
    #endif
    
    #ifndef PACKETVER_RE
    	/// From this point on only kRO RE clients are supported
    	#if PACKETVER > 20151104
    		#define PACKETVER_RE
    	#endif
    #endif

    ========== Alles neu erstellen: 9 erfolgreich, 0 fehlerhaft, 0 übersprungen ==========

     

    but the red marked entry with no declaration are the same.

     

    The exe works, but i mean its not really right what im doing.

  4. 'MissingEmblemBMP'			=> 'empty.bmp',
    'ForceEmptyEmblem'			=> false,
    'EmblemCacheInterval'		=> 0,
    'SessionCookieExpire'		=> 48,
    'GzipCompressOutput'		=> false,
    'GzipCompressionLevel'		=> 9,
    'OutputCleanHTML'			=> true,
    'UseCleanUrls'				=> false,
    'DebugMode'					=> false,
    'UseCaptcha'				=> false, // temporary disabled 
    'EnableReCaptcha'			=> false,
    'DisplaySinglePages'		=> true,

    There's the config from application.php

    OutputcleanHTML i have set to true.

     

    @BTNX No, i hope it's only a bad configured Flux or wrong Permission. The Problem comes befor i upgrade my ph version. But a reinstall from php-gd i can try in few days.

    I used Flux and Pictures works fine on php 5.6

    -> I change the path from flux. from de folder to main folder http

        'ServerAddress'                => 'mydomain.de',                // This value is the hostname:port under which Flux runs. (e.g., example.com or example.com:80)
        'BaseURI'                    => '/de',   to   'BaseURI'                    => '',

    I set the permission for the folder. Have update the flux with turtoise from github. After this all i see see the page runs good, only the emblem and captcha images don't show.

    2 days later i upgrade my PHP from 5 to 7.

    All works fine, little bit faster, only the problem with the emblems remained. So i mean, the problem started before upgrade the php. only the changes from the path and update from fluxcp was in the time.

     

  5. Hi,

    i don't know what i have done wrong. Since few Days my Flux don't show the Emblems and my Captcha. Before it's works perfectly.

    Today i have Change my PHP from 5.6 to 7.1, but my Problems are not gone. I have at both, Captcha and Guild Emblems a broken picture.

    Have i set wrong permissions? Fast CGI Prob or zlib?

    I think i need your professional help again.

     

    Thanks in advance.

    1212.PNG

    1313.PNG

    1414.PNG

  6. Klare Antwort, kannte ich nicht, bis zu deinem Posting. 

    Von daher schon einmal danke für den Tipp. Werde mich im Laufe der restlichen Woche direkt mal kundig machen. Hätte nicht gedacht das es SSL auch gratis gibt. Da dies ja scheinbar ein rentabler Markt für einige Firmen/Hoster zu sein scheint.

    Lg

  7. Oh ja. Das SSL Problem. Ich steig da einfach nicht dahinter, auch nach vielen Erklärungen und Guides immer noch kein Durchblick, auch wenn der Hoster ein Zertifikat bereit stellt greift es nicht auf der Domain.

    Denke da werde ich mir noch professionelle Hilfe holen bis ende des Jahres um das zu fixen.

  8. Can everyone help me for my Script.

    I have Problems with

    set .@itemname$, getitemname( atoi( .@risk_price ) );

    mes " ~ "+.@itemname$+""; give me not the right Item Name after the second try. And i mean the answer is not the right item id in the array, it's only the first id.

    1.PNG

×
×
  • Create New...