Jump to content

rom3r

Members
  • Posts

    36
  • Joined

  • Last visited

Posts posted by rom3r

  1.  

    Try this.

    prontera,155,160,4	script	Global Reg Deleter	123,{
    set .@a, getarraysize( .global_delete$ );
    while( .@b < .@a )
    {query_sql("DELETE FROM `global_reg_value` WHERE `str` = '"+ .global_delete$[.@b] +"'"); set .@b,.@b+1;}
    end;
    OnInit:
    setarray .global_delete$[0],"Kill","Death","KillingStreak","MultiKill","KillingSpree","Dominating","MegaKill","Unstoppable","WickedSick","MonsterKill","Godlike","BeyondGodlike","DoubleKill","TripleKill","UltraKill","NemesisKill","NemesisKilled","FeedCount";
    end;
    }
    

    thank you looks so much neater

  2. Error when trying to upload a plugin

    Fatal error: Class 'finfo' not found in /home/rogalaxy/public_html/Home/lib/Aqua/UI/Form/File.php on line 244

    Uploading on any other page is fine

     

    also getting

    Fatal error: Access to undeclared static property: Aqua\UI\Template::$directories in /home/rogalaxy/public_html/Home/plugins/V4p-master/startup.php on line 20
    

    Cant use admin panel now :(

  3. 		$currentKey = $keys[$size];
    		if (array_key_exists($currentKey, $base)) {
    			$value = &$base[$currentKey];
    			if (is_array($value) && $configObjectIfArray) {
    				$configClassName = get_class($this);
    				return new $configClassName($value);
    			}
    			elseif ($value instanceOf Flux_Config && !$configObjectIfArray) {
    				return $value->toArray();
    			}
    			else {
    				return $value;
    			}
    		}
    		else {
    			// We want to avoid a traditional PHP error when referencing
    			// non-existent keys, so we'll silently return null as an
    			// alternative 
    			return null;
    		}
    	}
    	
    	/**
    

    That starts at 112 from my config in the lib file

  4. I was having a problem with donates not giving the credits and it was because i was using older flux cp so i got the new one from rathena github.I configured everything and it get 

    Warning: array_key_exists() expects parameter 2 to be array, string given in /home/rogalaxy/public_html/lib/Flux/Config.php on line 113
    

    When i go to the site

    Ive tried starting with new copy and redoing multiple times anyone know how to fix this thank you

  5.  

    Ok,the main problem has been fixed  , but i have another problem on "NPC Limitation" When I try to select the letter A, the letter B is selects

    I mean that if i active the letter "A" doesn't work, only the letter "B", and if I select the letter "C" doesnt works,  and works letter "D"

    ....

    and the options when i try select is disordered without alphabetical order

    maybe can use increase the *sleep time inside OnInit: label ...

     

     

    How do I make the OnNPCKillEvent: Show the mission name instead of the numbers

    unfortunately, the way Emistry scripted it, needs to run query_sql every single time to read the `title` from `mission_board` table

    and accessing query_sql too frequently can lag a server

    well ... I added it, but remains commented

     

    make it stop listing the kills after you reached the amount required

    this one possible

     

    tell you the mission is complete to return to the mission board?

    this one require lots of checking ...

    its better to just type '@mission' to check your progress

     

    And how do i change the cash point reward to free points?

    unless you understand the script ... otherwise its even hard to tell how to do it

    because everything from zeny to cashpoints are hard-coded

     

     

    Yeah i already did that, my players got a problem, when they relog they lose the kill count of some mobs, i can't set properly the quest time and so on @_@ thanks for ther help btw o:!

    I thought I already fixed them in 1.4 ?

    1.6 [paste=ftsocdeysre]

    - fix the getserverdef script command

    - increase sleep time inside OnInit to make lesser chance of getting unsorted ID

    - in commented lines, stop listing the monsters when the kill count reached

    - in commented lines, added listing for the mission name instead of mission ID

    though, type @mission is a preferable choice

     

    thank you but i found out awhile back after messing with it displaying mission name instead of id caused alot of problems lagged my sql out til the point it would lose connection.

  6.  

    Actually i found out the problem.It wasnt just not being able to move the whole interface would stop working but you could still type alt tabbing fixes it and it doesnt happen in fullscreen im not sure whats causing it but its annoying

    If what you're experiencing is the client randomly losing focus, it's a problem with the client itself. Gravity introduced this bug some time ago and still hasn't fixed it, as of testing in iRO a few days ago (surprising, right?). One such report is here: http://forums.irowiki.org/showthread.php?t=97827

    This doesn't happen in 2014-04-10 RagexeRE.

     

    Will lub files and the msgstringtable that work with 20130807 work with 20140410 or will i have to start over?

  7. Actually i found out the problem.It wasnt just not being able to move the whole interface would stop working but you could still type alt tabbing fixes it and it doesnt happen in fullscreen im not sure whats causing it but its annoying

  8. Players on my server are unable to move sometimes after warping and the time in which you can play before i happens varies.I warped to 200 different maps before it did it to me then the next time it was 2 times.I thought it was my client and packet version so i changed my client to 20130807 and my packet version.But it still keeps occurring. I've looked for a solution but couldn't find anything here.If anyone knows what could be the cause of this that would be awesome.

  9. I searched but apparently noone has this problem but star gladiators cant level any skills it doesnt give any option to level them and if you try and apply it goes back to being grayed out

  10. set .@self, getcharid(3);
    set .@size, query_sql("select account_id from `char` where online = 1", .@aid);
    for(set .@i,0; .@i<.@size; set .@i,.@i+1) {
    if(attachrid(.@aid[.@i])){
    set Kill, 0;
    set Death, 0;
    set KillingStreak, 0;
    set MultiKill, 0;
    set KillingSpree, 0;
    set Dominating, 0;
    set MegaKill, 0;
    set Unstoppable, 0;
    set WickedSick, 0;
    set MonsterKill, 0;
    set Godlike, 0;
    set BeyondGodlike, 0;
    set DoubleKill, 0;
    set TripleKill, 0;
    set UltraKill, 0;
    set Rampage, 0;
    set Ownage, 0;
    set NemesisKill, 0;
    set FeedCount, 0;
    query_sql("TRUNCATE TABLE `pvp_rank`");
    

    This will clear them for online people but nothing ive tried clears the offline people.

    Okay i got it working

    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'Kill'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'Death'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'KillingStreak'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'MultiKill'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'KillingSpree'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'Dominating'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'MegaKill'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'Unstoppable'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'WickedSick'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'MonsterKill'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'Godlike'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'BeyondGodlike'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'DoubleKill'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'TripleKill'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'UltraKill'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'Rampage'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'Ownage'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'NemesisKill'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'NemesisKilled'");
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'FeedCount'");
    

    need that but is there a way to make it neater looking instead of all that?

  11. Can someone help me make this pvp ladder work.I found it in the npc folder of my revision.But it refuses to record stats announce when someone talks a place.

    prontera,154,169,4	script	Pvp_Ladder	837,{
     
    mes "~Sign Reads~";
    OnPvpLadder:
    mes "Pvp Ladder";
    if(getgmlevel() >= .GM){ set .@i,select("Warp to PVP Room:View PVP Records:Leave:Reset PVP Stats");
    } else {  set .@i,select("Warp to PVP Room:View PVP Records:Leave"); }
    switch(.@i){
            case 1:
                next; {
                mes "[  ^0000ffPVP Warper^000000  ]";
                mes "Hello!";
                mes "Do you want me to warp you to PVP Room?";
                menu "^398315Sure, Bring it on!",warppvp,"^d95353No, thanks.",cancel;
                warppvp:    
                warp "pvp_n_2-5",0,0;
                end;
            }
     
                cancel: {
                next;
                mes "[  ^0000ffPVP Warper^000000  ]";
                mes "One should be courageous, not a coward.";
                end;            
            }
            
            
    case 4:
    mes "Are you sure you want to delete ALL pvp records?";
    if(select("No:Yes")==1) close;
    next;
    mes "Wait one Moment...";
    mes ".....";
    cleararray $TOPPK$[0],0,127;
    cleararray $TOPPK[0],0,127;
    query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'PKCOUNT'");
    set .@self, getcharid(3);
    set .@size, query_sql("select account_id from `char` where online = 1", .@aid);
    for(set .@i,0; .@i<.@size; set .@i,.@i+1) {
    if(attachrid(.@aid[.@i])){
    set PKCOUNT,0;
    } 
    }
    attachrid(.@self);
    mes "Cleared pvp data.";
    close;
    case 2:
    for(set .@i,0; .@i < getarraysize($TOPPK$); set .@i,.@i+1){
    mes (.@i+1)+": "+ $TOPPK$[.@i] +" with "+ $TOPPK[.@i] +" kills";
    if(.@i % 10 == 0){
    if(select("Read More:Leave") == 1){ next; } else { close; }
    }
    }
    case 3: close;
    }
    close;
    
    OnPCKillEvent:
    if(.Options&2 && (agitcheck() || agitcheck2())){
    if(getgmlevel() < .GmLvl || .Options&8){
    if(.Options&1 || strcharinfo(3) == .Map$){
    if(.Options&32){
    for(set .@i,.RepeatCount; .@i > 0; set .@i, .@i-1){
    set @PKedID[.@i+1], @PKedID[.@i];
    }
    set @PKedID,killedrid;
    }
    for(set .@i,1; .@i < .RepeatCount; set .@i,.@i + 1){
    if(@PKedID[0] == @PKedID[.@i]){ set .@s, .@s + 1;
    } else { set .@i, .RepeatCount + 1; }
    }
    if(.@s < .RepeatCount){
    set PkCount,PkCount+1;
    if(.Options&16) setd getd(.PointType$),getd(.PointType$) + .PvpEarned;
    for(set .@i,0; .@i < .MaxPlayers; set .@i, .@i + 1){
    if(PKCOUNT > $TOPPK[.@i]){
    if($TOPPK$[.@i] != strcharinfo(0)){
    setarray $TOPPK$[.@i + 1], $TOPPK$[.@i];
    setarray $TOPPK[.@i + 1], $TOPPK[.@i];
    }
    setarray $TOPPK$[.@i],strcharinfo(0);
    setarray $TOPPK[.@i],PKCOUNT;
    if(.Options&4) Announce ""+strcharinfo(0)+" Now Holds the The number "+.@i+" spot on the Pvp Ladder",bc_all;
    }
    sleep 1;
    }
    } else { if(.Options&64) warp "Save",0,0; }
    }
    }
    }
    end;
    OnInit:
     
    while( 1 ){
     
    delwaitingroom;
     
    waitingroom "PVP Warper [  "+getmapusers("pvp_n_2-5")+" Players  ]",0;
     
    sleep 1000;
    set .GM,99;
    set .MaxPlayers,10; // Number of Players held in Records
    set .GmLvl,99; // Highest GM level Able to Hold a Record, if Option 8 is Disabled
    set .Map$,"pvp_n_2-5"; // Map Pvp Must Take Place on in order to Count, if Option 1 is Disabled
    set .RepeatCount,5; // Number of kills on same person before it detects abuse, max of 128
    set .PointType$,"#Cash"; // Name of points earned, E.G. #Cash Points
    set .PvpEarned,1; // Number of Pvp Points Earned
    set .Options,116; // Bitwise Variable
    //   1:  Only Counts Kills on .Map$ if Disabled
    //   2:  Disables Record Holding during WOE
    //   4:  Announce When Someone Takes a Rank
    //   8:  Allow Gms Above level .GmLvl To Be on Ladder
    //   16: Gain PvP Points on Kills (#PvpPoints)
    //   32: Repeat Kill Protection
    //   64: Warp to Save on abuse
    // Example: "1+2+4 = 7" No Forced Map, Disables Record Holding during WOE and Announces New Record Holders
    bindatcmd("PvpLadder" ,"Pvp_Ladder::OnPvpLadder",0,99); 
     
    }
     
    end;
     
    
     
    }
    

    Ive tried ghosts ladder but the set map wont work for me.So if anyone could help me id be thankful

  12. Im trying to make an enchanter but i want only certain runes to be allowed to be put garmet armor headgear ect.But im having trouble getting it to go to a diffrent menu depending on were the item selected is equiped.

    prontera,156,179,5	script	Special Enchanter	100,{
    	if (EnchantTutorial == 1){
    		mes "[^0000FFSpecial Enchant^000000]";
    		mes "Welcome back!";
    		mes "Ready to get started?";
    		if ( select ( "Yes", "No" ) == 2 ) close;
    		mes "Please select the item you wish to enchant.";
    		next;
    		setarray .@position$[1],"Head","Body","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head 2","Head 3";
    		set .@menu$,"";
    		for(set .@i,1; .@i<=10; set .@i,.@i+1) {
    			if (getequipisequiped(.@i)) {
    				set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
    				set .@equipped,1;
    			}
    			set .@menu$, .@menu$ + ":";
    		}
    		if (.@equipped == 0) {
    			mes "[^0000FFSpecial Enchant^000000]";
    			mes "I don't think I can enchant any items you have.";
    			mes "Sorry,Try again later.";
    			close;
    		}
    		set .@item, select(.@menu$);
    		set .@enchantitemid, getequipid(.@item);
    		set .@refinerycnt, getequiprefinerycnt(.@item);
    		set .@enchantitemloc, Where the item location varible is suppose to go);
    			if (.@enchantitemloc == 1) {
    				mes "Im a headgear";
    				close;
    			}
    			else if (.@enchantitemloc == 2) {
    				mes "Im a weapon";
    				close;
    			}
    

    So can someone tell me how exactly i would do that? ty


    I feel like a moron I had set

     .@enchantitemloc, getiteminfo(.@enchantitemid,5); 

    in the script but only did slot 1 and 2 to test and was clicking my top head gear to try to get to 

    if (.@enchantitemloc == 1) {

     thinking 1 was top but it was lower zzzz.Sorry to waste your time pls close

  13. 
    

    // Cash Shop Database

    // Contains the items sold in the ingame cash shop.

    //

    // Structure of Database:

    // Type,ItemID,Price

    //

    // Type:

    // 0: New

    // 1: Hot

    // 2: Limited

    // 3: Rental

    // 4: Gear

    // 5: Buff

    // 6: Heal

    // 7: Other

    //

    // Price:

    // Item cost, in cash points (#CASHPOINTS).

    0,32101,1000

    0,32102,1000

    0,32103,1000

    0,32104,1000

    0,32105,1000

    0,32106,1000

    0,32107,1000

    0,32108,1000

    0,32109,1000

    0,32110,1000

    0,32111,1000

    0,32112,1000

    0,32113,1000

    0,32114,1000

    0,32115,1000

    0,32116,1000

    0,32117,1000

    0,32118,1000

    0,32119,1000

    0,32120,1000

    0,32121,1000

    0,32122,1000

    0,32123,1000

    0,32124,1000

    0,32125,1000

    0,32126,1000

    0,32127,1000

    0,32128,1000

    0,32129,1000

    0,32130,1000

    0,32131,1000

    0,32132,1000

    0,32133,1000

    0,32134,1000

    0,32135,1000

    0,32136,1000

    0,32137,1000

    0,32138,1000

    0,32139,1000

    0,32140,1000

    0,32141,1000

    0,32142,1000

    0,32143,1000

    0,32144,1000

  14. everytime i add anything into the item_Cash_db in the re folder then try to restart my server the map server stops working it doesnt crash or error.It just gets to loading cashdb and stops.

    [Status]: Memory manager initialised: log/map-server.leaks
    
                                                                          
                       rAthena Development Team presents                  
                          ___   __  __                                    
                    _____/   | / /_/ /_  ___  ____  ____ _                
                   / ___/ /| |/ __/ __ \/ _ \/ __ \/ __ `/                
                  / /  / ___ / /_/ / / /  __/ / / / /_/ /                 
                 /_/  /_/  |_\__/_/ /_/\___/_/ /_/\__,_/                  
                                                                          
                         http://rathena.org/board/                        
                                                                          
    [Info]: SVN Revision: '12139'
    [Info]: Server supports up to '1024' concurrent connections.
    [Info]: Char Server IP Address : '127.0.0.1' -> '127.0.0.1'.
    [Info]: Map Server IP Address : '198.56.164.150' -> '198.56.164.150'.
    [Status]: Using SQL dbs: no
    [Info]: Logging item transactions to table 'picklog'.
    [Info]: Logging commands to table 'atcommandlog'.
    [Info]: Logging Cash transactions to table 'cashlog'.
    [Info]: Connecting to the Map DB Server....
    [Status]: Connect success! (Map Server Connection)
    [Info]: [SQL]: Connecting to the Log Database trincli0281 At 192.168.1.50...
    [Status]: [SQL]: Successfully 'connected' to Database 'trincli0281'.
    [Status]: Loading maps (using db/re/map_cache.dat as map cache)...
    [Notice]: Removing map [ pvp_y_1-5 ] from maplist
    [Notice]: Removing map [ pvp_y_2-5 ] from maplist
    [Notice]: Removing map [ pvp_y_3-5 ] from maplist
    [Notice]: Removing map [ pvp_y_4-5 ] from maplist
    [Notice]: Removing map [ pvp_y_5-5 ] from maplist
    [Notice]: Removing map [ pvp_y_6-5 ] from maplist
    [Notice]: Removing map [ pvp_y_7-5 ] from maplist
    [Notice]: Removing map [ pvp_y_8-5 ] from maplist
    [Info]: Successfully loaded '860' maps.
    [Notice]: Maps removed: '8'
    [Info]: Done reading '1136' messages in 'conf/msg_conf/map_msg.conf'.
    [Status]: Done reading '64' command aliases in 'conf/atcommand_athena.conf'.
    [Status]: Done reading '12' entries in 'db/re/instance_db.txt'.
    [Status]: Done reading '0' entries in 'db/import/instance_db.txt'.
    [Status]: Done reading '4' channels in 'conf/channels.conf'.
    [Status]: Done reading '984' entries in 'db/packet_db.txt'.
    [Status]: Done reading '0' entries in 'db/import/packet_db.txt'.
    [Status]: Using default packet version: 46.
    [Status]: Done reading '9704' entries in 'db/re/item_db.txt'.
    [Status]: Done reading '0' entries in 'db/import/item_db.txt'.
    [Status]: Done reading '1' entries in 'db/item_avail.txt'.
    [Status]: Done reading '10' entries in 'db/item_stack.txt'.
    [Status]: Done reading '124' entries in 'db/item_nouse.txt'.
    [Status]: Done reading '1022' entries in 'db/re/item_bluebox.txt'.
    [Status]: Done reading '923' entries in 'db/re/item_violetbox.txt'.
    [Status]: Done reading '440' entries in 'db/re/item_cardalbum.txt'.
    [Status]: Done reading '20' entries in 'db/item_findingore.txt'.
    [Status]: Done reading '617' entries in 'db/re/item_giftbox.txt'.
    [Status]: Done reading '1188' entries in 'db/re/item_misc.txt'.
    [Status]: Done reading '2798' entries in 'db/re/item_package.txt'.
    [Status]: Done reading '0' entries in 'db/re/item_group_db.txt'.
    [Status]: Done reading '293' entries in 'db/re/item_combo_db.txt'.
    [Status]: Done reading '50' entries in 'db/re/item_noequip.txt'.
    [Status]: Done reading '2210' entries in 'db/re/item_trade.txt'.
    [Status]: Done reading '21' entries in 'db/re/item_delay.txt'.
    [Status]: Done reading '1057' entries in 'db/re/item_buyingstore.txt'.
    [Status]: Done reading '357' entries in 'db/re/item_flag.txt'.
    [Status]: Done reading '0' entries in 'db/import/item_avail.txt'.
    [Status]: Done reading '0' entries in 'db/import/item_stack.txt'.
    [Status]: Done reading '0' entries in 'db/import/item_nouse.txt'.
    [Status]: Done reading '0' entries in 'db/import/item_group_db.txt'.
    [Status]: Done reading '0' entries in 'db/import/item_combo_db.txt'.
    [Status]: Done reading '0' entries in 'db/import/item_noequip.txt'.
    [Status]: Done reading '0' entries in 'db/import/item_trade.txt'.
    [Status]: Done reading '0' entries in 'db/import/item_delay.txt'.
    [Status]: Done reading '0' entries in 'db/import/item_buyingstore.txt'.
    [Status]: Done reading '0' entries in 'db/import/item_flag.txt'.
    

    thats where it stops.If i remove everything out its fine and works properly.Anyone know how to fix this?

×
×
  • Create New...