Jump to content

pajodex

Members
  • Posts

    436
  • Joined

  • Last visited

  • Days Won

    25

Everything posted by pajodex

  1. dont put RC_ANGEL on a quotation marks.. otherwise it would return to str instead. do this instead: OnNPCKillEvent: if ( demon_race_change_hydro > 0 && getmonsterinfo(killedrid,MOB_RACE) == RC_ANGEL) dispbottom "Yes"; else dispbottom "No"; end; }
  2. if ( BaseLevel > 15 ) { mes "This happens"; close; }
  3. this might be something to be reported in rathena github... but since this is less likely to be problem from the script, I will leave it be.
  4. @hendra814 You are using lastest clean server files right? No modifications? If this is still happening, this could be a src problem.
  5. Like as I said, try it on a clean server file. If error still occurs, it is something to do with npctalk...if error is not there, means you added something that modified clif send causing this error. also, I clearly stated in the description to enable (run the query) sql.. otherwise it wont work.. You dont need to enable sql mob data or something... Apparently I cannot see any script commands to fetch the element level of the mob aside from sql. If there is any other ways, please do let me know and I will adjust the script accordingly.
  6. I didnt encounter this yet. clif_send should be something related to sending a messege. perhaps npctalk is causing this.. have you tried on a clean server file?
  7. looks like this is made from chatgpt or something similar. There are lots of monster killing quest available here.. just use the search function instead of relying on AI atm..
  8. View File Advance Punching Bag with DPS counter + Parameter Settings Hi guys, Its been a while since I left and came back. Here is my latest release for now for the community : In addition to setting the dummy's parameters, you can also simulate a monster's stat by adding the MOB ID. You will need to put your mob_db/mob_db_re sql tables in-order for the script to retrieve the mob's information. Since this is a free release, compatibility is your responsibility. If there are any bugs/issues, just post on the support page and not thru my DMs. Credits goes to @Secrets DPS counter script. I was using that script and modified to make this script possible. Hope this small contribution would be a great help! - pajodex Thanks to @_Terra for sharing the fix on clif_send error. Submitter pajodex Submitted 03/14/23 Category Utilities Video https://www.youtube.com/watch?v=RoLhYx-Iny8 Content Author pajodex, secrets  
  9. Version 1.1

    544 downloads

    Hi guys, Its been a while since I left and came back. Here is my latest release for now for the community : In addition to setting the dummy's parameters, you can also simulate a monster's stat by adding the MOB ID. You will need to put your mob_db/mob_db_re sql tables in-order for the script to retrieve the mob's information. Since this is a free release, compatibility is your responsibility. If there are any bugs/issues, just post on the support page and not thru my DMs. Credits goes to @Secrets DPS counter script. I was using that script and modified to make this script possible. Hope this small contribution would be a great help! - pajodex Thanks to @_Terra for sharing the fix on clif_send error.
    Free
  10. pajodex

    Drop MVP

    getitem F_Rand(7290,7291,7292,7293,7294,7295,7296,7297), 1;
  11. - script RankingMvP -1,{ OnNPCKillEvent: // check if monster is MVP if ( getmonsterinfo(killedrid,MOB_MVPEXP) ) { #MVPPOINTS++; //----> Adds 1 mvp points..replace with whatever you are using dispbottom " Has obtenido 1 Punto de Clasificatoria"; } end; OnPCDieEvent: if (getunittype(killerrid)==BL_MOB) { // checks if monster is MVP and still have MVP Points, otherwise will result to negative value if ( getmonsterinfo(killedrid,MOB_MVPEXP) && #MVPPOINTS ) { #MVPPOINTS--; //----> Removes 1 mvp points..replace with whatever you are using dispbottom " Has reduced 1 Punto de Clasificatoria"; } } end; } Untested. Take notes on the comments.
  12. View File Area Whisper System Script Header: I'd watch out for any interesting script request and might post it here. Submitter pajodex Submitted 02/16/2023 Category Utilities Video Content Author pajodex  
  13. Yes, should be possible. try this : // This script just shuffles the menu.. not related to the original post function script F_ShuffleNumbers { deletearray getarg(2); .@static = getarg(0); .@range = getarg(1) +1 - .@static; .@count = getarg(3, .@range); if (.@range <= 0 || .@count <= 0) return 0; if (.@count > .@range) .@count = .@range; for (.@i = 0; .@i < .@range; ++.@i) .@temparray[.@i] = .@i; for (.@i = 0; .@i < .@count; ++.@i) { .@rand = rand(.@range); set getelementofarray( getarg(2), .@i ), .@temparray[.@rand] + .@static; .@temparray[.@rand] = .@temparray[--.@range]; } return .@count; } prontera,150,180,0 script Test 100,{ setarray .@s$, "Menu 1", "Menu 2", "Menu 3", "Menu 4"; callfunc "F_ShuffleNumbers", 0, getarraysize(.@s$)-1, .@r; for ( .@i = 0; .@i < getarraysize(.@s$); .@i++ ) { .@sel$[.@i] = .@s$[.@r]; .@menu$ += .@s$[.@r] + ":"; } .@i = select(.@menu$)-1; if ( .@sel$[.@i] == "Menu 1" ) { mes "this happens 1"; } else if ( .@sel$[.@i] == "Menu 2" ) { mes "this happens 2"; } else if ( .@sel$[.@i] == "Menu3" ) { mes "this happens 3"; } else if ( .@sel$[.@i] == "Menu 4" ) { mes "this happens 4"; } close; } This is untested.. didnt have time to think thoroughly because im about to head to work but your question is quite interesting so I had to answer EDIT: I noticed some mistakes but will correct it later after work.. [fixed] EDIT 2: upon re-reading your question, it made more sense.. this is the correct one.. I will leave my initial answer here if someone needs it..
  14. Version 1.0.0

    74 downloads

    Script Header: I'd watch out for any interesting script request and might post it here.
    Free
  15. Never tried this but I think this should work. *strmobinfo(<type>,<monster id>); This function will return information about a monster record in the database, as per 'db/(pre-)re/mob_db.yml'. Type is the kind of information returned. Valid types are: It will return 0 if there is no such monster (or the type value is invalid), or an empty string if you requested the monster's name. 1 - 'english name' field in the database, a string. 2 - 'japanese name' field in the database, a string. All other returned values are numbers: 3 - Level. 4 - Maximum HP. 5 - Maximum SP. 6 - Experience reward. 7 - Job experience reward. - script test -1, OnNPCKillEvent: if ( killedrid == 1134 && strmobinfo(3,killedrid) == 31 ) { // Check if kobold lv 31 if (rand(100) > 50) getitem 501, 1; // get a 50% chance to have reward } end; } you can expand this by adding variables and loops..
  16. I can only assume it will only take effect when player is actually equipping an item. Therefore, this script command should work only when attached as an item script.
  17. View File Hide announcements/broadcasts command @blockbc Hi, This is a response from this post : Requirements: Basic knowledge how to apply diff on your server files. How to use the command: @blockbc <param>. Parameters: PARTY - block incoming broadcasts from party. GUILD - block incoming broadcasts from guild. BG - block incoming broadcasts from battleground. CLAN - block incoming broadcasts from clan. MAP - block all incoming broadcasts from the current map. ALL - block all incoming broadcasts. @unblockbc. - as per the command name suggest Disclaimer: This is tested on latest server files as of the day it was posted. May or may not work on older server files. Keeping this up-to-date or vice-versa won't be my responsibility. Compatibility is your responsibility. Use at your own risk. Submitter pajodex Submitted 02/06/2023 Category Source Modifications Video Content Author pajodex  
  18. Try changing `OnInit` to `OnPCLoginEvent`
  19. Hi @Mero27, Please check this out. Although it is not using '@command' this should work as intended. Let me know if there are any problems. Instructions on how to use it is inside the file itself. area_whisper.txt
  20. Version 1.0.0

    226 downloads

    Hi, This is a response from this post : Requirements: Basic knowledge how to apply diff on your server files. How to use the command: @blockbc <param>. Parameters: PARTY - block incoming broadcasts from party. GUILD - block incoming broadcasts from guild. BG - block incoming broadcasts from battleground. CLAN - block incoming broadcasts from clan. MAP - block all incoming broadcasts from the current map. ALL - block all incoming broadcasts. @unblockbc. - as per the command name suggest Disclaimer: This is tested on latest server files as of the day it was posted. May or may not work on older server files. Keeping this up-to-date or vice-versa won't be my responsibility. Compatibility is your responsibility. Use at your own risk.
    Free
  21. View File Prevent hitting mobs near NPC or Warper Hi, It's been a while since I posted anything.. As of now, I want to release this simple src mod that prevents players from hitting MVPs near an NPC/Warper. Purpose of this is to discourage players from going near warpers while hunting MVPs. I'm not sure how helpful this be but I just want to do something small for a while . I will be lurking around the request section to see some good ideas and might be releasing them here after! Cheers! Submitter pajodex Submitted 02/04/2023 Category Source Modifications Video Content Author pajodex  
  22. Look for this on src/map/atcommand.cpp: /*========================================== * @me by lordalfa * => Displays the OUTPUT string on top of the Visible players Heads. *------------------------------------------*/ ACMD_FUNC(me) { char tempmes[CHAT_SIZE_MAX]; nullpo_retr(-1, sd); memset(tempmes, '\0', sizeof(tempmes)); memset(atcmd_output, '\0', sizeof(atcmd_output)); if (sd->sc.cant.chat || (sd->state.block_action & PCBLOCK_CHAT)) return -1; //no "chatting" while muted. if (!message || !*message || sscanf(message, "%255[^\n]", tempmes) < 0) { clif_displaymessage(fd, msg_txt(sd,1302)); // Please enter a message (usage: @me <message>). return -1; } + if ( sd->fakename[0] ) + sprintf(atcmd_output, msg_txt(sd,270), sd->fakename, tempmes); // *%s %s* + else sprintf(atcmd_output, msg_txt(sd,270), sd->status.name, tempmes); // *%s %s* clif_disp_overhead(&sd->bl, atcmd_output); return 0; } Where the '+' are the lines you need to add incase you didnt know.
  23. Try this, tested on latest git on its basic functionality. Let me know if there are any problems. @blockbc - blocks broadcasts depending on the parameter set @unblockbc - as the name suggest 0001-blockbc-command.patch
×
×
  • Create New...