Jump to content

rans

Members
  • Content Count

    358
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by rans


  1.  

    @ Did you compile it without errors? Please make sure that you type the correct name in conf/plugins.conf

    plugins_list: [	/* Enable HPMHooking when plugins in use rely on Hooking */	"HPMHooking", //<-- Enable HPMHoocking	//"db2sql",	//"sample",	//"other",	"costumeitem", //<-- Add this command at the bottom]

    Hi,

     

    I did not get any error and yes i put it on plugins.conf

     

    dfwwi.png


  2. @

    Make sure that you download 3.4 version.. its still working on latest Herc.

    Hi,

     

    I tried to replace it with the latest version but i got this. unknown command. (I did recompile all after changing the script)

     

    xl9tty.png


  3. Hi,

    I would like to ask if this script is possible and i would be very happy if you can make it :)


    for example i have +1 mink coat. and i want it to upgrade (+2 mink coat) in order for that the requirements will be change into some currency. ex Mithril coin
    aside from that there is a time waiting. ex 15minutes. and then even you log out. the timer still count and when you comeback it will upgrade your item. (During the time of upgrading, you can't use the item) 
    and requirements, time increase as the level increases ex. +2mink coate (2mc, 15minutes) +3mink (3mc, 1hr)
    like that. 

    thank you ^_^


  4. Nakagamit na ako ng eamod, ramod pero same paren reklamo ng mga players saken na mas gusto nila yon "DATI" and ang tinutukoy nilang dati. is -3ceam r735
    yon ang alam kong old mechanics pa pati sa asura at iba pang skills pati pala yon frost lock na sinasabi nila.
     


  5. Hi, 

    I am trying to add this patch.


     Index: map/pc.c===================================================================--- map/pc.c	(revision 17101)+++ map/pc.c	(working copy)@@ -2612,6 +2612,8 @@ #endif	 default:		 ShowWarning("pc_bonus: unknown type %d %d !n",type,val);+		ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],+			sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]		 break;	 }	 return 0;@@ -3181,6 +3183,8 @@		 break;	 default:		 ShowWarning("pc_bonus2: unknown type %d %d %d!n",type,type2,val);+		ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],+			sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]		 break;	 }	 return 0;@@ -3308,6 +3312,8 @@	  default:		 ShowWarning("pc_bonus3: unknown type %d %d %d %d!n",type,type2,type3,val);+		ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],+			sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]		 break;	 } @@ -3350,6 +3356,8 @@	  default:		 ShowWarning("pc_bonus4: unknown type %d %d %d %d %d!n",type,type2,type3,type4,val);+		ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],+			sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]		 break;	 } @@ -3378,6 +3386,8 @@	  default:		 ShowWarning("pc_bonus5: unknown type %d %d %d %d %d %d!n",type,type2,type3,type4,type5,val);+		ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],+			sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]		 break;	 }


    but i got an error
    pc.c:2738: error: 'current_equip_item_index' undeclared (first use in this function)

    perhaps there is an alternative command for current_equip_item_index ?

    thank you

  6. Hi,

    I've tried to use the script but i am getting an infinite loop error in my mapserver after executing the command

    [Warning]: Unexpected type for argument 1. Expected number.[Debug]: Data: label pos=849[Debug]: Function: __jump_zero[Debug]: Source (NPC): test1235678 (invisible/not on a map)[Debug]: mapindex_name2id: Map "" not found in index list![Warning]: checkcell: Attempted to run on unexsitent map '', type 6, x/y 159,157

  7. Hi
    Can i ask help with making a plugins? and i am new to hercules. i have a src code for @flooritem (working in rAthena. not tested in hercules) if you could help me to make this plugin. that would be very helpful :)

    atcommand.c ACMD_FUNC(flooritem){	char item_name[100];	int number = 0, count;	struct item_data *item_data;	nullpo_retr(-1, sd);	 memset(item_name, '0', sizeof(item_name));	 if( !message || !*message || (		sscanf(message, ""%99[^"]" %d", item_name, &number) < 1 &&		sscanf(message, "%99s %d", item_name, &number) < 1	)) {		clif_displaymessage(fd, "Usage: @flooritem <itemname/itemid> [quantity]");		return -1;	}	 if( number <= 0 )		number = 1;	 if ((item_data = itemdb_searchname(item_name)) == NULL &&	    (item_data = itemdb_exists(atoi(item_name))) == NULL)	{		clif_displaymessage(fd, msg_txt(sd,19)); // Invalid item ID or name.		return -1;	}	 count = map_addflooritem_area(&sd->bl, 0, 0, 0, item_data->nameid, number);	 if( count != 0 )		if( number == count )			clif_displaymessage(fd, "All items created.");		else		{			sprintf(atcmd_output, "%d item(s) created.", count);			clif_displaymessage(fd, atcmd_output);		}	else {		clif_displaymessage(fd, "No items created!!.");		return -1;	}	 return 0;}------------------------------------		ACMD_DEF(flooritem),-------------------------------------map.cLine 1501: int map_addflooritem_area(struct block_list* bl, int16 m, int16 x, int16 y, int nameid, int amount){	struct item item_tmp;	int count, range, i;	short mx, my;	 memset(&item_tmp, 0, sizeof(item_tmp));	item_tmp.nameid = nameid;	item_tmp.identify = 1;	 if( bl != NULL ) m = bl->m;	 count = 0;	range = (int)sqrt(amount) +2;	for( i = 0; i < amount; i++ )	{		if( bl != NULL )			map_search_freecell(bl, 0, &mx, &my, range, range, 0);		else		{			mx = x; my = y;			map_search_freecell(NULL, m, &mx, &my, range, range, 1);		}		 count += (map_addflooritem(&item_tmp, 1, m, mx, my, 0, 0, 0, 0, 4) != 0) ? 1 : 0;	}	 return count;}  --------------------------------------------map.hLine 854: int map_addflooritem_area(struct block_list* bl, int16 m, int16 x, int16 y, int nameid, int amount); --------------------------------------------- mob.cLine 2872:			 if( md->option.item_drop > 0 && itemdb_exists(md->option.item_drop) && md->option.item_amount > 0 )			{				map_addflooritem_area(&md->bl, 0, 0, 0, md->option.item_drop, md->option.item_amount);				clif_misceffect(&md->bl,10);				md->option.item_drop = 0;				md->option.item_amount = 0;			}  ----------------------------------------------script.cLine 17850: BUILDIN_FUNC(flooritem){	struct map_session_data *sd = script_rid2sd(st);	struct item_data *item_data;	int nameid, amount;	 if( sd == NULL ) return 0;	 nameid = script_getnum(st,2);	if( (item_data = itemdb_search(nameid)) == NULL )		return 0;	 amount = script_getnum(st,3);	if( amount <= 0 )		return 0;	 map_addflooritem_area(&sd->bl, 0, 0, 0, nameid, amount);	return 0;} BUILDIN_FUNC(flooritem2xy){	struct item_data *item_data;	int nameid, amount, m, x, y;	const char *mapname;	 mapname = script_getstr(st,2);	if( (m = map_mapname2mapid(mapname)) < 0 )		return 0;	 x = script_getnum(st,3);	y = script_getnum(st,4);	nameid = script_getnum(st,5);	if( (item_data = itemdb_search(nameid)) == NULL )		return 0;	 amount = script_getnum(st,6);	if( amount < 1 )		return 0;	 map_addflooritem_area(NULL, m, x, y, nameid, amount);	return 0;} -------------------------------  



    Thank you very much /no1

  8. Hi!

    Is there any way to disable the case sensitivity for every script? example
    i have "bunbreakableshield" then it will produce an error and need to rewrite the script into "bUnbreakableShield"

    I have a lot of custom items from other emulator and it will take me decades to manually rewrite them /omg

    Thank you/

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.