Jump to content

bWolfie

Members
  • Content Count

    848
  • Joined

  • Last visited

  • Days Won

    34

Everything posted by bWolfie

  1. are you using latest herc?
  2. This is my atcommand. I thought it was working since the clif->message is displaying correct message when I use it. // @my_state - sets state.my_state ACMD(my_state) { struct player_data *ssd; if ((ssd = getFromMSD(sd, 0)) == NULL) { CREATE(ssd, struct player_data, 1); addToMSD(sd, ssd, 0, true); } ssd->state.my_state = !ssd->state.my_state; clif->message(fd, msg_fd(fd, (ssd->state.my_state) ? 1553: 1554)); // my_state mode [enabled/disabled]. return true; } When I mean return 0, I mean function is returning 0. It's not relevant to issue. ssd->state.my_state should return 1 after using my atcommand, but it's always returning 0 (I tested using ShowDebug("%d", ssd->state.my_state); in my 2nd code box) Edit: I tested by returning each ssd, and it seems they are not the same ssd? I.e. the ssd in the @my_state command is not the same as the one in my function.
  3. Hello, I am trying to create a piece of code using a plugin which will return 0; I started by creating my struct player_data, which contain state my_state, intended to be set and red as ssd->state.my_state (1st code box) I set my_state using an atcommand and it seems to set ok. But when I'm trying to bring it up in the following code (2nd code box), ssd->state.my_state is returning 0 even though I am sure it is really set to 1 after using my atcommand. Looking for help thank you. struct player_data { struct { unsigned short my_state : 1; } state; } if (target && target->type == BL_PC) { struct map_session_data *sd = BL_CAST(BL_PC, target); if (sd) { struct player_data *ssd; if (!(ssd = getFromMSD(sd, 0))) { CREATE(ssd, struct player_data, 1); addToMSD(sd, ssd, 0, true); } if (ssd && ssd->state.my_state == 1) return 0; } }
  4. official bg is stable. if you want to use custom bg check source or plugin release and see if comments will help you.
  5. noobzter browse back few pages there is answer there somewhere. btw this plugin not supported anymore by its owner
  6. 2015-10-29 is first supported doram client i believe.
  7. You need to edit status icon for SI_WEIGHTOVER50. Use Dastgir's guide to help you: http://herc.ws/board/topic/7526-guide-adding-new-status-icons/ Edit msgstringtable.txt to have it display the amount you want. Just ctrl+f it. HP/SP will not be restored when your carried weight is over 50% of the Weight Limit.# You can't use Skills or Attack while your carried weight is over 90% of your Weight Limit.# If you want a custom message for an item you can use the dispbottom() script command.
  8. You can put your maps in the /data/ folder or you can use a GRF to load maps.
  9. bonus2(bAddRace, RC_DemiPlayer, 20); works fine for me
  10. did you enable in plugins.conf
  11. 2061 = SP_RACE_TOLERANCE check you are using right db as this bonus only work in renewal if i recall
  12. have you configured the other files? check top of plugin file for their names
  13. this issue due to langtype maybe? i don't got this issue on these clients (only ones I tried) forgive if date is off - 2014-05-03 - 2014-10-22 - 2015-05-13 - 2015-10-29
  14. Yes. The file is db/produce_db.txt. Just search 'AM_PHARMACY' and you will find the area you need. However, it is not enough to give ranking points. That would require source editing. To make your custom item give ranking points, first open src/map/itemdb.h and add a constant for your custom Item ID. enum item_itemid { ITEMID_MYCUSTOMITEM = 29001, } Then open src/map/skill.c and need to include your constant to not 'continue'. Find: if (rnd()%10000 < make_per || qty == 1) { //Success tmp_item.amount++; if(nameid < ITEMID_RED_SLIM_POTION || nameid > ITEMID_WHITE_SLIM_POTION) continue; Below it, change so it like this: if (rnd()%10000 < make_per || qty == 1) { //Success tmp_item.amount++; if((nameid < ITEMID_RED_SLIM_POTION || nameid > ITEMID_WHITE_SLIM_POTION) && nameid != ITEMID_MYCUSTOMITEM) continue;
  15. this is script request you should use that forum. i dont understand your request what do yo uneed.
  16. from memory i could not get these commands to work for me at all.
  17. How about this? It should store every non-bound item in a new array .@ID[] getinventorylist(); for (.@i = 0; .@i < @inventorylist_count; .@i++) { /* Filter only items that is not bound */ if (!@inventorylist_bound[.@i]){ .@itemname$ = callfunc( "getitemname2", @inventorylist_id[.@i], @inventorylist_identify[.@i], @inventorylist_refine[.@i], @inventorylist_attribute[.@i], @inventorylist_card1[.@i], @inventorylist_card2[.@i], @inventorylist_card3[.@i], @inventorylist_card4[.@i], @inventorylist_bound[.@i]); .@menu$ += sprintf("%s %s:", @itemname2_info$, .@itemname$); .@ID[.@j] = @inventorylist_id[.@i]; .@j++; } } .@menu$ += "Cancel"; .@s = select(.@menu$) -1; if (.@s == .@j) close; /* Now display ItemID of selected inventory */ mesf("You have selected %d", .@ID[.@s]); // this did not return correct info because it reads [.@s] index from getinventorylist but not the filtered menu.
  18. In git use the command git log -1 and it should give you some input. below is a sample, bold/italic is my commit no. commit f0ac93031a951bde7e014693803003e63c5bafd9 (HEAD -> master) If possible better to port old custom stuff into a new Hercules. Files often have cross-dependencies, so it likely cannot just be straight imported.
  19. Asura already has 0 cool down. If you want to remove delay just change data in skill_db.conf.
  20. kubix basically implied he wont provide support by saying you should use hBG. no point posting here.
  21. nice job friend. attack animation is very smooth, and death ani is funny
  22. bWolfie

    New life for RO

    this is client which dont really have anything to do with bots. lots of people have mice with GUI which lets them program keystrokes into clicks and even automation. GUI means even the newbest of newbs can bot (dont need to learn AHK, which is even newb)
  23. bWolfie

    Esma Bugged

    are you using latest herc? Hercules uses true/false not yes/no (though tat probably not change anything in this instance)
×
×
  • Create New...

Important Information

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