Jump to content

Azrael-

Members
  • Posts

    23
  • Joined

  • Last visited

Everything posted by Azrael-

  1. Fixed. Solution - Make SELinux Permissive
  2. Having this idk permission thing maybe. Tried solutions from others but doesn't work
  3. https://github.com/rathena/rathena/wiki/Custom_Items
  4. dragonarmorid:dragonmanteauid:dragonshieldid:dragonshoesid:,{ bonus2 bAllStats,5; }
  5. // Structure of Database: // ID:ID:ID:ID,{ Script }
  6. - script #mvp_kill -1,{ OnInit: setarray .t_maps$[0],"moc_pryd06","lhz_dun03","gld2_prt","abbey02","ayo_dun02","lhz_dun04","ra_fild02","xmas_fild01","dic_dun02","beach_dun","iz_dun05","tur_dun04","lhz_dun02","jupe_core","moc_fild22","anthell02","odin_tem03","lhz_dun03","gon_dun03","gef_fild02","thana_boss","gef_fild10","ein_dun02","gef_fild14","moc_pryd04","dew_dun01","in_sphinx5","niflheim","moc_fild17","xmas_dun02","ice_dun03","kh_dun02","treasure02","moc_prydn2","pay_dun04","ra_san05","mosk_dun03","ama_dun03","thor_v03","gef_dun01","mjolnir_04","abyss_03","dic_dun03","prt_sewb4","pay_fild11","gef_dun02","gl_chyard","ra_fild03","ra_fild04","ve_fild01","ve_fild02","lou_dun03","prt_maze03","bra_dun02"; end; OnNPCKillEvent: if ( getmonsterinfo( killedrid, MOB_MVPEXP ) && rand(100) < 90 ) { if ( strcharinfo(3) == .t_maps$ ) { if ( getcharid(1) ) { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { .@partymemberaid[.@c] = $@partymemberaid[.@i]; .@c++; } } getitem 30017, 1, .@partymemberaid[ rand( .@c ) ]; announce "[ System ] : Player ["+ strcharinfo(0) +"] of party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and got reward at "+ strcharinfo(3), bc_all; } else { getitem 30017, 1; announce "[ System ] : Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and got an MVP Badge at "+ strcharinfo(3), bc_all; } } else { if ( strcharinfo(3) == instance_mapname("06guild_01") ) end; if ( getcharid(1) ) { announce "[ System ] : Player ["+ strcharinfo(0) +"] of party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" at "+ strcharinfo(3), bc_all; } else { announce "[ System ] : Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" alone at "+ strcharinfo(3), bc_all; } } } end; }
  7. - script #mvp_kill -1,{ OnNPCKillEvent: if ( getmonsterinfo( killedrid, MOB_MVPEXP )) { if ( strcharinfo(3) == .t_maps$ && rand(100) < 90 ) { if ( getcharid(1) ) { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { .@partymemberaid[.@c] = $@partymemberaid[.@i]; .@c++; } } getitem 30017, 1, .@partymemberaid[ rand( .@c ) ]; announce "[ System ] : Player ["+ strcharinfo(0) +"] of party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and got reward at "+ strcharinfo(3), bc_all; } else { getitem 30017, 1; announce "[ System ] : Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and got an MVP Badge at "+ strcharinfo(3), bc_all; } } else { if ( strcharinfo(3) == instance_mapname("06guild_01") ) end; if ( getcharid(1) ) { announce "[ System ] : Player ["+ strcharinfo(0) +"] of party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" at "+ strcharinfo(3), bc_all; } else { announce "[ System ] : Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" alone at "+ strcharinfo(3), bc_all; } } } OnInit: setarray .t_maps$[0],"moc_pryd06","lhz_dun03","gld2_prt","abbey02","ayo_dun02","lhz_dun04","ra_fild02","xmas_fild01","dic_dun02","beach_dun","iz_dun05","tur_dun04","lhz_dun02","jupe_core","moc_fild22","anthell02","odin_tem03","lhz_dun03","gon_dun03","gef_fild02","thana_boss","gef_fild10","ein_dun02","gef_fild14","moc_pryd04","dew_dun01","in_sphinx5","niflheim","moc_fild17","xmas_dun02","ice_dun03","kh_dun02","treasure02","moc_prydn2","pay_dun04","ra_san05","mosk_dun03","ama_dun03","thor_v03","gef_dun01","mjolnir_04","abyss_03","dic_dun03","prt_sewb4","pay_fild11","gef_dun02","gl_chyard","ra_fild03","ra_fild04","ve_fild01","ve_fild02","lou_dun03","prt_maze03","bra_dun02"; end; }
  8. What do you mean by changing it ? changing the name of it ?
  9. - script Unfro -1,{ OnPCStatCalcEvent: if (readparam(bStr) == 1 ){ bonus2 bResEff,Eff_Freeze,10000; end; } } If str = 1 = 100% Frost Resist
  10. You mean usable item but works like an npc ? Upload this script. Add weapon selection ? Follow the pattern of the script function script RandWeapon { mes "Choose the desired weapon you want"; switch(select("Weapon1:Weapon2")) { case 1: getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<Account ID>}; // Account ID set it to 0 end; case 2: getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<Account ID>}; // Account ID set it to 0 end; } } item_db - Put this on the usable item { callfunc "RandWeapon"; },{},{}
  11. I want to Trigger Status Effect on Soul Breaker Skill. That's All. Example : Triggering Stormy Knight Card Effect on Soul Breaker Skill.
  12. Hi @Cyro, All Ports and IP's on Servers.php are correct. Php Socket Connections is also allowed.
  13. Help me on these because it seems that it's not showing the status correctly. All IP/s correctly inserted on Servers.php Status.php <?php if (!defined('FLUX_ROOT')) exit; $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(); $sqlwoestatus = "SELECT value FROM mapreg WHERE varname = '$\woeStatus' LIMIT 0 , 1"; $sthwoestatus = $loginAthenaGroup->connection->getStatement($sqlwoestatus); $sthwoestatus->execute(); $woestatusresult = $sthwoestatus->fetch(); $serverStatus[$groupName][$serverName] = array( 'loginServerUp' => $loginServerUp, 'charServerUp' => $athenaServer->charServer->isUp(), 'mapServerUp' => $athenaServer->mapServer->isUp(), 'woeStatus' => intval($woestatusresult ? $woestatusresult->value : 0), '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/serverOnline.png') . " />"; $offline = "<img src=". $this->themePath('img/serverOffline.png') . " />"; $woeOnline = "<img src=". $this->themePath('img/woeOnline.png') . " />"; $woeOffline = "<img src=". $this->themePath('img/woeOffline.png') . " />"; foreach ($serverStatus as $privServerName => $gameServers): foreach ($gameServers as $serverName => $gameServer): if ($gameServer['loginServerUp']) { $loginonline = true; } else { $loginonline = false; } if ($gameServer['charServerUp']) { $charonline = true; } else { $charonline = false; } if ($gameServer['mapServerUp']) { $maponline = true; } else { $maponline = false; } $onlinecount = $gameServer['playersOnline']; $woe_status = $gameServer['woeStatus']; endforeach; endforeach; ?>
×
×
  • Create New...