-
Posts
439 -
Joined
-
Last visited
-
Days Won
26
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by pajodex
-
-
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.
-
@hendra814 You are using lastest clean server files right? No modifications? If this is still happening, this could be a src problem.
-
checked your zeny?
-
57 minutes ago, rmon said:
I also encounter the same everytime the npctalk its giving clif_send error
Also im using txt for mob and not in sql, the script tries to query from sql instead of mob_db.yml
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. -
4 hours ago, hendra814 said:
at map server showing like this, is it ok?
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?
-
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..
-
1
-
1
-
-
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
-
Submitted03/14/23
-
Category
-
Videohttps://www.youtube.com/watch?v=RoLhYx-Iny8
-
Content Authorpajodex, secrets
-
2
-
-
getitem F_Rand(7290,7291,7292,7293,7294,7295,7296,7297), 1;
-
1
-
1
-
-
- 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. -
Area Whisper System
Script Header:
Quote// =========================
// Area Whisper
// =========================
// by pajodex
//
// Requested by Mero27 https://rathena.org/board/topic/132562-whisp-custom-command/
//
// ------------------------------------------------------------------
// Mechanics:
// sends out message to players around the whisperer for about 2x2 cells
// any one outside the range wont be able to receive the message.
//
// sender has the option to increase the whisper range to his desired
// size by specifiying '#1-9' by the end of the message.
//
// sample:
//
// "This is my message.#5"
//
// That message will be sent to 5x5 around the sender.
// Only numbers with min of 1 and max of 9 cells will be accepted.
// Otherwise, the script will be defaulting the size to 2 or if
// sender did not specify any.
// ------------------------------------------------------------------
//
// How to use?
//
// 1. On whisper box (left side of chat box), enter 'NPC:Whisper' as receiver:
//
// [ NPC:Whisper ] [ <this is the chat box> ]
//
// 2. On chat box, enter your desired message and press send.
//
// NOTE:
// Message color is set at 0xff6666 by default
// you can change this to your desired color.
I'd watch out for any interesting script request and might post it here.
-
Submitter
-
Submitted02/16/2023
-
Category
-
Video
-
Content Authorpajodex
-
-
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 answerEDIT: 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..12 hours ago, Virtue said:have you tried switch(select(rand(1,x))?
-
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..
-
try changing `sc->data` into `sc->getSCE`...
-
2 hours ago, Enoch said:
not working i wonder why
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.
-
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
-
Submitted02/06/2023
-
Category
-
Video
-
Content Authorpajodex
-
4 hours ago, Enoch said:
hi guys im requesting hateffect after reaching max lvel i tried this but no luck
- script LVL175 -1,{
OnInit:
if(BaseLevel <= 175) { hateffect 170,true; }
end;
}Try changing `OnInit` to `OnPCLoginEvent`
-
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.
-
1
-
-
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
-
Submitted02/04/2023
-
Category
-
Video
-
Content Authorpajodex
-
2
-
-
1 hour ago, Dirpy said:
Hello!
I would like some help to modify the @me command to make it @fakename friendly, displaying the current display name instead of the real name. I have been trying modifying the command but i cannot seem to make it work, this is the line:
The idea is for @me to show @fakename (if there is one enabled) or the current display name instead of the real name of the character.
Still getting the hang of this so i would appreciate the help!
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.
-
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
-
1
-
-
This is based on NovaRO's Low Rank Hunt feature.
All information are based on https://www.novaragnarok.com/wiki/Low_Rank_Hunts and some videos in youtube that I can find.
FYI, Everything is made by me (aside from the concept).. no hate and just enjoy
Thanks!
This is my coming back from hiatus update!
-
1
-
-
20 minutes ago, Moooooon-Aisha said:
Equipment/Weapon Disassembly (this will be a free release when I finish it)
- Mainly for changing how refining works in official RO to widely extend end-game potential
Looking forward to this project.
-
Thanks!
-
Lifeskill System
Hi again!
Been a while since I posted here. Anyways, without further ado... I'm showcasing my Lifeskill System's Basic Functionality.
I am just showing the basic ones because I am too lazy to show everything. If I did, it'll take maybe 10-15mins video, so I just trimmed it down and showed the basic functionality.
This system is inspired by Black Desert Online's Life skill system.. Since I played BDO for quite long, I was very inspired to make a version of this to Ragnarok as close as I could get with my own personal twist and take.
<>
<>
Gathering Lifeskill
- Mining
- Hunting
- Lumbering
- Fishing (not shown but you can only fish on map cell with water - No NPC interaction )
These lifeskills are used to 'gather' materials from mobs. When you use/equip an inappropriate tool, you cannot attack the mob (sample is when you are using a pickaxe, you cannot attack a Hunting Mob/Lumbering Tree and so on).
Processing Lifeskill
- Cooking
- Scribing
- Crafting
These lifeskills are used to 'craft' items you've gathered in gathering.
Lifeskill Tool
Lifeskill tools are used in different lifeskill. You cannot use the tool on wrong mobs or craft the item. Same goes for its functionality as per my personal preference. Everytime you use the tool, it loses its durability. When it reaches to zero, you cannot use the tool, so you should repair it thru Tool Shop NPC (Not shown on the video). You can also enchant and refine these tool but only by using the Tool Shop NPC and nothing else. It couldn't be refined by any other npc.
Energy System
Energy system is used to limit the usage of this system. Players cannot perform any action if they don't have enough energy. Performing any action related to lifeskill system will consume energy. Energy will be replenished when player stays in game per min.
-
1
-
1
-
1
H> Level Restriction
in Scripting Support
Posted
if ( BaseLevel > 15 ) { mes "This happens"; close; }