Jump to content

pajodex

Members
  • Posts

    425
  • Joined

  • Last visited

  • Days Won

    25

Everything posted by pajodex

  1. You can fix that part by adjusting this part: function rnd { if(.HardBalance){ return rand(getarg(0),rand(getarg(0),getarg(1))); } return rand(getarg(0),getarg(1)); } To function rnd { if(.HardBalance){ return rand(getarg(0),rand(getarg(0)+1,getarg(1))); } return rand(getarg(0),getarg(1)); } This is to avoid the possibility of getting same value as per the error code.
  2. yes it is possible. prontera,150,180,0 script One Player Only 100,{ if ( .npc_access ) { mes "Some one is accessing."; close; } .npc_access = true; mes "You are the one only being able to access until you press 'close'"; close2; .npc_access = false; end; } This will come with several loop holes and you need to figure it out yourself on how to prevent it and also properly reset the variable used.
  3. you can just add a pvp_noparty mapflag.. *pvp *pvp_noparty *pvp_noguild *pvp_nocalcrank Enables Player vs. Player mode on a map and applies the corresponding damage adjustments. 'pvp_noparty' will ignore party alliances. 'pvp_noguild' will ignore guild alliances. 'pvp_nocalcrank' will disable calculation of PvP rankings.
  4. View File Pet Combination System (RO Landverse Concept) Hi, Just dropping some random scripts on my drive. Enjoy! Script Info: https://maxion-1.gitbook.io/ragnarok-landverse-whitepaper/beginner-guide/pets-system NOTE: This is only a replication attempt. This doesn't have the pet combination UI as per the link showing. This will use NPC Shop UI instead. This is NOT limited to pet combination, you can be creative and change this to item tier combination if you wish. If you know how to read and basic scripting knowledge, then you can edit this script without problem. Use at your own risk. Submitter pajodex Submitted 12/20/23 Category Utilities Video Content Author pajodex  
  5. rAthena is not same as Herc. You can use the pointshop we are using tho.. Use this format: <map name>,<x>,<y>,<facing>%TAB%pointshop%TAB%<NPC Name>%TAB%<sprite id>,<costvariable>{:<discount>},<itemid>:<price>{,<itemid>:<price>...} It should be straight forward from hereon. Goodluck!
  6. Version 1.1.0

    173 downloads

    Hi, Just dropping some random scripts on my drive. Enjoy! Script Info: https://maxion-1.gitbook.io/ragnarok-landverse-whitepaper/beginner-guide/pets-system NOTE: This is only a replication attempt. This doesn't have the pet combination UI as per the link showing. This will use NPC Shop UI instead. This is NOT limited to pet combination, you can be creative and change this to item tier combination if you wish. If you know how to read and basic scripting knowledge, then you can edit this script without problem. Use at your own risk.
    Free
  7. I believe this is not related to the script. If you follow the original thread, you should've known that this might have to do with npctalk script command. You can always disable the npctalk part if you want to not get the error. Original thread is attached below:
  8. use getunitarea then unitkill them all
  9. is this to remove drops from the mobs? If yes, better just add nodrop/noloot mapflag
  10. This might help you https://rathena.org/board/topic/124538-damage-logs/
  11. Oh i thought you were already using one. I think there is a src mod where it logs all the damage taken by monster.
  12. better use getunitarea.. add an if the player has not damaged, then do not attach. I don't know which variable are you using but I assume it should be a temp global var.
  13. do something like : if ( checkwall("PWall1") ) delwall "PWall1"; to check if wall exists before actually deleting it
  14. how about just letting `getunits` retrieve the data instead then store the information on a variable.
  15. I dont really get what you mean by this question... but it should be very possible. They woudn't, if they missed the announcement. Players outside the guilds at war doesn't have any reason to know if they are at war.
  16. War Declaration System A system which allows guild leaders to declare a war against other guilds. You can only start attacking opposing guild when both guilds will declare each other as enemies. There will be an announcement when guild leaders sets a guild as an antagonist and another announcement saying that both guilds have agreed to declare war on each other. Once both guilds declared war, they can attack each other outside PVP, GvG, BG, Castle Maps, and Towns.. meaning on fields/dungeons only. This should add up some spice on guild vs guild match ups on a server. I'm open for some suggestions for improvement of this system! Cheers! [ Video: ]
  17. You can alternately solve this problem by adding prefix on the spawned clone. Just edit this part : Nvm, this might break the script... just do this instead, - script spawnclone -1,{ if ( atoi(strnpcinfo(2)) == getcharid(0) ) { switch(select("Edit Chatroom name","Edit Response message","Remove market clone")) { case 1: mes "Current Chatroom name : ^0000ff"+ .chatroomname$ +"^000000"; next; select("Modify"); mes "Enter new Chatroom name:"; next; input .@temp$; mes "Confirm: ^0000ff"+ .@temp$ +"^000000?"; next; select("Yes"); mes "Done!"; close2; .chatroomname$ = .@temp$; delwaitingroom; - waitingroom .chatroomname$, 2, strnpcinfo(3)+"::OnMessage", 1; + waitingroom .chatroomname$, 0; break; case 2: mes "Current Response message : ^0000ff"+ .message$ +"^000000"; next; select("Modify"); mes "Enter new response message:"; next; input .@temp$; mes "Confirm: ^0000ff"+ .@temp$ +"^000000?"; next; select("Yes"); mes "Done!"; close2; .message$ = strcharinfo(0)+": "+ .@temp$; break; case 3: mes "Are you sure you want to remove your clone?"; next; select("Yes"); mes "Removing your clone..."; close2; @marketclone = false; OnKillClone: delwaitingroom; disablenpc(strnpcinfo(3)); break; } } + dispbottom .message$; end; -OnMessage: - chatmes .message$; - end; OnSpawnClone: query_sql( " SELECT `class`, `hair`, `hair_color`, `clothes_color`, `head_top`, `head_mid`, `head_bottom`, `sex` FROM `char` WHERE `char_id` = "+ .cid, .@class, .@hair, .@hair_color, .@clothes_color, .@head_top, .@head_mid, .@head_bottom, .@sex$ ); .GID = getnpcid(0,.npc$); setunitdata .GID, UNPC_CLASS, .@class; setunitdata .GID, UNPC_HAIRSTYLE, .@hair; setunitdata .GID, UNPC_HAIRCOLOR, .@hair_color; setunitdata .GID, UNPC_CLOTHCOLOR, .@clothes_color; setunitdata .GID, UNPC_HEADTOP, .@head_top; setunitdata .GID, UNPC_HEADMIDDLE, .@head_mid; setunitdata .GID, UNPC_HEADBOTTOM, .@head_bottom; setunitdata .GID, UNPC_SEX, ((.@sex$ == "M")?1:0); setunitdata .GID, UNPC_LOOKDIR, DIR_SOUTH; - waitingroom .chatroomname$, 2, strnpcinfo(3)+"::OnMessage", 1; + waitingroom .chatroomname$, 0; end; }
  18. This is already redundant to the current feature where when you enter the chat room, it will automatically post a message in the chat room... I don't see the need of redo-ing it. Anyways, this is a free release, anyone can make changes as needed.
  19. --------------------------------------- @loadnpc <path> Loads an NPC script by path. Example: @loadnpc npc/custom/jobmaster.txt --------------------------------------- @unloadnpc <npc name> Unloads an NPC. Example: @unloadnpc Job Master --------------------------------------- @unloadnpcfile <path> Unloads all NPCs in a file. Example: @unloadnpcfile npc/custom/jobmaster.txt --------------------------------------- @reloadnpcfile <path> Unloads and loads an NPC. Same as @unloadnpcfile and @loadnpc but ran as one command. Example: @reloadnpcfile npc/custom/jobmaster.txt --------------------------------------- You can literally read the doc folder regarding this.. doc/atcommands.txt
  20. dont use @reloadscript then. Use @loadnpc/@reloadnpcfile instead so your players wont be interrupted.
  21. This clone is not intended for that. That is a totally different topic. You can try to make a custom pet that looks like a player and give it actions to support the players...I think that's the closest thing you can get from your request. You dont need to pay anyone for that.
  22. Afaik, rathena dropped support for pre-renewal 3rd job...If this is running pre-renewal mode on latest server file, that might have caused this.
  23. This is confirmed and should now be fixed on the latest version. market_clone_no_src_modification.txt
  24. View File Market Clone (No SRC modification needed) This is exactly the same concept as the original file by Annieruru/Dastgir which is found on this post : @marketclone - creates a clone of your self as if you are making a chatroom. @marketkill - removes the clone you spawned. Yes, there is no need for SRC modification. This is purely done script wise but this will only work for latest server files. Any server files later than October 2, 2022 shouldn't have any troubles running this script. Otherwise, you are required to apply this commit: https://github.com/rathena/rathena/commit/9c2576f47ac12f54738bc714b858fde3a9d6315b to work. Any issues regarding the script, leave me a message or tag me on the support page of this script. If there is any good suggestions for improvements I do wont give support if compatibility is the issue. Compatibility is your responsibility. Use at your own risk. Submitter pajodex Submitted 06/22/23 Category Utilities Video Content Author pajodex, Annieruru, Dastgir, Napster  
  25. This is already on latest server files afaik. (using 20-06-2023 server file) Edit: Didnt see the original date this thread has been posted...
×
×
  • Create New...