Jump to content

Dastgir

Script Developers
  • Content Count

    3803
  • Joined

  • Last visited

  • Days Won

    249

Posts posted by Dastgir


  1. a normal bro equip like 

     

    Hat of the Sun God [0]

    Elven Sunglasses [1] etc..

    Here's the Shop

    prontera,150,150,1	trader	HeadgearShop	952,{	OnInit:	tradertype(NST_CUSTOM);	sellitem Helm_Of_Sun,15;   //Sell for 15MC	sellitem Elven_Sunglasses,15;	end;	/* allows currency to be Red_Potion */OnCountFunds:	setcurrency(countitem(Mithril_Coin));	end;/* receives @price (total cost) */OnPayFunds:	if( countitem(Mithril_Coin) < @price )		end;	delitem Mithril_Coin,@price;	purchaseok();	end;}

    you can add more items below sellitem command.


  2. yeah i saw this already.. but im using older version.. so it doesnt fit to me.. that's why i used autoattack instead of bot release of goddameit, i want it but i also love the version im using currently even if its too old..

     

     

    btw thanks

    You should really consider updating your Hercules.


  3. King Poring Hat:

     

    bonus bDex,1+(getrefine()/4); bonus bLuk,1+(getrefine()/4); bonus bDelayrate,-10;  //I don't know what you mean by Event Period 

     

     
    Vanargand Helm:

     

    bonus bMdef,5; if (getrefine()<5){bonus2 bHPDrainRate,RATEHERE,1; bonus2 bSPDrainRate,RATEHERE,1;}else if(getrefine()<=6){bonus2 bHPDrainRate,RATEHERE,3; bonus2 bSPDrainRate,RATEHERE,1;}else if(getrefine()==7){bonus2 bHPDrainRate,RATEHERE,5; bonus2 bSPDrainRate,RATEHERE,2;}else if(getrefine()==8){bonus2 bHPDrainRate,RATEHERE,5; bonus2 bSPDrainRate,RATEHERE,2;} elseif(getrefine()==9){bonus2 bHPDrainRate,RATEHERE,8; bonus2 bSPDrainRate,RATEHERE,4;} //I dont know the rates, as Description say at a certain rate, If Rate and Absorbed HP/SP are in series, then we can apply formula like 1+(getrefine()/2) or something like that 

     

    MVP Basketball Hat:

     

    bonus2 bSubRace,7,10; bonus bVariableCastrate,-3; if(getrefine()>=12){bonus bVariableCastrate,1;}if(getrefine()>=14){bonus bVariableCastrate,1;} 	//By Human, I guess you mean Demi-Human,Fruit of Mastela, should have script on it, since we don't have any bonus to increase heal of item 

     

     
    Fruit of Mastela:

     

    if (isequipped(18729)){ itemheal rand(400,600)*130/100,0; } else{ itemheal rand(400,600),0; }	//Can't Edit MVP Basketball to increase heal amount of an item(Maybe I missed an item bonus??) 

     

     

    Hope it Helps....


  4. this patch so banking can only use in town mapflag

     

     

    src/map/clif.c | 4 ++++ 1 file changed, 4 insertions(+)diff --git a/src/map/clif.c b/src/map/clif.cindex c61a725..1934bbb 100644--- a/src/map/clif.c+++ b/src/map/clif.c@@ -17950,6 +17950,10 @@ void clif_parse_BankWithdraw(int fd, struct map_session_data* sd) { void clif_parse_BankCheck(int fd, struct map_session_data* sd) {     struct packet_banking_check p; +    if ( !map->list[sd->bl.m].flag.town ) {+        clif->colormes(fd,COLOR_RED,msg_txt(1483));+        return;+    }     if( !battle_config.feature_banking ) {         clif->colormes(fd,COLOR_RED,msg_txt(1483));         return;

     

    but for the plugin ... eh ... use a trick :P

    http://upaste.me/5f1d11081bf7e165e

    2 Condition returning same condition??

    Better if 

     

    if( !battle_config.feature_banking || !map->list[sd->bl.m].flag.town ) {

  5. in other words.. even if its pre-compiled plugins i need to do this? http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC ??

    precompiled plugin is usually in form of .dll or .so, you have to put that in plugins/ folder and edit only plugins.conf, and nothing else.

    but precompiled plugins may not work if hpm is updated, or you are using old version, but plugin is compiled with latest version, it may cause random crash(if it gets loaded).


  6. You haven't compiled the plugins, for windows .dll File is placed inside "plugins/" not "src/plugins"(.c file is placed insde src/plugins),Compile your plugin , then try to run. 


  7. For enabling autoattack

    //====================================================//=       _   _                     _           //=      | | | |                   | |          //=      | |_| | ___ _ __ ___ _   _| | ___  ___ //=      |  _  |/ _  '__/ __| | | | |/ _ / __|//=      | | | |  __/ | | (__| |_| | |  __/__ //=      _| |_/___|_|  ___|__,_|_|___||___///=                                                  //=            http://herc.ws/board/                        //====================================================//== Topic Discussion ================================//== http://herc.ws/board/topic/549-introducing-hercules-plugin-manager///====================================================//== Description =====================================//The plugin system allows you to create customized scripts //outside of the source. These scripts won't conflict with any //future source updates - think of it as a /conf/import/ for the source. //====================================================/* --------------- Format ---------------After you have listed your  plugin(s) in "quotations", you need to put in a comma, to separate the plugins.-----------------------------------------plugins_list: [	"example",	"other",]-----------------------------------------Please note that your scripts need to be savedin the .c (source code) extension and placed in the /src/plugin/ folder.-----------------------------------------*/plugins_list: [	/* Enable HPMHooking when plugins in use rely on Hooking */	"HPMHooking",	"autoattack",	//"db2sql",	//"sample",	//"other",]

    This would be plugins.conf, (P.S: File name should be autoattack.dll in order for this to work)


  8. pertz is an item haha noskill mapflag dont stop it

    But it's script is "itemskill RK_STORMBLAST,1;"(item is casting a skill using scriptcommand) So noskill mapflag should stop this, but that's not happening. 


  9. Good day, hercs.

     

     

    just want to know what are the things i need for updating my plugins

     

    coz there's alot of good stuff in plugin section but i failed to apply them...

     

     

    i will show my outdated plugins folder/files

     

    sry this is my first time messing with the plugins.

    Can you Elaborate, what you mean by " but i failed to apply them..."

    IF a Plugin Use HPMHooks, Compile your HPMHook Plugin and uncomment "HPMHooking" line.

    You have to add new line with the name of the file at plugins.conf

    Like if you have plugin named "HelloWorld.dll" then you will have to add 

     

        "HelloWorld",

    Below "HPMHooking" Lines.

     

    Compiling Plugin in linux is too easy, just type "make plugins" after you put your plugin file in src/plugins/

     

    For compiling Plugin in Windows, Check http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC

    For more info on compiling on Linux, Check http://herc.ws/wiki/Building_HPM_Plugin_for_gcc

     

    That's more than enough to know how to install a plugin.


  10.  

    I forgot to put " " lols :D

     

    How to make it 10% only?

    OnNPCKillEvent:	if ((strcharinfo( 3 ) != "prt_fild04" || killedrid !=  1002) && (rand(100)>=10) ) end;	getitem 7227, 1;	end;

    This will make a 10% chance.


  11.  

    There's a script already on hercules that follows Euphy's Quest Shop but in different structure. Try NST_CUSTOM. I use it for my server and it was very useful for custom currencies!

     

    To learn more

    Check doc/sample/npc_trader_sample.txt

    I will test it

    EDIT:

    Hmm it seems to  hard to edit specially when u are making alot of quest.

    Can u guide me a sample please by using that structure?

    Lets say

    Solar God Helm  needs to have a 1 apple 2 Orange Juice and 2 Grape Juice.

    how to do it there? 

    Hercules trader npc is for constant currency, like replacement of tcg shop,mc shop. And maximum 2 currency can be set with tradernpc.

  12. @annie

    sorry, I was like how u got to know that topicstarter was uding which emu, I almost got blinr and havent seen left side.

     

     

    @ontopic

    it wont reset , instead just update the file(add/remove lines), but if there are many edits, it will surely cause conflicts, which u need to fix manually or by programs like winmerge.


  13. function    script    boxweight    {  //callfunc("boxweight",ItemID,Quantity,BoxID)if (checkweight(atoi(getarg(0)),atoi(getarg(1)))){    getitem atoi(getarg(0)),atoi(getarg(1));}else{    getitem atoi(getarg(2)),1;}end;}
    Replace spaces with tab,(And suddenly i realize, i cant type tab button in mobile)

    Usage: on item script, put

    callfunc("boxweight",ItemID,Quantity,BoxID)

    And only change itemid,quantity and boxid,

     

    P.s:added atoi since many here put quotes.


  14. have some common sense if you are using rathena ....http://rathena.org/board/topic/84892-rathena have addrid like 9 months ago !like I said, I'm not gonna support those people using old emulator

    Isnt this hercules? Addrid is available as plugin not on source by default i believe. http://herc.ws/board/topic/3285-script-command-addrid/

    Pull request was rejected https://github.com/HerculesWS/Hercules/pull/211 , stating that haru is working on somehing like this.

×
×
  • Create New...

Important Information

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