-
Posts
232 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Everything posted by nasagnilac
-
delay: 5000 set this one for 5 seconds cooldown. its normal that admin bypass the cooldown. In able for you make fast reply. But you can remove this part !pc_has_permission(sd, PC_PERM_CHANNEL_ADMIN) && channel->msg_delay != 0 && So that all user even gm groups has a cooldown in you #main.
-
int channel_send(struct Channel *channel, struct map_session_data *sd, const char *msg) { int idx = 0; if(!channel || !sd || !msg || (idx = channel_pc_haschan(sd, channel)) < 0) return -1; if(!pc_has_permission(sd, PC_PERM_CHANNEL_ADMIN) && channel->msg_delay != 0 && DIFF_TICK(sd->channel_tick[idx] + channel->msg_delay, gettick()) > 0) { char cdmessage[CHAT_SIZE_MAX]; int cdseconds = DIFF_TICK(sd->channel_tick[idx] + channel->msg_delay, gettick()) / 1000; int cdmilliseconds = (DIFF_TICK(sd->channel_tick[idx] + channel->msg_delay, gettick()) - (cdseconds * 1000))/100; //clif_messagecolor(&sd->bl,color_table[COLOR_RED],msg_txt(sd,1455),false,SELF); //You're talking too fast! safesnprintf(cdmessage, sizeof(cdmessage), "You still have %d.%d second(s) left before you can use the channel again.", cdseconds, cdmilliseconds); clif_displaymessage(sd->fd, cdmessage); return -2; } else { char output[CHAT_SIZE_MAX]; unsigned long color = channel->color; if((channel->opt&CHAN_OPT_COLOR_OVERRIDE) && sd->fontcolor && sd->fontcolor < channel_config.colors_count && channel_config.colors[sd->fontcolor]) color = channel_config.colors[sd->fontcolor]; safesnprintf(output, CHAT_SIZE_MAX, "%s %s : %s", channel->alias, sd->status.name, msg); clif_channel_msg(channel,output,color); sd->channel_tick[idx] = gettick(); } return 0; } Try this for cooldown message..
-
I have this private message problem. where the message sent to a player is different to sender message.
-
[DISCONTINUED] Secret's Updated NEMO Patches
nasagnilac replied to Secrets's topic in Client Releases
I tried this all to 2015-11-04ragexea and font style is still different. -
[DISCONTINUED] Secret's Updated NEMO Patches
nasagnilac replied to Secrets's topic in Client Releases
As you can see in the image, the text change and its not the same text on my working client. I am using 2015-11-04aRagexe and this are the list of diff. i also cant connect to the server. -
[DISCONTINUED] Secret's Updated NEMO Patches
nasagnilac replied to Secrets's topic in Client Releases
@Secrets I use this to your latest upload in 2015-11-04Ragexe and when I start the client nothing happens. -
I have here a code for hercules made by judas on my last server file. I need someone who can apply this in rathena coding and implement.
-
@meyraw Hope you can also release a file release in able for us to develop more all your works.
-
We are trying to transfer NPC Trader of Hercules to rAthena but we received an error if we will use the item name. This is the code that cause the error. It means it doesn't allow Item name in sellitem scriptcommand. prontera,73,134,5 trader Milk Merchant#prt1 4_F_01,{ OnInit: sellitem Milk; end; } But if we use this format there is no problem at all. prontera,73,134,5 trader Milk Merchant#prt1 4_F_01,{ OnInit: sellitem 519; end; } So this is the current sellitem script command code. /** * @call sellitem <Item_ID>,{,price{,qty}}; * * adds <Item_ID> (or modifies if present) to shop * if price not provided (or -1) uses the item's value_sell **/ BUILDIN_FUNC(sellitem) { struct npc_data *nd; struct item_data *it; int i = 0, id = script_getnum(st,2); int value = 0; int qty = 0; int rental = 0; // Judas Bound/Rental int bound = 0; // Judas Bound/Rental if( !(nd = map_id2nd(st->oid)) ) { ShowWarning("buildin_sellitem: trying to run without a proper NPC!\n"); return false; } else if ( !(it = itemdb_exists(id)) ) { ShowWarning("buildin_sellitem: unknown item id '%d'!\n",id); return false; } value = script_hasdata(st,3) ? script_getnum(st, 3) : it->value_buy; if( value == -1 ) value = it->value_buy; if( !nd->u.scr.shop ) npc_trader_update(nd->src_id?nd->src_id:nd->bl.id); else {/* no need to run this if its empty */ for( i = 0; i < nd->u.scr.shop->items; i++ ) { if( nd->u.scr.shop->item[i].nameid == id ) break; } } if( i != nd->u.scr.shop->items ) { nd->u.scr.shop->item[i].value = value; nd->u.scr.shop->item[i].qty = qty; } else { for( i = 0; i < nd->u.scr.shop->items; i++ ) { if( nd->u.scr.shop->item[i].nameid == 0 ) break; } // Judas Bound/Rental rental = script_getnum(st, 4); bound = script_getnum(st, 5); if (rental > 0) { bound = 0; } else { if (bound > 4) { ShowWarning("buildin_sellitem: Can't add %s (%s/%s), bound is out of range!\n", it->name, nd->exname, nd->path); return false; } } if( i == nd->u.scr.shop->items ) { if( nd->u.scr.shop->items == USHRT_MAX ) { ShowWarning("buildin_sellitem: Can't add %s (%s/%s), shop list is full!\n", it->name, nd->exname, nd->path); return false; } i = nd->u.scr.shop->items; RECREATE(nd->u.scr.shop->item, struct npc_item_list, ++nd->u.scr.shop->items); } nd->u.scr.shop->item[i].nameid = it->nameid; nd->u.scr.shop->item[i].value = value; nd->u.scr.shop->item[i].qty = qty; } return SCRIPT_CMD_SUCCESS; } But judas made an adjustments using this new code and you need to add " " on the item name. BUILDIN_FUNC(sellitem) { struct npc_data *nd; struct item_data *it; - int i = 0, id = script_getnum(st,2); + int i = 0, id; int value = 0; int qty = 0; int rental = 0; // Judas Bound/Rental int bound = 0; // Judas Bound/Rental + // Resolve Item + struct script_data *someItem = script_getdata(st, 2); + get_val(st, someItem); + if (data_isint(someItem)) { + id = script_getnum(st, 2); + } + else if (data_isstring(someItem)) { + const char* str = script_getstr(st, 2); + struct item_data *testData = itemdb_searchname(str); + id = testData->nameid; + } if( !(nd = map_id2nd(st->oid)) ) { ShowWarning("buildin_sellitem: trying to run without a proper NPC!\n"); @ -24308,7 +24321,7 @@ struct script_function buildin_func[] = { // /* New Shop Support */ BUILDIN_DEF(openshop,"?"), - BUILDIN_DEF(sellitem,"i?????"), // Judas Bound/Rental + BUILDIN_DEF(sellitem,"??????"), // Judas Bound/Rental Anyone know how can we use the item name instead of using the new code.
-
edit the conf/motd.txt
-
-
Look like changing IP is not the cause of this issue. make sure that you diff your client correctly and working. Use the data files for 2010 client and maybe its looking for some UI images that doesn't exist in your files.
-
I just put it to "Next Level" from to Thanks for the idea @sader1992.
-
I already solved this issue by hexing the client. But another issue is still have a text that need to convert. ´ÙÀ½ µî±îÁö this text should be converted to text.
-
[Showcase] Achievements, Titles, Random Options
nasagnilac replied to Luxuri's topic in Source Releases
What did you use for hexing? -
How to fix this unknown text or how I can find this?
-
Issue was solved by installing the right app in VS2017
-
How I can configure the roulette items?
nasagnilac replied to nasagnilac's question in General Support
Look like its not working properly and dont register the items from the database. I already changed it and nothing happens after server restart. -
How I can configure the roulette items?
nasagnilac replied to nasagnilac's question in General Support
Sorry Im just new in rathena, Im from herc and not familiar on what changes in rathena for a long time. Issue now I am having problem in other items that unknown. Look like I cant find this items who cause it. -
-
But its still not helping me. Its better to have video guide for rathena installation due to its changes. As you can see I downloaded the compile.bat in the guide sent to me but its still not working.
-
-
I still dont get how to compile in windows.
-
I downloaded the latest rathena and tried in VS2010 and 2013 then I receive an error that the version is too old. Anyone know how to compile it using windows.
-
working thnx Anyone know how to fix this? The floor goes up and when I added an npc or walk on that location they are floating.