Jump to content

Haruka Mayumi

Members
  • Posts

    485
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by Haruka Mayumi

  1. else { @phunter_points = 0; warp "pvp_n_1-2",0,0; }
  2. this happens because there are data types that can make your variable loss some data.. you must learn what are data types first and what are their scopes.. needless to say, the warning already told you the error.. a 'double' data type can store decimal number while an 'int' type can only store integers(whole number).. So with that in mind, you cannot convert '10.5' into an integer because if you do so, it will result into a whole number '10' leaving the '.5' behind which will cause a loss of data.. to fix things like this.. you simply need to make sure that you are passing a data to it's correct data type..
  3. Haruka Mayumi

    FluxCP

    You might be using another vps for your web. and the account you are using for is permitted for localhost only as it says 'admin@localhost'.. make sure that your account is either permitted to your web IP(51.51.51.51) or make the account permitted to all ip ( % ). also don't bind the mysql to localhost. you can add another bind for your webhost.
  4. I voted yes! but when it comes to general demand for such function?. I guess NO.. I mean you will snip a screen shot from some RO and you will upload it for the search.. the user might snip the npc on awkward angle and would make it harder for you.. Also, search by image is not something you would use most of the time.
  5. // Limits for the monster database #define MIN_MOB_DB 1000 #define MAX_MOB_DB 3999 #define MIN_MOB_DB2 20020 #define MAX_MOB_DB2 31999 Also, Don't use the same name.. it should be like this Body: - Mob: TURTLE_GENERAL_HARD Sprite: TURTLE_GENERAL 20020,TURTLE_GENERAL_HARD,Turtle General,Turtle General,
  6. make sure that you check your scripts_guild.conf when using woe_controller.. you simply need to disable 2 script -npc: npc/guild/agit_controller.txt -npc: npc/guild2/agit_start_se.txt the rest are enabled.
  7. OnClock1900: .@map$ = .townMap$[rand ( getarraysize ( .townMap$ ) - 1 )]; .@mins = .sleep / 60000; announce "[World Boss] A World Boss will appear in " + .@mins + " minutes", bc_all, 0xFF0000; sleep .sleep; monster .@map$, 153, 175, "Devils Pet", .wBossId, 1, strnpcinfo(3) + "::OnWBossDied"; announce "[World Boss] A World Boss appeared in " + .@map$ + " to avenge all those dead monsters adventurers killed!", bc_all, 0xFF0000; end; OnWBossDied: announce "[World Boss] " + strcharinfo(0) + " killed the World Boss! Congratulations!", bc_all, 0xFF0000; for(.@i=0;.@i<getarraysize(.rewardId);.@i++) getitem .rewardId[.@i], .rewardCount[.@i]; end; OnInit: setarray .townMap$[0],"prontera","geffen"; .wBossId = 1931; // monsterID setarray .rewardId[0],7828,501,502,503; // reward ID setarray .rewardCount[0],50,1,2,3; // how many rewards .sleep = 60000; // 60000ms = 1min end;
  8. you need runtime packages to run the game.. it depends on client dates.. 2018 client as far as i remember need 2015+ vcredist.. https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/
  9. they are being save under src/map/script_constants.hpp now
  10. https://github.com/rathena/rathena/wiki/Adding-New-Bonuses this one is kind of outdated. but when i have some free time. i'll update this wiki.
  11. If you fully read and tried to understand what i wrote.. you just simply need to set the "jobchange_level" and/or "jobchange_level_3rd" character variable when they changed job.. sample script is /* {job changing script} */ .@ea = eaclass(); if(.@eac&EAJL_2) set jobchange_level,50;
  12. This is the problem for instant job scripts that they forgot(or possibly don't know) to set jobchange_level/jobchange_level_3rd.. leaving them to 1 when their job is changed. there's a player variable which are call "jobchange_level" for 2nd job tree, and "jobchange_level_3rd" for 3rd job tree. you will set them if you are using an instant job script.. to force the players use their 1st job points to 1st job tree only.. you must set their jobchange_level to their job level when they change into a 2nd job... Sample would be you instant job from Novice to Lord Knight 99/70.. you must set jobchange_level to 50 if you want to force 49 points to your Swordsman Tree.. another example would be Novice to Rune Knight.. you will set the jobchange_level to 50 and you must also set the jobchange_level_3rd to 70 which is the max job level of the lord knight.
  13. this can be done by creating a new item_bonus such as bonus2 bReduceReqZeny,MC_MAMMONITE,1000;(Flat 1000 Zeny) or bonus bReduceReqZenyPer,MC_MAMMONITE,80;(80%).. After creating that. you can simply just add it as random option or add it via autobonus or an item.
  14. *showscript command
  15. ./configure --with-maxconn=4096 --enable-packetver=20180621
  16. Now they look funny and amazing.. You can finally name your character Gandalf Dumbledore.
  17. The problem for this one is you also don't allow vip characters to login since the group id for VIP is 5.. This can be bypass by the gm too if you enable the move character from the char config.. + /*One character GM Account [Cookie] + *Character Select GM Account Restriction. + */ + if( slot != 0 && sd->group_id > 2 ){ + chclif_reject(fd, 0); // rejected from server + } + For the one below, there are GM accounts below group id 10 which are 2 = Support, 3 = Script Manager(although they can be configure).. Admin account is 99.. Vip account is 5. + //GM Account Restriction 1 Slot only [Cookie] + if( slot != 0 && sd->group_id > 10 ){ // change 10 to minimum gm level + return -2; // character account limit exceeded + }
  18. No problem.. just a reminder that if you are using cookie-rae diff.. you will most likely encounter the bug wherein VIP accounts would not be able to login any character greater than first slot which is kind of worse than the bug of the previous source modification.. They would be able to create another character if the move character is enabled, they will simply move the first slot character and then create another character on first slot..
  19. The diff i sent you will let your ADMIN account to create character more than 1.. only lower GM's are not allowed to create. you probably create another character on admin account.
  20. That modification has a bug wherein once you became a vip.. you are not also allowed to create characters more than 1. This modification fix that bug. // check the number of already existing chars in this account if( SQL_ERROR == Sql_Query(sql_handle, "SELECT 1 FROM `%s` WHERE `account_id` = '%d'", schema_config.char_db, sd->account_id) ) Sql_ShowDebug(sql_handle); + if( sd->group_id != 5 && sd->group_id > 0 && sd->group_id < 99 && Sql_NumRows(sql_handle) >= 1 ) + return -2; // character account limit exceeded #ifdef VIP_ENABLE if( Sql_NumRows(sql_handle) >= MAX_CHARS ) return -2; // character account limit exceeded
  21. add "break" on your case. - cashshop Usables Shop -1,14003:15,12902:100 - cashshop Costumes Shop -1,20404:1000,20459:1000,31057:1000,31062:1000,31178:1000,31199:1000 payon,171,142,4 script Cash Shop 874,{ switch(select("Usables:Costumes:Cancel")) { case 1: callshop "Usables Shop", 1; break; case 2: callshop "Costumes Shop", 1; break; case 3: close; } }
  22. make sure that you clean the project before compiling it if you are using another machine when you first compiled this emulator..
  23. This does not mute the player but you can use this https://github.com/rathena/rathena/blob/f350de1e3149b6a60fddf88268443e611c2b4412/conf/battle/client.conf#L14
  24. this is source modification. so i'll be moving it there
  25. you should atleast throw your stylist script on a code box.
×
×
  • Create New...