-
Posts
2997 -
Joined
-
Last visited
-
Days Won
72
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Euphy
-
I'd be extremely careful with this, as it allows any level 60+ GM to query any input string into the database. Use at your own risk.
-
[SCRIPT] How to get the Character Class id or name?
Euphy replied to Tales's question in General Support
If you take a look at any scripts inside npc/jobs/ or npc/re/jobs/, you'll find plenty of good examples. Job constants are the first entries in db/const.txt. -
It's not a bug. On official servers, if a castle is unconquered, it can be freely taken at any time.
-
Read: Basic_Scripting > account (#) variables; Getitem
-
Yeah, I'm not sure why people purchased that script either...
-
They spawn at 00:01 server time. Search 'OnClock0001' in npc/guild/agit_main.txt and npc/guild2/agit_main_se.txt.
-
The only command that decreases a refine level is Downrefitem. If you search in the script (CTRL+F), you'll find that it only occurs once: set .@Drf, getequiprefinerycnt(.@part) - .@safe[.@wp]; for( .@i = 1; .@i <= .@Drf; .@i++ ) downrefitem .@part;The first line calculates the number of refines from the "safe" level, and the second line loops the 'downrefitem' command that number of times. So, if you delete those two lines, you'll have what you want.
-
NPC location - quests/newgears/2006_headgears.txt
Euphy replied to loremipsum's question in Scripting Support
In general, RateMyServer information hasn't been too accurate (although this was different in the past). -
conf/battle/monster.conf // Display some mob info next to their name? (add as needed) // (does not works on guardian or Emperium) // 1: Display mob HP (Hp/MaxHp format) // 2: Display mob HP (Percent of full life format) // 4: Display mob's level show_mob_info: 0
-
Players or monsters? (The latter is a configuration setting; the former will be quite a bit of work.)
-
Here's a script that does pretty much that: http://pastebin.com/raw.php?i=wTG07rbs It's really old and not too well-written, but just throwing it out there.
-
You have to do this manually, there's no shortcut. Make a list of cards and run queries through your databases to grab the data.
-
Use negative numbers to decrease the time. (If you look inside item_db, most of the entries use negative values.)
-
See the "Cast time/delay" section in doc/item_bonus.txt. In particular, reduce the fixed cast and variable cast of that skill to zero.
-
sql query that counts/checks how many key are already inserted
Euphy replied to iZeal's question in Scripting Support
So use a global variable ($var) to keep track of how many players have gotten the reward, i.e. increment it every time you give one. Much simpler than counting database entries. -
sql query that counts/checks how many key are already inserted
Euphy replied to iZeal's question in Scripting Support
SQL has a 'COUNT()' function: http://www.w3schools.com/sql/sql_func_count.asp Though I suggest you just keep a global variable instead (and sync it with SQL if necessary once when the server starts), since there's no point running the query repeatedly--that'd be much slower than checking a global. -
Missingno wanted you to use the optional event label, which you should read about. It triggers when the monster dies, so you can summon another monster upon death (or slightly delayed, which is where 'sleep' comes in).
-
Consider enabling the "Unique ID" feature in /src/config/core.h: /// Uncomment to enable Non Stackable items unique ID /// By enabling it, the system will create an unique id for each new non stackable item created //#define NSI_UNIQUE_ID
-
You'd probably want to use 'sleep' for this, since there's no reason to keep the player's RID attached for a mob respawn.
-
You could try contacting the webhost (seems like stablehost.com), and also file a DMCA request with Google to get the site deindexed.
-
Read: Enablenpc, Disablenpc, Basic_Scripting And:
-
They're custom versions of the official scripts, written before the official ones were implemented. They're mostly there for history (nobody's had the heart to delete them, since they must've been so much work to write...). You almost certainly want to use the official files.
-
Wow, this must've taken a lot of work to compile. Thanks for sharing!
-
Prompt script command won't return 255 on cancel
Euphy replied to Myskelz's question in Source Support
It was probably a misunderstanding on Aleos' part. We haven't caught it because, as you've noted, this isn't used in any of the official scripts. Please file a bug report and wait for a developer to get to it--thanks! -
I don't think anybody has ripped this script yet. (If you find it or rip it yourself, let me know so we an add it to our repository.)