Jump to content

Only4fun

Members
  • Content Count

    11
  • Joined

  • Last visited


Reputation Activity

  1. Upvote
    Only4fun reacted to JulioCF in Quest Tab (alt+u) null   
    clássico 2012 04 10
  2. Upvote
    Only4fun reacted to ρixєℓ in Quest Tab (alt+u) null   
    Bem, eu entendo que quando uma pessoa abre um tópico de suporte aqui é por que ela já tentou resolver o problema de todo jeito e não conseguiu, por isso a " resposta pronta ", mais de qualquer forma, obrigado.
  3. Upvote
    Only4fun reacted to AnnieRuru in [Custom battlegrounds] is it possible?   
    this should belongs to source modifications, move
     
    http://herc.ws/board/tracker/issue-7894-battlegrounds-emblem-and-guardian/
    if developer fix this bug, then I might be able to find the code for this modification ...
     
    the trick should be ... make 2 fake guild and put emblems on it
    so when battleground starts, clif send that fake guild emblem
  4. Upvote
    Only4fun reacted to AnnieRuru in [Custom battlegrounds] is it possible?   
    until developer fix this bug =/
    http://herc.ws/board/tracker/issue-7894-battlegrounds-emblem-and-guardian/
  5. Upvote
    Only4fun got a reaction from luis.seifert in [Help] Battleground script   
    src/map/pc.c } else if( sd->bg_id ) { struct battleground_data *bgd = bg->team_search(sd->bg_id); if( bgd && bgd->mapindex > 0 ) { // Respawn by BG if(strcmp( mapindex_id2name(sd->mapindex), "guild_vs3" )){ timer->add(tick+1000, pc->respawn_timer, sd->bl.id, 0); return 1|8; } } } Change "guild_vs3" to your map and recompile.   Or you can use: .red=createbgid("",0,0,strnpcinfo(3)+"::OnRedQuit",strnpcinfo(3)+"::OnRedDead"); This way the respawn map do not exist, and will display a little error in map-server, what don't disrupts nothing.
  6. Upvote
    Only4fun reacted to GmOcean in [Help] Battleground script   
    You could edit:
    /// Response to the death/system menu (CZ_RESTART)./// 00b2 <type>.B/// type:/// 0 = restart (respawn)/// 1 = char-select (disconnect)void clif_parse_Restart(int fd, struct map_session_data *sd) { switch(RFIFOB(fd,2)) { case 0x00: pc->respawn(sd,CLR_OUTSIGHT); break; case 0x01: /* Rovert's Prevent logout option - Fixed [Valaris] */ if( !sd->sc.data[SC_CLOAKING] && !sd->sc.data[SC_HIDING] && !sd->sc.data[SC_CHASEWALK] && !sd->sc.data[SC_CLOAKINGEXCEED] && !sd->sc.data[SC__INVISIBILITY] && (!battle_config.prevent_logout || DIFF_TICK(timer->gettick(), sd->canlog_tick) > battle_config.prevent_logout) ) { //Send to char-server for character selection. chrif->charselectreq(sd, session[fd]->client_addr); } else { clif->disconnect_ack(sd, 1); } break; }} To just not work in BG's or resurrect you at that spot.
    void clif_parse_Restart(int fd, struct map_session_data *sd) { switch(RFIFOB(fd,2)) { case 0x00: if( sd->bg_id ) { if( !pc_isdead(sd) ) return; status->revive(&sd->bl, 100, 100); clif->skill_nodamage(&sd->bl,&sd->bl,ALL_RESURRECTION,4,1); break; } else { pc->respawn(sd,CLR_OUTSIGHT); break; } case 0x01: /* Rovert's Prevent logout option - Fixed [Valaris] */ if( !sd->sc.data[SC_CLOAKING] && !sd->sc.data[SC_HIDING] && !sd->sc.data[SC_CHASEWALK] && !sd->sc.data[SC_CLOAKINGEXCEED] && !sd->sc.data[SC__INVISIBILITY] && (!battle_config.prevent_logout || DIFF_TICK(timer->gettick(), sd->canlog_tick) > battle_config.prevent_logout) ) { //Send to char-server for character selection. chrif->charselectreq(sd, session[fd]->client_addr); } else { clif->disconnect_ack(sd, 1); } break; }} You just gotta add the 10second timer there so if they do CLICK the button, it'll need to wait 10seconds D:
  7. Upvote
    Only4fun reacted to AnnieRuru in [Help] Battleground script   
    if you modify like jabote did, that will affect any other battleground script, which possibly caused them bug
     
    I won't touch the source if I were you
     
    the practical way to do this, is make them wait inside a room
    http://rathena.org/board/topic/97602-annierurus-bg-emp-edit-request/?p=267413
    I've seen 2 battleground script using this method
  8. Upvote
    Only4fun reacted to jaBote in [Help] Battleground script   
    Oh, true. You get respawned because you still belong to a BG team.
     
    Look on your src/map/pc.c for something like this inside your pc_dead function:
     
    //GvG if( map_flag_gvg2(sd->bl.m) ) { timer->add(tick+1, pc->respawn_timer, sd->bl.id, 0); return 1|8; } else if( sd->bg_id ) { struct battleground_data *bgd = bg->team_search(sd->bg_id); if( bgd && bgd->mapindex > 0 ) { // Respawn by BG timer->add(tick+1000, pc->respawn_timer, sd->bl.id, 0); return 1|8; } }  
    Comment the following lines:
     
    } else if( sd->bg_id ) { struct battleground_data *bgd = bg->team_search(sd->bg_id); if( bgd && bgd->mapindex > 0 ) { // Respawn by BG timer->add(tick+1000, pc->respawn_timer, sd->bl.id, 0); return 1|8; }  
    And recompile. Now none of your BGs will do the automatic warp out, but you should ask them not to "go back to savepoint" because that will cause them to abandon BG.
  9. Upvote
    Only4fun reacted to AnnieRuru in @market clone   
    Download: 1.9
    plugin
     
    Create a market clone, to leave a message for other players
    while the player can go hunting/questing/events
    @market "<Title>" "<Message>" <Color> create a market clone with a chat room titled -> "<Title>"
    when players tries to join the chat room, it refuse the joining, but instead leave a message -> "<Message>"
    with 1.4 update,
    player can now choose their own favorite color for their AFK message
    the <Color> field is optional
    I was struggling to use array for the color list ...
    but in the end, I guess the simplicity is the best
    so you guys can guess how to add in your own list easily
     
    @marketkill kill the market clone without logging off
     
    when a GM do @killmonster @killmonster2, or *killmonster *kilmonsterall script command will not remove the clone
    but @reloadscript, however, will remove it
     
    feels like I just copy paste from the description
    whatever ...
     
    Credit : remember to rep Dastgir's topic because I mostly copy his codes
     
     
  10. Upvote
    Only4fun reacted to Hideki in bg_consume mapflag, "Battleground's items" that can only be used in BG   
    This source modification adds a new mapflag: bg_consume, and adds an NPC (Telma) 
    that sells consumable items which can only be used on maps with the 'bg_consume' mapflag.
     

    download and apply this diff patch: battlegroud.diff

    create a char named "Battleground"
    First you should check if that name exists:- delete their char, then create a new one
     use a different name use the existing char (WARNING: if they rename the char named "Battleground", it will rename the "Battleground's items" too! If they delete the char named "Battleground", they will become "Unknown's item".)


    When you are ready to create the char named "Battleground", use this SQL query:
     
    SQL INSERT INTO `char` (`name`) VALUES ('Battleground'); make note of the char_id (of the char named "Battleground")
    SQL SELECT char_id FROM `char` WHERE `name`='Battleground'; Write this down somewhere or remember it for the next steps.
      edit source
    - open /src/map/battleground.h
    CODE #define BG_CHARID 165100 // char named "Battleground"
    #define BG_TRADE 91 // trade mask of BG consumables - set BG_CHARID to the char_id from step #3
    - set BG_TRADE to the trade mask (trade restrictions) you want for Battleground's consumables
    (trade bits are the same as /db/item_trade.txt)
    CODE // Trading mask values:
    // 1: Item can't be dropped
    // 2: Item can't be traded (nor vended)
    // 4: Wedded partner can override restriction 2.
    // 8: Item can't be sold to npcs
    // 16: Item can't be placed in the cart
    // 32: Item can't be placed in the storage
    // 64: Item can't be placed in the guild storage

    If you want BG potions to be ranked (ranked Condensed White Potions, ranked Blue Potions, etc.), 
    open /src/map/pc.c and uncomment this:
    CODE // else if(BG_CHARID == char_id)
    // return 5; edit NPC script (Telma)
    - open /npc/battleground/bg_supplier.txt
    CODE set .@BG_CHARID, 165100; // character named "Battleground" - (line 43) set .@BG_CHARID to the char_id from step #3
    - (lines 25-39) edit the menu/prices to your liking
    - (line 88) add the 'bg_consume' mapflag to any other maps you want to allow "Battleground's consumables" to be used on
      Save and close all files. Recompile.


     
     
     
    Compatible Hercules/rAthena/eAthena
     
     
    credits:
    The original idea is from someone else, I'm just not sure who. It started in 2009 when a player showed us screenshots (from another server) of the Telma NPC and asked if we could implement something similar--Battleground's consumables that could only be used in BG. Based on the screenshots, I came up with this. Since then, several people have asked about it on eAthena but I was too lazy to update it so I just linked them to our old SVN/Trac. Finally I updated it, and here it is!

    Thanks again to whoever came up with the idea!
  11. Upvote
    Only4fun reacted to Xgear in R> Discount Mapflag   
    Something quick that popped into my mind,
    Adding this to src/map/pc.c @ pc_checksill should do the trick.
    Then simply add the skill into a map zone as disabled skill. It basically makes pc_checkskill return level zero if the skill is disabled on a zone. 
    if (skill_id == MC_DISCOUNT || skill_id == RG_COMPULSION) for(ds = 0; ds < map[sd->bl.m].zone->disabled_skills_count; ds++) { if( skill_id == map[sd->bl.m].zone->disabled_skills[ds]->nameid) { return 0; } } This would basically turn the skills level 0 on the map it is disabled, disabling the NPC discount. 
     
    P.S.: I havnt tested it, but should work. 
  12. Upvote
    Only4fun reacted to Angelmelody in bonus_script by cydh   
    temporary patch for infinite duration when duration set to -1
     
    infinite duration.patch
  13. Upvote
    Only4fun reacted to Neo-Mind in NEMO - Client Patcher   
    @evilpuncker: dunno about RE clients but the main clients mentioned are not packed. Latest usable Ragexe client is 2014-06-13a. I know about the Restore Login Window issue its just a small fix will push that later today.
     
    @luis : I need to check that patch. People have been saying they are facing issue with shields not appearing at all.
  14. Upvote
    Only4fun reacted to jaBote in Regarding Item DB `equip_jobs`   
    It's better if you took your calculator (even Windows calc!), copy the number and paste it in decimal, then change representation to hexadecimal. You'll instantly have your bitmask in hexadecimal, making you easier to understand.
  15. Upvote
    Only4fun reacted to ossi0110 in Harmony Patch 3.3.12 30 MAI   
    Hercules Harmony Patch - 30 MAI
     
     
     
     
    Made Possible Thanks to
     
    Ind
    Xgear
    Haruna
     
     
     
     
     
    This is a Diff Patch for the Latest Hercules Version ( Cloned for arround 30 Mins) ,   All Harmony Functions are working , and no server crashe etc.
     
    I Only Provide a Diff file for the Harmon Version 3.3.12 .
     
    This Diff only Contains the Harmony SRC Part .  you will have to add your own .BIN files from your harmony Package.
     
     
    I WILL NOT PROVIDE ANY .BIN OR CLIENTSIDE FILES !!!!!!!!
     
     
     
    Harmony_Full_3.3.12_V5.patch
     
     
     
     
    the diff got tested on Linux / Mac and  WIN7/WIN8 with VS 2010 , no patch error or compiling error.
  16. Upvote
    Only4fun reacted to Ai4rei in Client.exe process remains open   
    No idea about Loki Launcher, but there is a bug in the newer clients, that causes it get "idle" priority when shutting down under certain conditions, which prolongs the time the client spends quiting. If you set the "process priority" for the client process back to normal and it quits within 3-5 minutes, then that's it; otherwise it could be an another problem.
×
×
  • Create New...

Important Information

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