Jump to content

Haruka Mayumi

Members
  • Posts

    477
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by Haruka Mayumi

  1. they are being save under src/map/script_constants.hpp now
  2. 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.
  3. 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;
  4. 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.
  5. 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.
  6. ./configure --with-maxconn=4096 --enable-packetver=20180621
  7. Now they look funny and amazing.. You can finally name your character Gandalf Dumbledore.
  8. 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 + }
  9. 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..
  10. 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.
  11. 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
  12. 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; } }
  13. make sure that you clean the project before compiling it if you are using another machine when you first compiled this emulator..
  14. This does not mute the player but you can use this https://github.com/rathena/rathena/blob/f350de1e3149b6a60fddf88268443e611c2b4412/conf/battle/client.conf#L14
  15. this is source modification. so i'll be moving it there
  16. you should atleast throw your stylist script on a code box.
  17. my bad. it's searchstores with 's' i edited the comment
  18. - script whosell -1,{ OnWhoSellACMD: searchstores 99,1; end; OnInit: bindatcmd "whosell",strnpcinfo(0)+"::OnWhoSellACMD"; end; }
  19. prontera,166,190,4 script Pre-Register Rewards 510,{ if( !#Freebiesa313 && getcharid(3) < 2000275 ){//<<<< THIS ONE TOO set #Freebiesa313,1; mes "Welcome to Arrival RO. Please Take your rewards."; getitembound 12411,2,Bound_Account; getitembound 12264,2,Bound_Account; getitembound 50002,1,Bound_Account; } else { mes "You either have claimed your reward or didn't participate in Pre register Event"; } close; }
  20. getitembound 12411,2,Bound_Account; getitembound 12264,2,Bound_Account; getitembound 50002,1,Bound_Account;
  21. Using logical operator AND (&&) instead of OR (||) for this code. AND && Operator OR || Operator: if (countitem(7060) < 1 && Zeny < 3000) if both are true. it will do the bracket of the IF statement. if any is false. it will skip the bracket
  22. I would recommend to use find on all files the successrefitem and add the code after it.. a little note is that if the player use WEAPON REFINE of whitesmith. the announce won't show up since that would be source side
  23. 4 possible problem.. 1. the most common sense is it was really unknown account and was not on your db.. 2. your server gepard_shield.conf is off, but your client side is enabled. or vice versa, gepard_shield.conf is on but client side is disabled. 3. client doesn't have all the files related to gepard such as mss32.dll, msvcp and msvcr sent by functor.. 4. maybe it was not functor you contact?
×
×
  • Create New...