-
Content Count
375 -
Joined
-
Days Won
5
Content Type
Profiles
Forums
Downloads
Staff Applications
Calendar
Everything posted by Legend
-
Hello? Anyone knows how to solve this problem? Thanks ahead.
-
Why am i receiving errors like this on map-server?
-
RO Credentials (ROCred), v1.10.0 - last updated 2017/12/31
Legend replied to Ai4rei's topic in Client-Side Releases
What client are you using sir? -
Thanks for the reply Very much appreciated.
-
How do I disable certain maps and fields?
Legend replied to RaiTheGreat's question in General Server Support
This might help you solve with your problem -> http://herc.ws/board/topic/325-resolved-is-hercules-support-pre-renewal/ -
How to remove this battle menu? whenever i click it, a window will pop-out for battleground. Is it possible to remove this? How?
-
amazing designs!
-
aaaahh thanks poo,,, Sure! Always
-
Its not updated since a year maybe The plugin is already working (credits to ind & Angelmelody) , just one more question... How can i store item even if the character/account is not online? Here's the full code: // Copyright (c) Hercules Dev Team, licensed under GNU GPL.// See the LICENSE file// Sample Hercules Plugin#include <stdio.h>#include <string.h>#include <stdlib.h>#include "../common/HPMi.h"#include "../map/atcommand.h"#include "../map/clif.h"#include "../map/itemdb.h"#include "../map/intif.h"#include "../map/mob.h"#include "../map/status.h"#include "../map/unit.h"#include "../map/pet.h"#include "../map/pc.h"#include "../map/storage.h"#include "../common/HPMDataCheck.h"/* Designed by Beowulf/Nightroad, HPM port by [Ind/Hercules] */HPExport struct hplugin_info pinfo = { "@storeitem", // Plugin name SERVER_TYPE_MAP,// Which server types this plugin works with? "0.1", // Plugin version HPM_VERSION, // HPM Version (don't change, macro is automatically updated)};ACMD(storeitem) { struct map_session_data *pl_sd; struct item item_tmp; struct item_data *item_data; char item_name[ITEM_NAME_LENGTH]; char character[NAME_LENGTH]; int number = 0, item_id; int get_count, i, pet_id, ref = 0; memset(item_name, '0', sizeof(item_name)); if (!message || !*message || sscanf(message, "%49s %d %d %23[^n]", item_name, &number, &ref, character) < 4) { clif->message(fd, "(usage: @storeitem <item name or ID> <quantity> <refine> <char name>)."); return false; } if( ref < 0 || ref > MAX_REFINE ) { char output_p[124]; sprintf(output_p,"<refine> %d is out of bounds, limit is 0~%d. @storeitem failed.",ref,MAX_REFINE); clif->message(fd,output_p); return false; } if (number <= 0) number = 1; item_id = 0; if ((item_data = itemdb->search_name(item_name)) != NULL || (item_data = itemdb->exists(atoi(item_name))) != NULL) item_id = item_data->nameid; else { clif->message(fd, atcommand->msg_table[19]); // Invalid item ID or name. return false; } /* only weapon (4) and armors (5) can refine, refineable item db field also applies */ if( ( item_data->type != 4 && item_data->type != 5 ) || item_data->flag.no_refine ) ref = 0; get_count = number; if (!itemdb->isstackable2(item_data)) { get_count = 1; } pet_id = pet->search_petDB_index(item_id, PET_EGG); if (item_data->type == 4 || item_data->type == 5 || item_data->type == 7 || item_data->type == 8) { get_count = 1; } if ((pl_sd = map->nick2sd(character)) != NULL) { if (pc_get_group_level(sd) >= pc_get_group_level(pl_sd)) { // you can add items only to groups of equal or lower level for (i = 0; i < number; i += get_count) { if (pet_id >= 0) { pl_sd->catch_target_class = pet->db[pet_id].class_; intif->create_pet(pl_sd->status.account_id, pl_sd->status.char_id, (short)pet->db[pet_id].class_, (short)mob->db(pet->db[pet_id].class_)->lv, (short)pet->db[pet_id].EggID, 0, (short)pet->db[pet_id].intimate, 100, 0, 1, pet->db[pet_id].jname); } else { memset(&item_tmp, 0, sizeof(item_tmp)); item_tmp.nameid = item_id; item_tmp.identify = 1; item_tmp.refine = ref; storage->open(pl_sd);/* without open/close procedure the client requires you to relog to access storage properly */ storage->additem(pl_sd, &item_tmp, get_count); storage->close(pl_sd); } } clif->message(fd, atcommand->msg_table[18]); // Item created. } else { clif->message(fd, atcommand->msg_table[81]); // Your GM level don't authorise you to do this action on this player. return false; } } else { clif->message(fd, atcommand->msg_table[3]); // Character not found. return false; } return true;}HPExport void plugin_init (void) { atcommand = GET_SYMBOL("atcommand"); storage = GET_SYMBOL("storage"); clif = GET_SYMBOL("clif"); pc = GET_SYMBOL("pc"); map = GET_SYMBOL("map"); itemdb = GET_SYMBOL("itemdb"); intif = GET_SYMBOL("intif"); pet = GET_SYMBOL("pet"); addAtcommand("storeitem", storeitem);}
-
You can ask anything. But if you want paid customization -> http://herc.ws/board/forum/49-paid-services/
-
Im having trouble while compiling @storeitem plugin by Ind, this is what i got: 1>------ Build started: Project: @storeitem, Configuration: Release Win32 ------1> @storeitem.c1>[email protected](39): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.1> C:Program Files (x86)Microsoft Visual Studio 10.0VCincludestdio.h(325) : see declaration of 'sscanf'1>[email protected](46): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.1> C:Program Files (x86)Microsoft Visual Studio 10.0VCincludestdio.h(371) : see declaration of 'sprintf'1>[email protected](74): error C2039: 'get_group_level' : is not a member of 'pc_interface'1> d:[aaa] ragnarok server projectsvn trunktrunksrcplugins../map/pc.h(736) : see declaration of 'pc_interface'1>[email protected](74): error C2039: 'get_group_level' : is not a member of 'pc_interface'1> d:[aaa] ragnarok server projectsvn trunktrunksrcplugins../map/pc.h(736) : see declaration of 'pc_interface'1>[email protected](79): error C2065: 'mob' : undeclared identifier1>[email protected](79): error C2223: left of '->db' must point to struct/union1>[email protected](114): warning C4013: 'ACMD_A' undefined; assuming extern returning int1>[email protected](114): error C2065: 'storeitem' : undeclared identifier1>[email protected](114): warning C4047: 'function' : 'bool (__cdecl *)(const int,map_session_data *,const char *,const char *,AtCommandInfo *)' differs in levels of indirection from 'int'1>[email protected](114): warning C4024: 'function through pointer' : different types for formal and actual parameter 2========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
-
Your client can't read the file,maybe you forget to include the cps.DLL provided with the grf.What you using for encryption?? SecureGRF? If yes then it would provide the DLL with the name you mentioned in output Dir(where client was been encrypted), else copy cps.DLL as mentioned by respective grf encryptor Yes sir, i already did. I put the .dll file in my ro folder but still im having the same problem. You probably aren't using the new client(one that is given out by grf encryptor) that reads that DLL. I copied everything that the grf encryptor (SecureGRF) provided to my ro folder sir. but still the same error.
-
Your client can't read the file,maybe you forget to include the cps.DLL provided with the grf.What you using for encryption?? SecureGRF? If yes then it would provide the DLL with the name you mentioned in output Dir(where client was been encrypted), else copy cps.DLL as mentioned by respective grf encryptor Yes sir, i already did. I put the .dll file in my ro folder but still im having the same problem.
-
I apologize if i posted it here. Problem: After i encrypted my GRF with secure grf tool. (encrypted my grf and configure my client as well) and i got a bunch of error similar to this in which i guess, my client (2014-10-22b) cannot read the encrypted grf. what am i going to do? anyone can help me with my problem?
-
Thanks for this Dastgir! You're one of the best
-
sad news for all pRO players, and good news to all private ragnarok server owners.
-
I wanted to use Hamachi to let my players login even if im just using my own PC as the host. The question is, do i need to change the default 127.0.0.1(localhost) ip address on map-server/conf, char-server.conf? What IP address will i use? Sorry for this noob question. I apologize also for posting it here, just don't know where this topic belongs.
-
Using NEMO Patcher. Load this patch... this is the one i used on my server. https://www.mediafire.com/?svb1486dqy11c7n OR the ready made exe file: https://www.mediafire.com/?s7z7c9vdqaiybye
-
help with these scripts if u can. freebies and rules
Legend replied to frankiexrussian's question in Script Support
Hello try this // ---------------------------------------// - Scripted by Legend -// - Custom Freebie NPC -// - Freebies are by account -// ---------------------------------------new_1-1,51,111,4 script Freebie NPC 100,{set @npc$,"[^0000FFFreebie NPC^000000]";// -------- freebie configuration --------set .item1,512;set .item2,602;set .item3,601;set .item4,514;// ---------------------------------------goto Main_npc; Main_npc: if (#freebies == 0) { mes @npc$; mes "Welcome!"; mes "I will give you freebies but first you need to read the server rules."; next; menu "^0000FFServer Rules^000000",menu_one,"End Conversation",end_conv; end_conv: close; menu_one: mes @npc$; mes "Server Rules"; mes "1) Respect the game masters."; mes "2) Using third party programs are strictly prohibited."; mes "3) Hacking is a major offense and will lead to a permanent restriction of your account."; mes "4) Advertising other server is prohibited."; next; mes @npc$; mes "Do you agree with the terms and conditions?"; next; menu "^0000FFI agree^000000",menu_two; menu_two: mes @npc$; mes "Welcome ^0000FF"+strcharinfo(0)+"^000000 to HerculesRO!"; mes "Do you want me to warp you to the main town? You can no longer go back here once i teleported you there."; getitem .item1,1; getitem .item2,1; getitem .item3,1; getitem .item4,1; set #freebies,1; next; menu "^0000FFWarp me^000000",menu_three,"Nevermind",menu_four; menu_four: close; menu_three: warp "prontera",155,185; end; } else { mes @npc$; mes "Sorry but you already have your freebies. Do you want me to warp you to the main town?"; next; menu "^0000FFYes^000000",menu_five,"No",menu_six; menu_six: close; menu_five: warp "prontera",155,185; end; }} -
yeah me too, im using 1 on langtype ,maybe in lua files? or ai? can you share it your file? imverry need it u,u, im confused about that I used this one http://herc.ws/board/topic/398-client-translation-project/ hope this will solve your problem
-
Im currently using "1" on langtype. I guess you have problems with the grf you are using or the AI folder in your RO folder. sorry but im not so sure with this. Is the kRO you are using, updated?
-
Hello! Im currently using this client (2014-10-22bRagexe), the one that yommy posted (http://herc.ws/board/topic/7617-2014-10-22-client-download/) And i had never encountered such an error like yours. Mind posting the error message here?
-
Hello! you should match your userid and passwd to your map-server.conf & char-server.conf with the one on your SQL in login table. I've tried - http://i.imgur.com/KFmH8eQ.png here is a screenshot of what I have. Is that right? I noticed that your account id and email is not an account for server... Here's a sample: Hope this would solve your problem
-
Hello! you should match your userid and passwd to your map-server.conf & char-server.conf with the one on your SQL in login table.
-
RO Credentials (ROCred), v1.10.0 - last updated 2017/12/31
Legend replied to Ai4rei's topic in Client-Side Releases
After how many weeks of solving this problem... Finally i already got it! Many thanks to roCred