Jump to content

  •  

Zephy

Member Since 09 Jun 2013
Offline Last Active Jan 27 2014 04:27 AM
*****

Topics I've Started

countitem loop

03 January 2014 - 11:11 PM

So i'm trying to avoid writing out all the 'countitem' stuff and just do it in a loop.

 

-	script	Deleter -1,{		for(.@i = 0; .@i < getarraysize(.item[0]); .@i++)	{		if(countitem(.item[.@i]) >= .amt)		{			delitem .item[.@i], .amt;		}	}	setarray .item[0], 501, 502, 503, 504;	.amt = 1;}

 

But for some reason it doesn't work. Can anyone tell me where my error is exactly? Did I do the logic wrong?


Modified Healer

05 December 2013 - 11:54 PM

File Name: Modified Healer
File Submitter: Zephy
File Submitted: 06 Dec 2013
File Category: Scripts

Versatile healer that can be configured easily. Additional features include price, buffs, repair, and delay per use. Modified from Euphy's healer.

Click here to download this file

Banker

05 December 2013 - 11:50 PM

File Name: Banker
File Submitter: Zephy
File Submitted: 06 Dec 2013
File Category: Scripts

[font="helvetica, arial, sans-serif;"]Here is a veristile Banker NPC that allows exchanging of an item for zeny, vice versa, and storage of said item without the use of a SQL database. I've noticed that there weren't many of these "Banker" NPCs in the athena project, and the ones that were, weren't the way I personally wanted them. So I made this :x. Its fully tested and working with the latest revision of Hercules.[/font]

Click here to download this file

Banker

04 December 2013 - 05:31 PM

This is the first script I'm going to release to the public for Hercules. I'm still new to Hercules but I think I've got it down for the most part. This NPC a versatile Banker that allows for storage and exchanging (item ---> zeny, and vice versa) of an item (made for bank notes, but they can be anything really) without using a SQL databse. I've noticed this type of NPC has been scarce around all the Athena emulators, so I decided to make one :x. I made this during my break in between classes so it has NOT been tested yet. Over the next few days I'll be testing it and changing it, but for now, here is the initial release.

 

I will fully support this script so if something is wrong, let me know.

 

I would also love some input on this script. What should I do differently, is it a clean script, does it work, are there any shortcuts I should know about? Let me know!

 

EDIT: I have tested it, fixed it up and added some things. The new script can be found here.


Remove the delay from a skill

26 November 2013 - 10:48 PM

So I was wondering if there is a way to make a skill have the same effect as setting no_skill_delay to 1 (in conf/battle/skill.conf), but for a specific skill, not all skills.

 

I have already set delay_rate to 0 as well, however, it's skill not fast enough. 

 

Any ideas?