Jump to content

Takuyakii

Members
  • Posts

    131
  • Joined

  • Last visited

Posts posted by Takuyakii

  1. Good day rA,

     

    can some one translate this into compatibility of rathena?

    1. i want this to be a normal npc daily quest npc.

    2. 24 hours cool down

    Thank you!

     

    Here's the code from herc

    //===== Hercules Script ====================================================================
    // Automatic Trivia Event
    //===== Originally initiated By: ===========================================================
    // Capuche http://rathena.org/board/user/5984-capuche/
    //===== Changed By: ========================================================================
    // Habilis
    //===== Current Version: ===================================================================
    // 1.5
    //===== Compatible With: ===================================================================
    // Hercules
    //===== Description: =======================================================================
    //- Enhanced version of facts auto event. The Event is announced. The NPC asks 10 random 
    //- questions from a question bank. Players have to write the answer to the main chat.
    //- Players don't need to worry about CAPITAL letters.
    //- 1) Question is asked by the NPC.
    //- 2) If there is no answer after 15 seconds NPC will give a hint.
    //- 3) IF there is still no answer after a hint, the question is skipped.
    //- 4) If the right answer is given, player is announced and reward is given
    //==========================================================================================
    //=====From eAthena to rAthena to Hercules==================================================
    //==========Without this original author, this script will never exist======================
    //========Original author Credits===========================================================
    //=====================================================DONT=================================
    // ToastOfDoom ================================================REMOVE=======================
    // RxChris	   =========================================================THIS================
    // Hellflaem   ================================================================CREDIT=======
    //==========================================================================================
    //==========================================================================================
    
    
    -	script	Trivia_Auto_Event	FAKE_NPC ,{
    	
    	OnMinute18:
    	//OnEventStart:
    		// Make the NPC appear so that players can begin to gather around
    		// and perhaps read the rules
    		enablenpc "Trivia#main";
    		[email protected] = 3; // How many times announce event with minute intervals
    		while( [email protected] > 0 ) {
    			announce "The Trivia Event will begin south of Prontera in " + [email protected] + " minute(s).",bc_all | bc_blue;
    			[email protected];
    			sleep 60000;
    		}
    	    announce "The Trivia Event has begun!",bc_all | bc_blue;
    		donpcevent "Trivia#main::OnEventBegin";
    		end;
    		
    	OnStop:	
    	OnEventTimeOut:
    		disablenpc "Trivia#main";
    		end;
    	
    	OnInit:
    		disablenpc "Trivia#main";
    		end;
    }
    
    
    prt_fild08,137,365,6	script	Trivia#main	4_F_JOB_ASSASSIN,{
    
    OnTalk:
    	mes "[^0055FF ::: Trivia ::: ^000000]";
    	mes " ";
    	mes "Very simple event!";
    	mes " ";
    	mes "I will be asking random questions.";
    	mes " ";
    	mes "All you have to do is shout the answer in the main chat!";
    	mes " ";
    	mes "Do not worry about the capital letters, I can recognize the right answer, when I see one ;)";
    	mes "Worry about the spelling though.";
    	
    	close2;
    	end;
    
    function DefineQuestion; function GetQuestion; function GetAnswer; function GetHint;
    
    OnEventBegin:
    L_loop:
    	do {
    		[email protected] = rand(.numQuestions); // Randomly picks a fact.
    	} while(.already_asked[[email protected]]);
    	
    	.already_asked[[email protected]] = true;
    	
    	if( !.count ) {
    		npctalk "Please answer all my questions:";
    		sleep 2000;
    		npctalk "If your answer is correct, you will obtain prizes!";
    	}
    	.count++;
    	sleep 4000;
    	npctalk "[" + .count + "/" + .max_questions + "] " + GetQuestion([email protected]);
    	defpattern 1, "([^:]+):.*\\s" + GetAnswer( [email protected] ) + "(.*)", "Right";
    	.Ans$ = GetAnswer( [email protected] );
    	.Hint$ = GetHint( [email protected] );;
    	activatepset 1;
    	initnpctimer;
    	end;
    	
    OnTimer15000:
    	npctalk "[Hint] : " + .Hint$;
    	end;
    OnTimer30000:
    	npctalk "Sorry, You took too long to answer.";
    	callsub L_continue;
    	end;
    	
    Right:
    	npctalk "Correct, " + strcharinfo(0) + "! The answer is  " + .Ans$ + ".";
    	
    	// Winner gets reward in Zeny
    	//Zeny += 1000000; // Alotta bax ;)
    	
    	// Winner gets reward in Item
    	//getitem 607, rand( 1,10 ); // Randomly picks from 1 to 10   607 --Ygg berry~ .
    	
    	// Winner gets reward in Points
    	[email protected] = rand(.minPoints,.maxPoints);
    	#LROEVENTPOINTS = #LROEVENTPOINTS + [email protected];
    	dispbottom .ServerName$  + " : You won " + [email protected] + " event points.";
    	
    L_continue:
    	deletepset 1;
    	stopnpctimer;
    	if( .count < .max_questions ) {
    		callsub L_loop; // loop 10 questions
    	}
    	.count = 0; // end of event
    	.Q_session = 0;
    	npctalk "That's all for now. Thanks for participating in this event ^^";
    	deletearray .already_asked, getarraysize(.already_asked);
    	emotion e_thx;
    	sleep 2000;
    	disablenpc "Trivia#main";
    	end;
    
    function DefineQuestion {
    	[email protected] = .numQuestions % 128;
    	[email protected] = .numQuestions / 128;
    
    	setd(".question_" + [email protected] + "$[" + [email protected] + "]", getarg(0));
    	setd(".answer_" + [email protected] + "$[" + [email protected] + "]", getarg(1));
    	setd(".hint_" + [email protected] + "$[" + [email protected] + "]", getarg(2));
    	
    	.numQuestions = .numQuestions + 1;
    	return;
    }
    function GetQuestion {
    	return getd(".question_" + (getarg(0) % 128) + "$[" + (getarg(0) / 128) + "]");
    }
    function GetAnswer {
    	return getd(".answer_" + (getarg(0) % 128) + "$[" + (getarg(0) / 128) + "]");
    }
    function GetHint {
    	return getd(".hint_" + (getarg(0) % 128) + "$[" + (getarg(0) / 128) + "]");
    }
    
    OnInit:
    	.ServerName$ = "[Your boring server]";
    	.minPoints = 10;
    	.maxPoints = 25;
    	.max_questions = 10;	// 10 questions if more than 10 questions are defined
    	DefineQuestion("When you create a character in this game, how many primary stats are there?","6", "STR, AGI, VIT, INT, DEX, LUK");
    	DefineQuestion("Wizard skill Water Ball can only be cast over deluge or ____?", "water", "It is liquid.");
    	DefineQuestion("Which item is required to create a guild?", "emperium", "An Emperial item");
    	DefineQuestion("which skill is beneficial to the living and damaging to the undead?", "heal", "It restores health.");
    	DefineQuestion("In which town Thieves guild is located?", "morocc", "A town in the sorgat desert.");
    	DefineQuestion("In which town Merchants guild is located?", "alberta", "It's a portuary town.");
    	DefineQuestion("In which town Archers guild is located?", "payon", "");
    	DefineQuestion("What property do Izlude dungeon monsters possess?", "water", "It is liquid.");
    	DefineQuestion("What status can be inflicted with the Hammer Fall skill?", "stun", "Did I see the stars around your head?");
    	DefineQuestion("How much Zeny one Jellopy is worth?", "3", "Just get it from a Poring.");
    	DefineQuestion("Which town has the most Dancers?", "comodo", "An island in the warm waters.");
    	DefineQuestion("How many different poring-like monsters you can meet near prontera, including mini bosses?", "9", "poring, drops, poporing, marin, santa poring, mastering, angeling, arcangeling, ghostring");
    	DefineQuestion("What property counters best the water property?", "wind", "It's Blowing");
    	DefineQuestion("What property counters best the undead property?", "holy", "Perhaps an acolyte or a priest can tell you?");
    	DefineQuestion("What kind of food both Vanilmirth and Christmas Goblin like?", "scel", "Yellow jeloppy");
    	DefineQuestion("How many cities are in Rune-Midgrad kingdom?", "11", "Prontera, Izlude, Jawaii, Geffen, Payon, Morocc, Alberta, Comodo, Umbala, Al De Baran, Lutie");
    	DefineQuestion("What city is the capital of Rune-Midgrad kingdom?", "prontera", "The most central town of all.");
    	DefineQuestion("Which food is able to fully restore health and mana? _________ _____", "yggdrasil berry", "A berry growing on the most majestic tree!");
    	DefineQuestion("Which one of those is the fastest weapon type? Sword, Dagger, Staff, Mace", "dagger", "Something that has to do with the length of the blade.");
    	DefineQuestion("Which one of those id the cheapest? Jellopy  Large Jellopy   Royal Jelly   Honey", "jellopy", "Dropped by Porings.");
    	DefineQuestion("Which monster drops a pet taming item to tame Deviruchi?", "joker", "Why so serious?");
    	
    	if( .numQuestions < .max_questions ) .max_questions = .numQuestions;
    	end;
    }

     

  2. Can someone re convert this into new or any compatibility because this is so old files.

    Please help me Thank you

    <?php if (!defined('FLUX_ROOT')) exit; 
    
    $title = Flux::message('ServerStatusTitle');
    $cache = FLUX_DATA_DIR.'/tmp/ServerStatus.cache';
    
    if (file_exists($cache) && (time() - filemtime($cache)) < (Flux::config('ServerStatusCache') * 600)) {
        $serverStatus = unserialize(file_get_contents($cache));
    }
    else {
        $serverStatus = array();
        foreach (Flux::$loginAthenaGroupRegistry as $groupName => $loginAthenaGroup) {
            if (!array_key_exists($groupName, $serverStatus)) {
                $serverStatus[$groupName] = array();
            }
    
            $loginServerUp = $loginAthenaGroup->loginServer->isUp();
    
            foreach ($loginAthenaGroup->athenaServers as $athenaServer) {
                $serverName = $athenaServer->serverName;
    
                $sql = "SELECT COUNT(char_id) AS players_online FROM {$athenaServer->charMapDatabase}.char WHERE online > 0";
                $sth = $loginAthenaGroup->connection->getStatement($sql);
                $sth->execute();
                $res = $sth->fetch();
    
                $serverStatus[$groupName][$serverName] = array(
                    'loginServerUp' => $loginServerUp,
                    'charServerUp' => $athenaServer->charServer->isUp(),
                    'mapServerUp' => $athenaServer->mapServer->isUp(),
                    'playersOnline' => intval($res ? $res->players_online : 0)
                );
            }
        }
        
        $fp = fopen($cache, 'w');
        if (is_resource($fp)) {
            fwrite($fp, serialize($serverStatus));
            fclose($fp);
        }
    }
    $online = "<img src='".$this->themePath('img/online.png')."' alt=\"Online\"/>";
    $offline = "<img src='".$this->themePath('img/offline.png')."' alt=\"Offline\"/>";
    ?> 
    <?php foreach ($serverStatus as $privServerName => $gameServers): ?>
    <?php foreach ($gameServers as $serverName => $gameServer): ?>
    
    <div style="width:100%; height:100%; margin:0 auto;">
    <div class="online_count">
    <table width="100%" border="0">
      <tr>
        <td align="center">
    	<p style="font-size:35px; margin-top:0px; font-weight:normal; font-family:'Visitor TT2 BRK'" align="center">
    	<?php echo $gameServer['playersOnline'] ?>
    	</p>
    </td>
      </tr>
    </table>
    </div>
    <div class="online_peak">
    <table width="100%" border="0">
      <tr>
        <td align="center">
    <font style="font-size:12px; font-weight:normal; font-family:'Visitor TT2 BRK'; color:#00CCFF;"><?php include('highest_peak.php'); ?></font>
    	</td>
      </tr>
    </table>
    </div>
    <div class="server_time">
    <table width="100%" border="0">
      <tr>
        <td align="center">
    <font style="font-size:12px; font-weight:normal; font-family:'Visitor TT2 BRK'; color:#CCC;"><?php include('status_time.php'); ?></font>
    	</td>
      </tr>
    </table>
    </div>
    		<div style="position:absolute; margin-left:285px; height:40px; width:200px; border:none;">
    	<div class="char"><?php if ( $charserver[0] == $online ) { echo $online; } else { echo $offline; } ?></div>
    	<div class="map"><?php if ( $mapserver[0] == $online ) { echo $online; } else { echo $offline; } ?></div>
    	<div class="login"><?php if ( $loginserver[0] == $online ) { echo $online; } else { echo $offline; } ?></div>
    			</div>
    		</div>
    
        <?php endforeach ?>
    <?php endforeach ?>

     

  3. 3 hours ago, Takuyakii said:

    Good day rA,

     

    can someone help me to fix this error about query? i already googled some and fix the other error but this error, i can't fix it
     

    MYSQLI_FETCH_ARRAY() EXPECT PARAMETER 1 to be MYSQLI_Result object given

     

    below is my code 

    <?php if (!defined('FLUX_ROOT')) exit; ?>
    <?php
    		
    //SQL Connection
    function Connection()
    {
    $db_host="127.0.0.1"; //insert the IP Address of your website
    $db_name="rathena"; //insert your database name insid the 2 double quotesS
    $username="zxc"; //insert the username of your phpmyadmin (SQL username)
    $password="zxc"; //insert the password of your phpmyadmin (SQL password)
    $conn = mysqli_connect($db_host,$username,$password);
    
    
        if (!$conn) {
            echo "Connection failed!";
    
            return false;
        }
    
        mysqli_select_db($conn, $db_name);
    
        return $conn;
    }
    
    $conn = Connection();
    
    if ($conn)
    {
        $hpsql = mysqli_query($conn, "SELECT * FROM cp_onlinepeak ORDER BY users DESC LIMIT 1");
        $hprow = mysqli_fetch_array($conn,$hpsql);
    
        
        echo $hprow['users'];
    }

     

    Solved. please close this threads thank you.

  4. Good day rA,

     

    can someone help me to fix this error about query? i already googled some and fix the other error but this error, i can't fix it
     

    MYSQLI_FETCH_ARRAY() EXPECT PARAMETER 1 to be MYSQLI_Result object given

     

    below is my code 

    <?php if (!defined('FLUX_ROOT')) exit; ?>
    <?php
    		
    //SQL Connection
    function Connection()
    {
    $db_host="127.0.0.1"; //insert the IP Address of your website
    $db_name="rathena"; //insert your database name insid the 2 double quotesS
    $username="zxc"; //insert the username of your phpmyadmin (SQL username)
    $password="zxc"; //insert the password of your phpmyadmin (SQL password)
    $conn = mysqli_connect($db_host,$username,$password);
    
    
        if (!$conn) {
            echo "Connection failed!";
    
            return false;
        }
    
        mysqli_select_db($conn, $db_name);
    
        return $conn;
    }
    
    $conn = Connection();
    
    if ($conn)
    {
        $hpsql = mysqli_query($conn, "SELECT * FROM cp_onlinepeak ORDER BY users DESC LIMIT 1");
        $hprow = mysqli_fetch_array($conn,$hpsql);
    
        
        echo $hprow['users'];
    }

     

  5. Can someone help me to make this script have Jackpot prize? or chance to get the rare item?

    Thank you.

    -	script	Wheel_of_Fortune	FAKE_NPC ,{
    
    OnInit:
        disablenpc("Wheel of Fortune#Main");
        .EventName$ = "[Wheel Of Fortune]";
        end;
    
    
    OnClock0900:
    OnClock1600:
    OnClock2200:
    OnStart:
        .Start = true;
        announce(sprintf("%s : The event will begin in 1 minute, near the center of Prontera.", .EventName$), bc_blue | bc_all);
        initnpctimer();
        end;
    
    OnTimer60000: // 1 min
        enablenpc("Wheel of Fortune#Main");
        announce(sprintf("%s : Come to Prontera and test your luck", .EventName$), bc_yellow | bc_all);
        end;
    
    OnTimer60500: // 1 mins
        announce(sprintf("%s : One minute, do your last spin!", .EventName$), bc_yellow | bc_all);
        end;
    
    OnTimer120000: // 2 mins
    OnStop:
        .Start = false;
        stopnpctimer();
        disablenpc("Wheel of Fortune#Main");
        end;
    
    OnCommand:
        if ([email protected]_numparameters != 1) {
            dispbottom(sprintf("Usage: %s <start/end>", [email protected]_command$), 0x00FF00);
            dispbottom(sprintf("%s failed.", [email protected]_command$), 0x00FF00);
            end;
        }
    
        if ([email protected]_parameters$[0] == "start") {
            if (!.Start)
                donpcevent(sprintf("%s::OnStart", strnpcinfo(NPC_NAME)));
            else {
                dispbottom("The Wheel of Fortune has already started.", 0x00FF00);
                dispbottom(sprintf("%s failed.", [email protected]_command$), 0x00FF00);
            }
        } else if ([email protected]_parameters$[0] == "end") {
            if (.Start)
                donpcevent(sprintf("%s::OnEnd", strnpcinfo(NPC_NAME)));
            else {
                dispbottom("The Wheel of Fortune is not active.", 0x00FF00);
                dispbottom(sprintf("%s failed.", [email protected]_command$), 0x00FF00);
            }
        } else {
            dispbottom(sprintf("Usage: %s <start/end>", [email protected]_command$), 0x00FF00);
            dispbottom(sprintf("%s failed.", [email protected]_command$), 0x00FF00);
        }
        end;
    }
    
    prontera,164,169,1	script	Wheel of Fortune#Main	2_SLOT_MACHINE,{
        
    OnTalk:
    
    if (Zeny < .Zeny_Cost && #freewheelfortunespin < 0) {
            mes("[^0055FFLucky Spin^000000]", .EventName$);
            mes("You are out of Zeny");
            mes("and have no more");
            mes("free spins. Come back");
            mes("next time for more!");
            close();
        }
    
        [email protected]$ = (#freewheelfortunespin > 0) ? sprintf(", but you, my friend, have %d free spin%s!", #freewheelfortunespin, (#freewheelfortunespin == 1) ? "" : "s") : ".";
        addtimer(1, sprintf("%s::OnEnd", strnpcinfo(NPC_NAME)));
        mes("[^0055FFLucky Spin^000000]", .EventName$);
        mes("Do you want to spin the wheel?");
        mes("It costs ^FF000050.000 Zeny^000000 to play", [email protected]$);
        next();
    
        while (true) {
            if (Zeny < .Zeny_Cost && #freewheelfortunespin < 0)
                callsub(S_End);
            switch (select(
                (#freewheelfortunespin > 0) ? sprintf("Yes! Use free spin! (%d left)", #freewheelfortunespin) : "",
                (Zeny >= .Zeny_Cost ) ? sprintf("Yes! Use Zeny. (costs %dz)", .Zeny_Cost) : "",
                "No (Leave)"
            )) {
            // pay with free spin
            case 1:
                if (#freewheelfortunespin > 0) {
                    if ((#freewheelfortunespin -= 1) < 0)
                        #freewheelfortunespin = 0;
                    callsub(S_Spin);
                } else
                    callsub(S_End);
                break;
    
            // Pay with zeny
            case 2:
                if (Zeny >= .Zeny_Cost) {
                    Zeny -= .Zeny_Cost;
                    callsub(S_Spin);
                } else {
                    cutin("aca_salim02", 2);
                    mes("[^0055FFLucky Spin^000000]", .EventName$);
                    mes("Awww, you don't have enough to gamble...");
                    mes(" ");
                    mes("Have you ever heard?");
                    mes("'Money isn't all that matters' Got it?");
                    mes("Byeeeeeeeeeeeeee ;)");
                    callsub(S_End);
                }
                break;
    
            default:
                break;
            }
            callsub(S_End);
        }
    
    // Wheel spin animation
    S_Spin:
        [email protected] = rand(.Sector_Range[0], .Sector_Range[1]);
        [email protected] = [email protected] * 2 - 1;
        [email protected] = .Spin_Speed;
        
        for ([email protected] = 0; [email protected] < .nbTurns; [email protected]++) {
            [email protected] = .Cutin_Range[0];
            while ([email protected] <= .Cutin_Range[1]) {
                cutin(sprintf("%s%d", .Cutin$, [email protected]), 4);
                sleep2([email protected]);
                [email protected]++;
                [email protected] += 1; // not ++, because  you may want to adjust the stopping +1 +2 +3
            }
        }
    	[email protected] = .Cutin_Range[0];
        while ([email protected] < [email protected]) {
            cutin(sprintf("%s%d", .Cutin$, [email protected]), 4);
            sleep2([email protected]);
            [email protected]++;
        }
    
        cutin(sprintf("%s%d", .Cutin$, [email protected]), 4);
    
        if (.Prize_ID[[email protected]] == -1) {
            // Free spin
            if (.Sound_Effects)
                soundeffect("wheel_jackpot.wav", 0);
            announce(sprintf("[%s] : Wow, %dx more Free spins!!!", .EventName$, .Prize_Qty[[email protected]]), bc_blue | bc_self);
            #freewheelfortunespin = #freewheelfortunespin == 0 ? .Prize_Qty[[email protected]] : #freewheelfortunespin + .Prize_Qty[[email protected]];
        } else if (.Prize_ID[[email protected]] == 0) {
            // Nothing
            if (.Sound_Effects)
                soundeffect("wheel_lost.wav", 0);
            announce(sprintf("[%s] : Awwww, no luck in your gamble, more luck in love...", .EventName$), bc_blue | bc_self);
        } else {
            // Item
            if (.Sound_Effects)
                soundeffect("wheel_won.wav", 0);
            announce(sprintf("[%s] : %dx %s - enjoy your prize!", .EventName$, .Prize_Qty[[email protected]], getitemname(.Prize_ID[[email protected]])), bc_blue | bc_self);
            getitem(.Prize_ID[[email protected]], .Prize_Qty[[email protected]]);
        }
    
        sleep2(1000);
        if (Zeny < .Zeny_Cost && #freewheelfortunespin < 0) {
            mes("[^0055FFLucky Spin^000000]", .EventName$);
            mes("You are out of Zeny");
            mes("and have no more");
            mes("free spins. Come back");
            mes("next time for more!");
            close();
        }
        return;
        
    S_End:
        close2();
    OnEnd:
        cutin("", 255);
        end;
        
    OnInit:
        .EventName$ = "Wheel Of Fortune";
        bindatcmd("wheel_of_fortune", "Wheel_of_Fortune::OnCommand", 98,false);
        .Spin_Speed = 50; // What is the base spin speed? (ms)
        .nbTurns = 2; // How many times the arrow makes a complete turn, before entering the stopping routine
        .Zeny_Cost = 50000; // How much zeny does it cost for a spin?
        .Sound_Effects = true; // Enable sound effects? (true/false)
    
        // You must have a total of 10 prizes. DO NOT remove 0 or -1 from the array and do not
        // change their order.
        setarray(.Prize_ID[1], -1, 7539, 14345, 7539,   617,   607, 7539,   604, 0,  12214);
        setarray(.Prize_Qty[1], 2,     3,     1,     1,     3,     3,     1,     3, 0,     1);
    
        // Don't touch below
        .Cutin$ = "WheelOfFortune_";
        setarray(.Sector_Range, 1, 10); // Sector range
        setarray(.Cutin_Range, 0, 19); // Cutin range
        end;
    }

     

  6. use WeemapCache and open your map_cache.dat, after that click FILE on weemapcache then select your izlude.gat, then save, after saving put your map_cache.dat to your trunk, then restart your server

     

    PS. DOn't forget to put the izlude file also in your grf.

  7. 50 minutes ago, NicoAFV1212 said:

    My problem is that the IZLUDE map is bug, I read many posts on the subject with very vague and little explanatory solutions. I would like someone to solve this problem for me clearly, since I am new and do not understand much about the subject. I am pre-renewal. I would like to know where to download the old izlude map and what to do with those files once I have them. If someone is very kind to answer me in detail, I would appreciate it

    PD: I only have bad the map, the wards and the rest are fine. The cell movement is bad because I understand that it is configured with the new renewal izlude and my server is pre-renewal, so it gives an error

     

  8. 36 minutes ago, Start_ said:

    No need to change in packet.h

    Just change on define_pre.hpp

    Remember you need to use same client date of exe and whole data requirement for old date. (Item Info, etc.)

    // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
    // For more information, see LICENCE in the main folder
    
    #ifndef CONFIG_CUSTOM_DEFINES_PRE_HPP
    #define CONFIG_CUSTOM_DEFINES_PRE_HPP
    
    /**
     * rAthena configuration file (http://rathena.org)
     * For detailed guidance on these check http://rathena.org/wiki/SRC/config/
     **/
    
    	#define PACKETVER 20151104	
    
    #endif /* CONFIG_CUSTOM_DEFINES_PRE_HPP */

    i already did, then recompile but still failed to connect 

     

    and im using the whole data of 20151104 the item , info etc

    i used this in my last server and it working but now it's not working

  9. Hello im using 2018 client now and i want it to downgrade for some reason

     

    i read some topic here about this and what i did is

     

    i changed packet.h into my 20151104

    in defines_pre.hpp

    #define PACKETVER 20151104

     

    when i'm trying to login there's no error on the server

     

    i can login but can't proceed to character.

     

    please help me

  10. can someone help me ,

     

    im requesting for this script

     

    1. NPC that will give item

    2. the npc will only give to the selected account id. 

    example

    200004,20006,200030 and so on 

     

    3. and can only obtained once

     

    Thank you.

  11. 1 hour ago, Jpeeezy said:

    Thank you for creating this but what I need are these commands only

    @quest - teleports to a quest room that I will set

    @train - teleports to training grounds

    @bts - teleports to where I will put the bts npcs

    just replace the 

     

    OnQuest: 
    
    warp "your quest map",155,180;
    and so on

     

  12. 11 hours ago, Patskie said:

    Something like this?

    prontera,150,150,6	script	Sample	100,{
    	if (BaseLevel < 20) end;
    	switch (select("Register", "View List", (getgmlevel() < 99 ? "" : "[^FF0000GM Menu^000000] Clear List"), "Exit")) {
    		case 1:
    			if (inarray($register$, strcharinfo(0)) != -1)
    				mes "Already registered";
    			else {
    				mes "Done registration";
    				$register$[getarraysize($register$)] = strcharinfo(0);
    			}
    			close;
    		case 2:
    			[email protected] = getarraysize($register$);
    			if ([email protected])
    				mes "No list";
    			else {
    				mes "Registration List";
    				for ([email protected] = 0; [email protected] < [email protected]; [email protected]++)
    					mes ([email protected]+1) + ". " + $register$[[email protected]];
    			}
    			close;
    		case 3:
    			deletearray $register$;
    			end;
    	}
    }

     

    Thanks it works ^_^ 

  13. Can i request for this script

     

    NPC Registration

     

    1. You have to be level 20 for you to allowed to register on that npc.

    2. That npc have list of all registered.

    3. i want it to be permanent, what i mean is i found a script like this but everytime i use @reloadscript the list will be deleted 

    4. Thanks in advance

    btw here's the script 

    set .end,0;
    	while(.end!=1){
    	mes "[Sign up NPC]";
    	mes "Want to sign up ?!";
    	mes	"^6666ff^000000";
    		for(set [email protected],getarraysize([email protected]$); [email protected] != -1;){
    			mes [email protected]$[[email protected]];
    			set [email protected], [email protected] -1;
    			}
    			next;
    			set .signmenu$,"Yes, Sign my name:Leave it alone";
    			if(getgmlevel()>=99){set .signmenu$, .signmenu$ + ":^ff0000Wipe the list^000000"; }
    			switch(select(.signmenu$)){
    			case 1:
    				mes "[Sign up NPC]";
    				mes "You have signed up.";
    				if([email protected] % 2 == 1) {
    				set [email protected]$[[email protected]], "^6666ff["+gettimestr("%H:%M",21)+"]^000000 ^ff0000"+ strcharinfo(0) + " Signed Up";
    				mes "^ff0000" + @var$ + "^000000";
    				} else {
    				set [email protected]$[[email protected]], "^6666ff["+gettimestr("%H:%M",21)+"]^000000 "+strcharinfo(0) + " Signed Up";
    				}
    				set [email protected], [email protected] + 1;
    				close;
    			case 2:
    				close;
    			case 3:
    				set [email protected],0;	
    				deletearray [email protected]$[0],getarraysize([email protected]$);
    				set [email protected]$[0],"";
    				mes "They have been erased.";
    				break;
    		}
    	}
    	close;
    	
    	OnInit:
    	waitingroom "Sign up NPC",0;
    	set [email protected],0;
    	set [email protected]$[0],"";
    	end;

     

  14. On 8/7/2020 at 9:35 PM, PottScilgrim said:

    Try this.

    thanks, but i think it's not working because i waited for the hours and nothing announced that the event has started or the exprate, checked the @rates is still on the same rate.

    btw no error on server

     

    EDITED: i added OnInit: and now it's working 😄

  15. Can i request for this scrip

    Current rate 15x15x5

     

    Automatic Happy Hour Everyday

    Rate will be 18x18x5

    8:00AM - 11:00AM

    1:00PM - 400PM

    9:00PM - 11PM

    1:00AM - 4:00AM

     

    try to search some happy hour script and it works but i can't make it work for this set of time. and days

     

    Thanks

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.