Jump to content

Dastgir

Script Developers
  • Content Count

    3805
  • Joined

  • Last visited

  • Days Won

    250

Everything posted by Dastgir

  1. Well Nice Design.. BTW Im using MS Paint Only XD... Really? Its really good.. (also better than those who just copy background images)
  2. //////////////////////////////////////////// /== | |/ //== ==// ===/ //// // || || || || |/ | // //// || ||--|| ||--|| || || ___ //// || ||--|| ||--|| || || //// || || || || || || // //// /== /| | /| | ==// ====// //////////////////////////////////////////////Npc: Chaos Rankings - WoE///////////////////////////////////////////////////////////Description: Mostra os Rankings WoE //////////////////////////////////////////////Changelog: //////////// V1.1 - Script Original por algoz ONE //// v2.0 - Script Reformulado para //// diversos rankings //// v3.0 - Script Otimizado ////////////////////////////////////////////prontera,151,166,4 script Rankings 450,{// == Configurações ==setarray @Names$[0],"^FF4500[Rank Guerra do Emperium]^000000","^40E0D0PortalRaG^000000"; //= Nome do NPC seguido do nome do Servidor.set @PlRank,10; //= Quantos Players aparecerão nos rankings?set @GdRank,10; //= Quantos Clãs aparecerão nos rankings// ===================set @CID,getcharid(0);set @GID,getcharid(2);while(true){mes @Names$[0];mes "Olá ^00BFFF"+strcharinfo(0)+"^000000.";mes "Selecione a ^FF0000opção^000000 desejada:";deletearray @breaks[0],getarraysize(@breaks);deletearray @name$[0],getarraysize(@name$);deletearray @kills[0],getarraysize(@kills);deletearray @deaths[0],getarraysize(@deaths);next;set @Rank,select("- TOP "+@PlRank+" Breakers","- TOP "+@GdRank+" Clãs","- Meu Status","- Sair") - 1;if(@Rank == 4){mes @Names$[0];mes "Bom jogo.";close;}else if(@Rank == 3){query_sql "SELECT `breaks`,`kills`,`deaths` FROM `woeplayerrank` WHERE `char_id`="+@CID,@points,@kills,@deaths;query_sql "SELECT `breaks`,`kills`,`deaths` FROM `woerank` WHERE `guild_id`="+@GID,@guild,@gkills,@gdeaths;mes @name$;mes "^0000FF[Jogador "+strcharinfo(0)+"]^000000";mes "^525252Clã atual:^000000 ^FF0000"+strcharinfo(2)+"^000000.";mes "^525252Quebrou o Emperium..^000000 ^FF0000"+@points+"^000000 vezes.";mes "^525252Clã quebrou o Emperium..^000000 ^FF0000"+@guild+"^000000 vezes.";mes "^525252Matou no Total..^000000 ^FF0000"+@kills+"^000000 Players.";mes "^525252Morreu no Total..^000000 ^FF0000"+@deaths+"^000000 Vezes.";mes "^525252Amigos do Clã Mataram no Total..^000000 ^FF0000"+@gkills+"^000000 Players.";mes "^525252Amigos do Clã Morreram no Total..^000000 ^FF0000"+@gdeaths+"^000000 Vezes.";next;}else{query_sql "SELECT `breaks`,`"+(@from? "g" : "")+"name`,`kills`,`deaths` FROM `woe"+(!@from? "player" : "")+"rank` ORDER BY `breaks` DESC, `kills` DESC LIMIT "+(@from? @GdRank : @PlRank),@breaks,@name$,@kills,@deaths;mes "[^FF4500TOP "+(@from? @GdRank+" Clãs" : @PlRank+" Breakers")+" - WoE^000000]";for(set @i,0; @i<=(@from? @GdRank : @PlRank); set @i,@i+1)if(@name$[@i]=="")mes (@i+1)+": ---";elsemes "Posição: ^0000FF"+ (@i+1) +"^000000º: "+@name$[@i]+" com ^FF0000"+@breaks[@i]+"^000000 ^0000FFbreaks^000000, ^FF0000"+@kills[@i]+"^000000 ^0000FFKills^000000 e ^FF0000"+@deaths[@i]+"^000000 ^0000FFDeaths^000000.";mes "^525252_____________^000000";mes "^525252TOP "+(@from? @GdRank+" Clãs" : @PlRank+" Breakers")+" - WoE^000000 "+@Names$[1]+".";next;}}}function script WoE_Rank {query_sql "SELECT `breaks`,`name` FROM `woeplayerrank` WHERE `char_id`="+getcharid(0),@bpoints,@name$;query_sql "SELECT `gname`,`breaks` FROM `woerank` WHERE `guild_id`="+getcharid(2),@gname$,@gbpoints;if( @name$ == "" )query_sql "INSERT INTO `woeplayerrank` (`char_id`,`name`,`breaks`) VALUES ("+getcharid(0)+",'"+strcharinfo(0)+"',0)";if ( @gname$ == "" )query_sql "INSERT INTO `woerank` (`guild_id`,`gname`,`breaks`) VALUES ("+getcharid(2)+",'"+getguildname(getcharid(2))+"',0)";query_sql "UPDATE `woeplayerrank` set `breaks` = `breaks` +1 WHERE `char_id`="+getcharid(0);query_sql "UPDATE `woerank` set `breaks` = `breaks` +1 WHERE `guild_id`="+getcharid(2);return;}- script WoePlayerLadder -1,{OnPCKillEvent:if(!agitcheck() && !agitcheck2())end;getmapxy @map$,@x,@y,0;set @Found,0;if($UsingWoEController)for(set @i,0; @i<3; set @i,@i+1)for(set @j,0; @j < getarraysize(getd("$DiasWoE_"+@i)); set @j,@j + 1)for(set @k,0; @k<getarraysize(getd("$CastelosWoE_"+@i+"_"+@j+"$")); @k++) if(@map$==getd("$CastelosWoE_"+@i+"_"+@j+"$["+@k+"]")){{set @Found,1;break;}elsefor(set @i,0; @i < getarraysize($woemap$); set @i,@i+1)if(@map$==$woemap$[@i]){set @Found,1;break;}if(!@Found)end;query_sql "SELECT `kills`,`name` FROM `woeplayerrank` WHERE `char_id`="+getcharid(0),@ppoints,@name$;query_sql "SELECT `kills`,`gname` FROM `woerank` WHERE `guild_id`="+getcharid(2),@gpoints,@gname$;if( @name$ == "" )query_sql "INSERT INTO `woeplayerrank` (`char_id`,`name`,`kills`) VALUES ("+getcharid(0)+",'"+strcharinfo(0)+"',0)";if( @gname$ == "" )query_sql "INSERT INTO `woerank` (`guild_id`,`gname`,`kills`) VALUES ("+getcharid(2)+",'"+getguildname(getcharid(2))+"',0)";query_sql "UPDATE `woeplayerrank` set `kills` = `kills` +1 WHERE `char_id`="+getcharid(0);query_sql "UPDATE `woerank` set `kills` = `kills` +1 WHERE `guild_id`="+getcharid(2);attachrid killedrid;query_sql "SELECT `deaths`,`name` FROM `woeplayerrank` WHERE `char_id`="+getcharid(0),@ppoints,@name$;query_sql "SELECT `deaths`,`gname` FROM `woerank` WHERE `guild_id`="+getcharid(2),@gpoints,@gname$;if( @name$ == "" )query_sql "INSERT INTO `woeplayerrank` (`char_id`,`name`,`deaths`) VALUES ("+getcharid(0)+",'"+strcharinfo(0)+"',0)";if( @gname$ == "" )query_sql "INSERT INTO `woerank` (`guild_id`,`gname`,`deaths`) VALUES ("+getcharid(2)+",'"+getguildname(getcharid(2))+"',0)";query_sql "UPDATE `woeplayerrank` set `deaths` = `deaths` + 1 WHERE `char_id`="+getcharid(0);query_sql "UPDATE `woerank` set `deaths` = `deaths` + 1 WHERE `guild_id`="+getcharid(2);end;OnInit:set $UsingWoEController,0; // Coloque 1 caso utilize o WoE Controller de minha autoria.if(!$UsingWoEController) // Ponha aqui os castelos que estão habilitados na sua WoE caso não use o WoE Controllersetarray $woemap$[0],"prtg_cas03","payg_cas03","gefg_cas04","aldeg_cas01","schg_cas01","schg_cas02","schg_cas05","arug_cas01";end;} The Above NPC is fine, but there seems to be problem with variables, there are some variables which are not even set in this script, and been used to manipulate data. Maybe some other script creating that variable?
  3. Assuming your webhost and mysql on different hosts(not on same vps), I would recommend doing this command via putty. /usr/sbin/setsebool -P httpd_can_network_connect=1 error code 13(2003) means connection is refused by the host, so the above command will enable the php(fluxcp) to connect to your mysql on vps
  4. Dastgir

    Zeny

    But they can sell it for zeny. please try the above regex that I posted.
  5. Download any hex editor (I use HxD). Open the client using HxD. Searh the string that you want to replace, and replace it(you should not go beyond the length of string, else the client may broke)
  6. Maybe commenting #define ENABLE_CASE_CHECK From src/map/script.h and recompiling can help. but I highly insist to change the script to case sensitive in near future,
  7. Dastgir

    Zeny

    Set the price as 0 on shops, instead of itemdb or do a regex search, find Buy: ([0-9]+) Replace with Buy: 0 or "" Without quotes, that is nothing.
  8. which voteforpoints module you are using?
  9. Seems like a Wamp Problem not allowing you to access via web.
  10. // EVENT NPC ======================================================prontera,137,167,3 script Kill Event 63,{ monster "prontera",0,0,"Poring",PORING,10,"Kill Event::OnPoringKilled"; OnPoringKilled: if (!mobcount("prontera","Kill Event::OnPoringKilled")){ enablenpc "PrizeGiver"; } end;}location script PrizeGiver 64,{//script for itemOnInit:disablenpc "PrizeGiver";end;} By Show the NPC, I think you mean by enabling the npc.. Sorry. I misunderstood your question.
  11. I have do this.But not work. What's the error? can you post the screenshot of error? Also make sure in, config/error.php $showExceptions = false; has been set to true, so the FluxCP can show actual error.
  12. Make a New GRF(don't save it in data.grf), load it first in DATA.ini (data.grf => kRO's Main GRF) [DATA]0=YourRO.GRF1=data.grf Also Ensure in your GRF that the path of files are correct, (should be data/mapnametable.txt and not data/data/mapnametable.txt)
  13. IF mobs are spawn by label, i.e monster "prontera",0,0,"Poring",PORING,10,"NPCNAME::OnPoringKilled"; you can do following OnPoringKilled:if (!mobcount("prontera","NPCNAME::OnPoringKilled")){//All mobs dead, do something.} else you have to initiate a timer(as follows): OnTimer60000: //Checks Every 1 minute if (!mobcount("prontera","all")){ //Do Something, All monsters is prontera is dead. }OnInit: initnpctimer; end;
  14. If you want to know how to install: place fluxcp on your webhost(or wherever you want to host it) configure config/servers.php and config/application.php and try to run the fluxcp(it will then ask for passwords) How to ReInstall: Delete log files from "data/logs/schemas" and try to visit fluxcp.
  15. Little confused.. the screenshot you provided is of your website or of hE? Since I am able to visit and see rss(xml) on every link you posted(even the rA one)
  16. but still the same when i start the server it still load the RE database. and also I saw some thread where you can declare on Linux the client version not touching the mmo.h? Thanks in advance. You need to recompile it again by "make all"
  17. Could you link to your src/common/mmo.h and src/map/packets.h? I believe something is wrong there.
  18. for (.@i=0; .@i<getargcount(); .@i++){ if (countitem(getarg(.@i))<@input){@error = 1;} mes "You Need ["+countitem(getarg(.@i))+"/"+@input+"] "+getitemname(getarg(.@i));}if (@error==1){ mes "You do not have enough items"; close;}//Do anything here This way, it would show "You Need [x/y] ItemName" for every item required.
  19. getargcount() Above function returns the number of arguments passed to a function via callfunc, or to callsub. if you want to pass all getarg() through same condition, you can use for loop in the Create2 Label: for (.@i=0; .@i<getargcount(); .@i++){ if (countitem(getarg(.@i))<@input){@error = 1;}}if (@error==1){ mes "You do not have enough items"; close;}//Do anything here
  20. AFAIK, If you build at 32bit machine it would show 32bit, if you build with 64 bit , it would show 64bit there..
  21. NPC is on prontera city => x-150 y-193 4 = Facing Direction of NPC List of Directions: DIR_NORTH 0DIR_NORTHWEST 1DIR_WEST 2DIR_SOUTHWEST 3DIR_SOUTH 4DIR_SOUTHEAST 5DIR_EAST 6DIR_NORTHEAST 7
  22. if (!$this->hasCreditsRecord($targetAccountID)) { $sql = "INSERT INTO {$this->charMapDatabase}.`acc_reg_num_db` (`account_id`, `key`, `index`, `value`) VALUES (?,'#CASHPOINTS',0,?) ON DUPLICATE KEY UPDATE `value`=`value`+?"; $sth = $this->connection->getStatement($sql); $vals = array($targetAccountID, $credits,$credits); return $sth->execute($vals); } Works fine for me... well for the exact error, enable the error reporting from config/error.php : Change $showExceptions = false; to $showExceptions = true;
  23. You can also do something like this, to make it smaller. for (.@i=1; .@i< 26; .@i++){ .@menu$ = .@menu$ +""+ (getd("#AlootSet3ID"+.@i) != 0)?"Item ID "+getd("#AlootSet3ID"+.@i)+" - ("+getitemname(getd("#AlootSet3ID"+.@i))+")":"Add Item";} and followed by switch(select(.@menu$)){ //Do something here.} or @option = select(.@menu$);//Do Something with @option, @option=1, if selected 1st option and so on.
  24. 2014-02-05: http://k3dt.eu/Ragexe/unpacked/2014-02-05bRagexe.exe.zip (Works well, personally tested)
×
×
  • Create New...

Important Information

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