Source Modifications
Source Mods & Code Snippets located here.
135 files
-
Script command: Dynprompt
By Talis
Works like prompt(), but lets you specify return values by adding a pipe symbol.
Examples:
dynprompt("Menu Entry");
Return Value: 1
@menu: 1
@menustr$: Menu Entry
@menunum: 1
dynprompt("^EE0000Menu Entry^000000|Test");
Return Value: 1
@menu: 1
@menustr$: Test
@menunum: 1
dynprompt("Shazam|5 Shazam");
Return Value: 5
@menu: 1
@menustr$: 5 Shazam
@menunum: 5
Script example:
// Dynprompt usage - Advanced example// Probably the best way to use thisfunction script dynprompt_sample3 { // The real power of dynprompt is that you can specify the return value for each menu element. // The return value is a atoi of the string following the pipe | - the full string can be accessed through @menustr$ // The atoi val can also be accessed through @menunum // If you want to use both number & string, the number has to come first else atoi won't work // Use the pipe character | to denote the return value - best to work with numbers, but strings work as well set .@menu$[0], "^009900Hello!^000000|1Hello"; set .@menu$[1], "^0000EEInfo~^000000|2Info"; set .@menu$[2], "^222222Test.^000000|3Test"; // This time we'll just add a element based on a condition if(.@somecondition) set .@menu$[3], "^EE0000- Admin -^000000|4Admin"; set .@menu$[4], "^990099G'bye^000000|5Bye"; // Lets implode & switch/case switch(dynprompt(implode(.@menu$, ":"))) { case 1: mes "Oh, Hello to you too!"; break; case 2: mes "You want info? How about the time?"; mes gettimestr("%Y-%m/%d %H:%M:%S",21); mes "Also, you selected option #" + @menu; // @menu still works break; case 3: mes "Debug info:"; mes "@menu is " + @menu; mes "@menustr$ is " + @menustr$; mes "@menunum is " + @menunum; break; case 4: mes "Wow, a admin!"; break; case 5: mes "Bye bye~"; break; case 255: // Cancel button mes "Hey, don't ignore me!!"; break; } close;}
I havn't tested it yet in production, but so far I havn't been able to encounter any issues with it.
Also, I do all my eAthena devving on a windows box so I can't guarantee that it'll work with linux.
Performance of dynprompt is going to be naturally worse than prompt, select or menu, but it might perform equally well in a dynamic setting if you take into consideration the array looping usually required - but I have not yet done any benchmarking or anything, so don't take my word for it. ( and to be honest, being able to create super clean code using switch / case is worth a tiny performance hit for me )
I hope it will make your scripting less painful - it sure has for me!
33 downloads
Submitted
-
@lockid - Account Protection for Gepard
By Break
Bind your account to the hardware and login the game only from it. Compatible only with Gepard Shield
9 purchases 21 downloads
Submitted
-
Devotion and Defender + Auto Guard Fixed
By BeWan
In response to this post : + two client requesting this
Kindly message me if you want to buy this.
By downloading this file, you agree with my Terms of Service:
• You are not allowed remove my signature from any of the included files.
• You are not allowed claim my work as yours.
• I can give you support, kindly message me.
4 purchases 17 downloads
Updated
-
@lastteleport command
By Easycore
@lastteleport command
Description
A simple atcommand that allows you to see your last position before you teleport.
It ping your mini-map with a red cross (especially for MvP Hunting).
________________________________________________________________
By downloading this file, you agree with my Terms of Service:
You are not allowed remove my signature from any of the included files. You are not allowed claim my work as yours. I can give you support, contact me in Discord: Easycore#9709.5 purchases 10 downloads
Submitted
-
RODEX and BANK disabled - NORODEX and NOBANK MAPFLAG
By BeWan
You can disabled rodex and bank feature just add mapname in rodex.txt
You can use this mod to complete disabled rodex and bank function in the whole server by editing the condition in mod.
Kindly message me if you want to buy this.
By downloading this file, you agree with my Terms of Service:
• You are not allowed remove my signature from any of the included files.
• You are not allowed claim my work as yours.
• I can give you support, kindly message me.
2 purchases 9 downloads
Updated
-
Hop Jump
By Vykimo
Hop Jump [ GLO_SAUT ]
Can be used with the skill id 5000 or the atcommand @hop <skill level>
2 purchases 8 downloads
Submitted
-
@increase - FAKEPLAYER
By God Usopp
fakeplayer, this command allows you to visually increase your players.
6 purchases 8 downloads
Updated
-
MVP Tomb save timer on Server Restart
By AllanEpi
1) Upon killing MVPs, it will save the date and time of death, killer , monster and map where it was killed in the database.
2) During server restart, reload or sudden crash, before spawning mobs, it will check and differentiate the date and time saved in the database with the current server time and check if the MVP should be alive or dead.
- If ALIVE, should spawn the MVP
- If DEAD, will not spawn the MVP, spawn the tomb (if tomb is enabled in the server config) and create a timer to spawn the MVP from the time it was killed
4 purchases 6 downloads
Submitted
-
EndlessTower HardMode
Modified EndlessTower :
- Hard mode.
- Reset Quest.
- Instant Jump to LV 100.
- Random Gift in hardmode.
- Costume Enchant in Hardmode (With Required Items).
- HP modification on boss fight.
2 purchases 5 downloads
Updated
-
Racing Cap Enchant
This Enchant System is based on this KRO : Hugel monster racing - Content updates - Divine Pride (divine-pride.net)
0 purchases 2 downloads
Updated
-
Recently Browsing 0 members
- No registered users viewing this page.