Jump to content

Hyoru

Members
  • Posts

    122
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Hyoru

  1. There it is. 5420,Mask_Of_Ifrit,Mask Of Ifrit,4,,,0,,8,,0,0xFFFFFFFE,7,2,769,,70,0,421,{ bonus bStr,5; bonus bLuk,5; bonus bMdef,5; bonus bAtkRate,4; bonus2 bSubEle,Ele_Fire,10; bonus2 bSubEle,Ele_Water,-10; skill "MG_SIGHT",1; if(Class==Job_Stalker) { bonus bInt,12; bonus bDex,12; } if(Class==Job_Ninja) { bonus bMaxHPrate,20; bonus bInt,10; } if(Class==Job_Assassin_Cross) { bonus bInt,20; bonus bCastrate,-20; if(isequipped(13027)) { bonus bDelayRate,-20; } } },{},{} Why so many bonuses!? Dear God... Btw, I already tested it. Working 100%. @sikiro At least try to understand his question before posting.
  2. Check your db/pre-re or re/skill_db.txt Should have: //**** // Kagerou & Oboro 3001,0,6,4,0,0,0,1,1,no,0,0,0,none,0,0x4, KO_YAMIKUMO,Shadow Hiding 3002,0,0,0,0,0,0,5,0,no,0,0,0,weapon,0,0x0, KO_RIGHT,Right Hand Mastery 3003,0,0,0,0,0,0,5,0,no,0,0,0,weapon,0,0x0, KO_LEFT,Left Hand Mastery 3004,3:4:5:6:7,8,1,-1,0,0,5,-2,no,0,0,0,weapon,0,0x0, KO_JYUMONJIKIRI,Cross Slash 3005,2,6,1,-1,0,0,5,1,no,0,0,0,weapon,0,0x0, KO_SETSUDAN,Soul Cutter 3006,7:8:9:10:11,6,2,-1,0x42,2,5,1,no,0,0,0,weapon,0,0x0, KO_BAKURETSU,Kunai Explosion 3007,0,6,4,-1,0x42,4:4:4:4:5,5,1,no,0,0,0,weapon,0,0x0, KO_HAPPOKUNAI,Kunai Splash 3008,11,8,2,0,0x56,1:1:1:1:1:1:1:1:1:2,10,-10,no,0,0,0,misc,0,0x0, KO_MUCHANAGE,Rapid Throw 3009,9:10:11:12:13,8,2,-1,0x2,3,5,-5,no,0,0,0,weapon,0,0x0, KO_HUUMARANKA,Swirling Petal 3010,3,6,4,0,0x52,0,5,1,no,0,0x80,0,weapon,0,0x10, KO_MAKIBISHI,Makibishi 3011,0,6,4,0,0x1,0,5,0,yes,0,0,0,none,0,0x0, KO_MEIKYOUSISUI,Pure Soul 3012,0,6,4,0,0x1,0,5,0,no,0,0,1,none,3:4:5:6:7,0x0, KO_ZANZOU,Illusion - Shadow 3013,5,6,1,0,0x1,0,5,0,no,0,0,0,none,0,0x0, KO_KYOUGAKU,Illusion - Shock 3014,5,6,1,0,0x1,0,5,0,no,0,0,0,none,0,0x0, KO_JYUSATSU,Illusion - Death 3015,0,6,4,3,0x1,0,1,1,no,0,0,0,none,0,0x0, KO_KAHU_ENTEN,Fire Charm 3016,0,6,4,1,0x1,0,1,1,no,0,0,0,none,0,0x0, KO_HYOUHU_HUBUKI,Ice Charm 3017,0,6,4,4,0x1,0,1,1,no,0,0,0,none,0,0x0, KO_KAZEHU_SEIRAN,Wind Charm 3018,0,6,4,2,0x1,0,1,1,no,0,0,0,none,0,0x0, KO_DOHU_KOUKAI,Earth Charm 3019,11,6,1,0,0,0,1,1,no,0,0,0,magic,0,0x0, KO_KAIHOU,Release Ninja Spell 3020,7,6,2,0,0,0,1,1,yes,0,0,0,magic,0,0x0, KO_ZENKAI,Cast Ninja Spell 3021,5:6:7:8:9,6,16,0,0x1,0,5,1,no,0,0,0,none,0,0x0, KO_GENWAKU,Illusion - Bewitch 3022,0,6,4,0,0x1,0,5,0,no,0,0,0,none,0,0x0, KO_IZAYOI,16th Night 3023,0,6,4,0,0x3,2:3:4:5:6,5,0,no,0,0,0,none,0,0x0, KG_KAGEHUMI,Shadow Trampling 3024,7,6,1,0,0x1,0,5,1,no,0,0,0,none,0,0x0, KG_KYOMU,Empty Shadow 3025,7,6,16,0,0x1,0,5,1,no,0,0,0,none,0,0x0, KG_KAGEMUSYA,Shadow Warrior 3026,7,6,16,0,0x1,0,5,1,no,0,0,0,none,0,0x0, OB_ZANGETSU,Distorted Crescent 3027,7,6,16,0,0x1,0,5,1,no,0,0,0,none,0,0x0, OB_OBOROGENSOU,Moonlight Fantasy 3028,1,6,4,0,0x2,3,1,1,no,0,0,0,weapon,0,0x0, OB_OBOROGENSOU_TRANSITION_ATK,Moonlight Fantasy Transition Attack 3029,7,6,1,0,0x1,0,5,0,no,0,0,0,none,0,0x0, OB_AKAITSUKI,Ominous Moonlight Or skill_tree.txt: //Kagerou 4211,1,9,0,0,0,0,0,0,0,0,0,0 //NV_BASIC#Basic Skill# 4211,142,1,0,0,0,0,0,0,0,0,0,0 //NV_FIRSTAID#First Aid# 4211,522,10,0,0,0,0,0,0,0,0,0,0 //NJ_TOBIDOUGU#NJ_TOBIDOUGU# 4211,523,10,522,1,0,0,0,0,0,0,0,0 //NJ_SYURIKEN#NJ_SYURIKEN# 4211,524,5,523,5,0,0,0,0,0,0,0,0 //NJ_KUNAI#NJ_KUNAI# 4211,525,5,522,5,524,5,0,0,0,0,0,0 //NJ_HUUMA#NJ_HUUMA# 4211,526,10,522,10,525,5,0,0,0,0,0,0 //NJ_ZENYNAGE#NJ_ZENYNAGE# 4211,527,5,0,0,0,0,0,0,0,0,0,0 //NJ_TATAMIGAESHI#NJ_TATAMIGAESHI# 4211,528,10,529,1,0,0,0,0,0,0,0,0 //NJ_KASUMIKIRI#NJ_KASUMIKIRI# 4211,529,5,527,1,0,0,0,0,0,0,0,0 //NJ_SHADOWJUMP#NJ_SHADOWJUMP# 4211,530,5,528,5,0,0,0,0,0,0,0,0 //NJ_KIRIKAGE#NJ_KIRIKAGE# 4211,531,5,529,5,0,0,0,0,0,0,0,0 //NJ_UTSUSEMI#NJ_UTSUSEMI# 4211,532,10,531,4,530,3,543,1,0,0,0,0 //NJ_BUNSINJYUTSU#NJ_BUNSINJYUTSU# 4211,533,10,0,0,0,0,0,0,0,0,0,0 //NJ_NINPOU#NJ_NINPOU# 4211,534,10,533,1,0,0,0,0,0,0,0,0 //NJ_KOUENKA#NJ_KOUENKA# 4211,535,10,534,5,0,0,0,0,0,0,0,0 //NJ_KAENSIN#NJ_KAENSIN# 4211,536,5,533,10,535,7,0,0,0,0,0,0 //NJ_BAKUENRYU#NJ_BAKUENRYU# 4211,537,10,533,1,0,0,0,0,0,0,0,0 //NJ_HYOUSENSOU#NJ_HYOUSENSOU# 4211,538,10,537,5,0,0,0,0,0,0,0,0 //NJ_SUITON#NJ_SUITON# 4211,539,5,533,10,538,7,0,0,0,0,0,0 //NJ_HYOUSYOURAKU#NJ_HYOUSYOURAKU# 4211,540,10,533,1,0,0,0,0,0,0,0,0 //NJ_HUUJIN#NJ_HUUJIN# 4211,541,5,540,5,0,0,0,0,0,0,0,0 //NJ_RAIGEKISAI#NJ_RAIGEKISAI# 4211,542,5,533,10,541,5,0,0,0,0,0,0 //NJ_KAMAITACHI#NJ_KAMAITACHI# 4211,543,5,533,5,0,0,0,0,0,0,0,0 //NJ_NEN#NJ_NEN# 4211,544,10,522,7,530,5,543,1,0,0,0,0 //NJ_ISSEN#NJ_ISSEN# 4211,410,1,0,0,0,0,0,0,0,0,0,0 //WE_CALLBABY#Call Baby# 4211,3001,1,530,5,0,0,0,0,0,0,0,0 //KO_YAMIKUMO## 4211,3002,5,0,0,0,0,0,0,0,0,0,0 //KO_RIGHT## 4211,3003,5,0,0,0,0,0,0,0,0,0,0 //KO_LEFT## 4211,3004,5,3001,1,0,0,0,0,0,0,0,0 //KO_JYUMONJIKIRI## 4211,3005,5,3004,2,0,0,0,0,0,0,0,0 //KO_SETSUDAN## 4211,3006,5,524,5,0,0,0,0,0,0,0,0 //KO_BAKURETSU## 4211,3007,5,3006,1,0,0,0,0,0,0,0,0 //KO_HAPPOKUNAI## 4211,3008,10,3010,3,0,0,0,0,0,0,0,0 //KO_MUCHANAGE## 4211,3009,5,525,5,0,0,0,0,0,0,0,0 //KO_HUUMARANKA## 4211,3010,5,526,1,0,0,0,0,0,0,0,0 //KO_MAKIBISHI## 4211,3011,5,533,10,0,0,0,0,0,0,0,0 //KO_MEIKYOUSISUI## 4211,3012,5,531,1,0,0,0,0,0,0,0,0 //KO_ZANZOU## 4211,3013,5,3021,2,0,0,0,0,0,0,0,0 //KO_KYOUGAKU## 4211,3014,5,3013,3,0,0,0,0,0,0,0,0 //KO_JYUSATSU## 4211,3015,1,0,0,0,0,0,0,0,0,0,0 //KO_KAHU_ENTEN## 4211,3016,1,0,0,0,0,0,0,0,0,0,0 //KO_HYOUHU_HUBUKI## 4211,3017,1,0,0,0,0,0,0,0,0,0,0 //KO_KAZEHU_SEIRAN## 4211,3018,1,0,0,0,0,0,0,0,0,0,0 //KO_DOHU_KOUKAI## 4211,3019,1,3015,1,3016,1,3017,1,3018,1,0,0 //KO_KAIHOU## 4211,3020,1,3019,1,3022,1,0,0,0,0,0,0 //KO_ZENKAI## 4211,3021,5,531,1,0,0,0,0,0,0,0,0 //KO_GENWAKU## 4211,3022,5,533,5,0,0,0,0,0,0,0,0 //KO_IZAYOI## 4211,3023,5,3012,1,0,0,0,0,0,0,0,0 //KG_KAGEHUMI## 4211,3024,5,3023,2,0,0,0,0,0,0,0,0 //KG_KYOMU## 4211,3025,5,3024,3,0,0,0,0,0,0,0,0 //KG_KAGEMUSYA## //Oboro 4212,1,9,0,0,0,0,0,0,0,0,0,0 //NV_BASIC#Basic Skill# 4212,142,1,0,0,0,0,0,0,0,0,0,0 //NV_FIRSTAID#First Aid# 4212,522,10,0,0,0,0,0,0,0,0,0,0 //NJ_TOBIDOUGU#NJ_TOBIDOUGU# 4212,523,10,522,1,0,0,0,0,0,0,0,0 //NJ_SYURIKEN#NJ_SYURIKEN# 4212,524,5,523,5,0,0,0,0,0,0,0,0 //NJ_KUNAI#NJ_KUNAI# 4212,525,5,522,5,524,5,0,0,0,0,0,0 //NJ_HUUMA#NJ_HUUMA# 4212,526,10,522,10,525,5,0,0,0,0,0,0 //NJ_ZENYNAGE#NJ_ZENYNAGE# 4212,527,5,0,0,0,0,0,0,0,0,0,0 //NJ_TATAMIGAESHI#NJ_TATAMIGAESHI# 4212,528,10,529,1,0,0,0,0,0,0,0,0 //NJ_KASUMIKIRI#NJ_KASUMIKIRI# 4212,529,5,527,1,0,0,0,0,0,0,0,0 //NJ_SHADOWJUMP#NJ_SHADOWJUMP# 4212,530,5,528,5,0,0,0,0,0,0,0,0 //NJ_KIRIKAGE#NJ_KIRIKAGE# 4212,531,5,529,5,0,0,0,0,0,0,0,0 //NJ_UTSUSEMI#NJ_UTSUSEMI# 4212,532,10,531,4,530,3,543,1,0,0,0,0 //NJ_BUNSINJYUTSU#NJ_BUNSINJYUTSU# 4212,533,10,0,0,0,0,0,0,0,0,0,0 //NJ_NINPOU#NJ_NINPOU# 4212,534,10,533,1,0,0,0,0,0,0,0,0 //NJ_KOUENKA#NJ_KOUENKA# 4212,535,10,534,5,0,0,0,0,0,0,0,0 //NJ_KAENSIN#NJ_KAENSIN# 4212,536,5,533,10,535,7,0,0,0,0,0,0 //NJ_BAKUENRYU#NJ_BAKUENRYU# 4212,537,10,533,1,0,0,0,0,0,0,0,0 //NJ_HYOUSENSOU#NJ_HYOUSENSOU# 4212,538,10,537,5,0,0,0,0,0,0,0,0 //NJ_SUITON#NJ_SUITON# 4212,539,5,533,10,538,7,0,0,0,0,0,0 //NJ_HYOUSYOURAKU#NJ_HYOUSYOURAKU# 4212,540,10,533,1,0,0,0,0,0,0,0,0 //NJ_HUUJIN#NJ_HUUJIN# 4212,541,5,540,5,0,0,0,0,0,0,0,0 //NJ_RAIGEKISAI#NJ_RAIGEKISAI# 4212,542,5,533,10,541,5,0,0,0,0,0,0 //NJ_KAMAITACHI#NJ_KAMAITACHI# 4212,543,5,533,5,0,0,0,0,0,0,0,0 //NJ_NEN#NJ_NEN# 4212,544,10,522,7,530,5,543,1,0,0,0,0 //NJ_ISSEN#NJ_ISSEN# 4212,410,1,0,0,0,0,0,0,0,0,0,0 //WE_CALLBABY#Call Baby# 4212,3001,1,530,5,0,0,0,0,0,0,0,0 //KO_YAMIKUMO## 4212,3002,5,0,0,0,0,0,0,0,0,0,0 //KO_RIGHT## 4212,3003,5,0,0,0,0,0,0,0,0,0,0 //KO_LEFT## 4212,3004,5,3001,1,0,0,0,0,0,0,0,0 //KO_JYUMONJIKIRI## 4212,3005,5,3004,2,0,0,0,0,0,0,0,0 //KO_SETSUDAN## 4212,3006,5,524,5,0,0,0,0,0,0,0,0 //KO_BAKURETSU## 4212,3007,5,3006,1,0,0,0,0,0,0,0,0 //KO_HAPPOKUNAI## 4212,3008,10,3010,3,0,0,0,0,0,0,0,0 //KO_MUCHANAGE## 4212,3009,5,525,5,0,0,0,0,0,0,0,0 //KO_HUUMARANKA## 4212,3010,5,526,1,0,0,0,0,0,0,0,0 //KO_MAKIBISHI## 4212,3011,5,533,10,0,0,0,0,0,0,0,0 //KO_MEIKYOUSISUI## 4212,3012,5,531,1,0,0,0,0,0,0,0,0 //KO_ZANZOU## 4212,3013,5,3021,2,0,0,0,0,0,0,0,0 //KO_KYOUGAKU## 4212,3014,5,3013,3,0,0,0,0,0,0,0,0 //KO_JYUSATSU## 4212,3015,1,0,0,0,0,0,0,0,0,0,0 //KO_KAHU_ENTEN## 4212,3016,1,0,0,0,0,0,0,0,0,0,0 //KO_HYOUHU_HUBUKI## 4212,3017,1,0,0,0,0,0,0,0,0,0,0 //KO_KAZEHU_SEIRAN## 4212,3018,1,0,0,0,0,0,0,0,0,0,0 //KO_DOHU_KOUKAI## 4212,3019,1,3015,1,3016,1,3017,1,3018,1,0,0 //KO_KAIHOU## 4212,3020,1,3019,1,3022,1,0,0,0,0,0,0 //KO_ZENKAI## 4212,3021,5,531,1,0,0,0,0,0,0,0,0 //KO_GENWAKU## 4212,3022,5,533,5,0,0,0,0,0,0,0,0 //KO_IZAYOI## 4212,3026,5,3021,1,0,0,0,0,0,0,0,0 //OB_ZANGETSU## 4212,3027,5,3029,3,0,0,0,0,0,0,0,0 //OB_OBOROGENSOU## 4212,3029,5,3026,2,0,0,0,0,0,0,0,0 //OB_AKAITSUKI##
  3. Check your System/itemInfo.lub: [5778] = { unidentifiedDisplayName = "Hat", unidentifiedResourceName = "캡", unidentifiedDescriptionName = { "Unknown Item, can be identified by using a ^6666CCMagnifier^000000." }, identifiedDisplayName = "Turkey On Your Head", identifiedResourceName = "파란아라라모자", identifiedDescriptionName = { "Having saved her from the roasting pan this Turkey now rests comfortably on your head.", "-------------------------", "STR +2", "-------------------------", "Adds a chance to increases ASPD by 5% for 10 seconds when dealing physical attacks.", "-------------------------", "Class:^6666CC Headgear^000000", "Defense:^0000FF 3^000000", "Location:^6666CC Upper^000000", "Weight:^009900 10^000000", "Level Requirement:^009900 1^000000", "Jobs:^6666CC All classes^000000" }, slotCount = 0, ClassNum = 656 },
  4. Hi. How can I increase the limit (3 to 5) of Spider Web? Thanks in advanced
  5. Hi! I'm using this source mod: if ( sd && tsc && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_ROGUE && rand()%100 < 15 && ( skill_id == RG_STRIPWEAPON && tsc->data[SC_CP_WEAPON] || skill_id == RG_STRIPSHIELD && tsc->data[SC_CP_SHIELD] || skill_id == RG_STRIPARMOR && tsc->data[SC_CP_ARMOR] || skill_id == RG_STRIPHELM && tsc->data[SC_CP_HELM] ) ) { int item_id = 7139; // Glistening Coat int ii; ARR_FIND( 0, MAX_INVENTORY, ii, sd->status.inventory[ii].nameid == item_id ); if ( ii < MAX_INVENTORY ) { pc_delitem( sd, ii, 1, 0, 0, LOG_TYPE_CONSUME); switch ( skill_id ) { case RG_STRIPWEAPON: status_change_end( bl, SC_CP_WEAPON, INVALID_TIMER ); sc_start( NULL, bl, SC_STRIPWEAPON, 100, skill_lv, d ); break; case RG_STRIPSHIELD: status_change_end( bl, SC_CP_SHIELD, INVALID_TIMER ); sc_start( NULL, bl, SC_STRIPSHIELD, 100, skill_lv, d ); break; case RG_STRIPARMOR: status_change_end( bl, SC_CP_ARMOR, INVALID_TIMER ); sc_start( NULL, bl, SC_STRIPARMOR, 100, skill_lv, d ); break; case RG_STRIPHELM: status_change_end( bl, SC_CP_HELM, INVALID_TIMER ); sc_start( NULL, bl, SC_STRIPHELM, 100, skill_lv, d ); break; } clif_skill_nodamage( src, bl, skill_id, skill_lv, i ); break; } } This one consumes 1 Glistening Coat just when strip works, I need one to consumes every time, even if it fail. And how can I display a message if the Stalker is Linked but doest have the Glistening Coat? Thanks in Advanced!
  6. There is some patch that works on updated rAthena? I need a @warp and @go delay for getting hit or hitting other players. If someone can, help me please! Thanks in Advanced.
  7. Hyoru

    Item Trade

    Yes I did. Trade and drop works but guild storage isn't working. item_trade.txt doesn't exist anymore. I'm using an updated version. Ohhh... My bad, this is the correct: nogstorage: true Thanks all btw!
  8. Hyoru

    Item Trade

    I'm trying to block Poring coin to be Traded, Dropped, Vend and can't put in guildstorage.. Here is my item_db.conf: { Id: 7539 AegisName: "Poring_Coin" Name: "Poring Coin" Type: 3 Buy: 0 Trade: { nodrop: true notrade: true } I've tried guildstorage: false noguildstorage: true Not working at all. Thanks in Advanced.
  9. Hello! I need an NPC that trades 100 #invasionpoint to 1 Poring Coin ( ID: 7539 ). Thanks in Advanced.
  10. If you got Gravity Error then its sprite problem. But if failed I don't know. Try to just move those files from db/re to db/pre-re and try it again!
  11. If your ragnarok is updated you already have their sprites. Just add them at mob_db and mob_skill_db. I did that and works fine to me. Don't forget to reload your server or use the command @reloadmobdb.
  12. I need the V. Armor, Shield, Manteau and Shoes only. Thanks!
  13. Are you using pre-re? You can try moving the Bio Lab 4 Monsters in db/re/mob_db.txt and mob_skill_db.txt to your db/pre-re/ mob_db.txt and mob_skill_db.txt
  14. I see Thats why i'm getting errors and Jaypee Vote for points isn't working. I got the version of the Theme now. Thanks for the help!
  15. I just fixed it! Here what I did wrong: Wrong: Add(4,18247,1,0,25,0,0,0,0); Right: Add(4,18247,1,0,25); But Thanks anyway!
  16. Euphy's Quest Shop, I can't Add items that uses Cash only?
  17. Thanks a lot, man! Solved. And you know where can I change that green color?
  18. Hey! I'm using: Green Free FluxCP link I need help to edit the left menu, MainMenuLabel HomeLabel ... etc I cant find the archive to edit :x Thanks Advanced!
  19. Hyoru

    FluxCP Error

    @Conflicts it works! Thanks a lot!
  20. Hyoru

    FluxCP Error

    Sorry. Here: <?php if (!defined('FLUX_ROOT')) exit; $this->loginRequired(); $title = Flux::message('AccountViewTitle'); require_once 'Flux/TemporaryTable.php'; if($server->isRenewal) { $fromTables = array("{$server->charMapDatabase}.item_db_re", "{$server->charMapDatabase}.item_db2_re"); } else { $fromTables = array("{$server->charMapDatabase}.item_db", "{$server->charMapDatabase}.item_db2"); } $tableName = "{$server->charMapDatabase}.items"; $tempTable = new Flux_TemporaryTable($server->connection, $tableName, $fromTables); $creditsTable = Flux::config('FluxTables.CreditsTable'); $creditColumns = 'credits.balance, credits.last_donation_date, credits.last_donation_amount'; $createTable = Flux::config('FluxTables.AccountCreateTable'); $createColumns = 'created.confirmed, created.confirm_code, created.reg_date'; $isMine = false; $accountID = $params->get('id'); $account = false; if (!$accountID || $accountID == $session->account->account_id) { $isMine = true; $accountID = $session->account->account_id; $account = $session->account; } if (!$isMine) { // Allowed to view other peoples' account information? if (!$auth->allowedToViewAccount) { $this->deny(); } $sql = "SELECT login.*, {$creditColumns}, {$createColumns} FROM {$server->loginDatabase}.login "; $sql .= "LEFT OUTER JOIN {$server->loginDatabase}.{$creditsTable} AS credits ON login.account_id = credits.account_id "; $sql .= "LEFT OUTER JOIN {$server->loginDatabase}.{$createTable} AS created ON login.account_id = created.account_id "; $sql .= "WHERE login.sex != 'S' AND login.group_id >= 0 AND login.account_id = ? LIMIT 1"; $sth = $server->connection->getStatement($sql); $sth->execute(array($accountID)); // Account object. $account = $sth->fetch(); if ($account) { $title = sprintf(Flux::message('AccountViewTitle2'), $account->userid); } } else { $title = Flux::message('AccountViewTitle3'); } $level = AccountLevel::getGroupLevel($account->group_id); $banSuperior = $account && (($level > $session->account->group_level && $auth->allowedToBanHigherPower) || $level <= $session->account->group_level); $canTempBan = !$isMine && $banSuperior && $auth->allowedToTempBanAccount; $canPermBan = !$isMine && $banSuperior && $auth->allowedToPermBanAccount; $tempBanned = $account && $account->unban_time > 0; $permBanned = $account && $account->state == 5; $showTempBan = !$isMine && !$tempBanned && !$permBanned && $auth->allowedToTempBanAccount; $showPermBan = !$isMine && !$permBanned && $auth->allowedToPermBanAccount; $showUnban = !$isMine && ($tempBanned && $auth->allowedToTempUnbanAccount) || ($permBanned && $auth->allowedToPermUnbanAccount); if($account->vip_time != '0'){ $vipexpiretime = $account->vip_time; $dt = new DateTime("@$vipexpiretime"); $vipexpires = 'Expires '.$dt->format('Y-m-d'); } elseif ($account->vip_time == '0'){ $vipexpires = 'Standard Account'; } else {$vipexpires = 'Unknown';} if (count($_POST) && $account) { $reason = (string)$params->get('reason'); if ($params->get('tempban') && ($tempBanDate=$params->get('tempban_date'))) { if ($canTempBan) { if ($server->loginServer->temporarilyBan($session->account->account_id, $reason, $account->account_id, $tempBanDate)) { $formattedDate = $this->formatDateTime($tempBanDate); $session->setMessageData("Account has been temporarily banned until $formattedDate."); $this->redirect($this->url('account', 'view', array('id' => $account->account_id))); } else { $errorMessage = Flux::message('AccountTempBanFailed'); } } else { $errorMessage = Flux::message('AccountTempBanUnauth'); } } elseif ($params->get('permban')) { if ($canPermBan) { if ($server->loginServer->permanentlyBan($session->account->account_id, $reason, $account->account_id)) { $session->setMessageData("Account has been permanently banned."); $this->redirect($this->url('account', 'view', array('id' => $account->account_id))); } else { $errorMessage = Flux::message('AccountPermBanFailed'); } } else { $errorMessage = Flux::message('AccountPermBanUnauth'); } } elseif ($params->get('unban')) { $tbl = Flux::config('FluxTables.AccountCreateTable'); $sql = "SELECT account_id FROM {$server->loginDatabase}.$tbl WHERE confirmed = 0 AND account_id = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array($account->account_id)); $confirm = $sth->fetch(); $sql = "UPDATE {$server->loginDatabase}.$tbl SET confirmed = 1, confirm_expire = NULL WHERE account_id = ?"; $sth = $server->connection->getStatement($sql); if ($tempBanned && $auth->allowedToTempUnbanAccount && $server->loginServer->unban($session->account->account_id, $reason, $account->account_id)) { if ($confirm) { $sth->execute(array($account->account_id)); } $session->setMessageData(Flux::message('AccountLiftTempBan')); $this->redirect($this->url('account', 'view', array('id' => $account->account_id))); } elseif ($permBanned && $auth->allowedToPermUnbanAccount && $server->loginServer->unban($session->account->account_id, $reason, $account->account_id)) { if ($confirm) { $sth->execute(array($account->account_id)); } $session->setMessageData(Flux::message('AccountLiftPermBan')); $this->redirect($this->url('account', 'view', array('id' => $account->account_id))); } else { $errorMessage = Flux::message('AccountLiftBanUnauth'); } } } $banInfo = false; if ($account) { $banInfo = $server->loginServer->getBanInfo($account->account_id); } $characters = array(); foreach ($session->getAthenaServerNames() as $serverName) { $athena = $session->getAthenaServer($serverName); $sql = "SELECT ch.*, guild.name AS guild_name, guild.emblem_len AS guild_emblem_len "; $sql .= "FROM {$athena->charMapDatabase}.`char` AS ch "; $sql .= "LEFT OUTER JOIN {$athena->charMapDatabase}.guild ON guild.guild_id = ch.guild_id "; $sql .= "WHERE ch.account_id = ? ORDER BY ch.char_num ASC"; $sth = $server->connection->getStatement($sql); $sth->execute(array($accountID)); $chars = $sth->fetchAll(); $characters[$athena->serverName] = $chars; } $col = "storage.*, items.name_japanese, items.type, items.slots, c.char_id, c.name AS char_name"; $sql = "SELECT $col FROM {$server->charMapDatabase}.storage "; $sql .= "LEFT JOIN {$server->charMapDatabase}.items ON items.id = storage.nameid "; $sql .= "LEFT JOIN {$server->charMapDatabase}.`char` AS c "; $sql .= "ON c.char_id = IF(storage.card0 IN (254, 255), "; $sql .= "IF(storage.card2 < 0, storage.card2 + 65536, storage.card2) "; $sql .= "| (storage.card3 << 16), NULL) "; $sql .= "WHERE storage.account_id = ? "; if (!$auth->allowedToSeeUnknownItems) { $sql .= 'AND storage.identify > 0 '; } if ($account) { $sql .= "ORDER BY storage.nameid ASC, storage.identify DESC, "; $sql .= "storage.attribute DESC, storage.refine ASC"; $sth = $server->connection->getStatement($sql); $sth->execute(array($account->account_id)); $items = $sth->fetchAll(); $cards = array(); if ($items) { $cardIDs = array(); foreach ($items as $item) { $item->cardsOver = -$item->slots; if ($item->card0) { $cardIDs[] = $item->card0; $item->cardsOver++; } if ($item->card1) { $cardIDs[] = $item->card1; $item->cardsOver++; } if ($item->card2) { $cardIDs[] = $item->card2; $item->cardsOver++; } if ($item->card3) { $cardIDs[] = $item->card3; $item->cardsOver++; } if ($item->card0 == 254 || $item->card0 == 255 || $item->card0 == -256 || $item->cardsOver < 0) { $item->cardsOver = 0; } } if ($cardIDs) { $ids = implode(',', array_fill(0, count($cardIDs), '?')); $sql = "SELECT id, name_japanese FROM {$server->charMapDatabase}.items WHERE id IN ($ids)"; $sth = $server->connection->getStatement($sql); $sth->execute($cardIDs); $temp = $sth->fetchAll(); if ($temp) { foreach ($temp as $card) { $cards[$card->id] = $card->name_japanese; } } } } $itemAttributes = Flux::config('Attributes')->toArray(); } ?>
  21. Hyoru

    FluxCP Error

    I Have no idea what it is. This happens when I click in "My Account" Please Help!
  22. Hyoru

    Job Master

    Hey guys, I need a Job Master that doesnt Reborn, like this: Novice > Archer > Hunter > Sniper Skip rebirth, High class... novice > 1stClass > 2ndClass > TransClass and then over. I've got a pre-re server, no 3rd . Well, Thanks advanced!
×
×
  • Create New...