Jump to content

Recommended Posts

Posted

Hello everyone. On current moment i`m develope new script engine for PTS server. Attach mono engine to the L2NPC server

 

MakerScript example

Spoiler

using System;

public class SpecialBossSpawn : MakerScript
{
	public override void onStart(MakerEvent e)
	{
		NpcMakerEx ex = e.myself;
		e.gg.SendMakerScriptEvent(ex, 1, 2, 3);
		for (int i = 0; i < ex.def_count; i++)
		{
			NpcSpawnDefineEx def = ex.GetSpawnDefine(i);
			Logger.Info($"def {def.name} {def.dbname}");
			if(def.has_dbname != 0)
				def.LoadDBNpcInfo(1010);
		}
	}

	public override void onDBNpcInfo(MakerEvent e)
	{
		Logger.Info($"Time {e.loaded_def.dbname} {e.loaded_def.respawn_rand} {e.loaded_def.respawn_time}");
		DBNpcInfo info = e.record0;
		if (info.is_alive == 0)
		{
			Logger.Info($"onDBNpcInfo dead {info.death_time}");
		}
		else
			e.loaded_def.SpawnEx(1, 0, info.x, info.y, info.z, 0, info.hp, info.mp, info.db_value);
	}

	public override void onNpcCreated(MakerEvent e)
	{
		e.gg.Announce($"onNpcCreated {e.created_def.dbname}");
	}

	public override void onNpcDeleted(MakerEvent e)
	{
		Logger.Info("onNpcDeleted ");
	}

	public override void onScriptEvent(MakerEvent e)
	{
		Logger.Info($"SciptEvent {e.script_event_arg1} {e.script_event_arg2} {e.script_event_arg3}");
	}
}

5a4af4947864a_PTSairesult.thumb.jpg.aaee24a3fa07e1125e3793d13b44e761.jpg

 

Allowed using old and new script engine.

 

Profit: 

  • Using .net frameworks
  • Easy developing. Using any program language supported mono.
  • Easy adding new features
    • add new methods
    • add new fields
    • add new script events (for some need extend l2server)
  • Better performance. Mono support JIT compilation.

 

Now i`m testing technology on PTS C4, after will be add support for GF.

In future will be work not only on l2npc.

 

Planning for sell

 

I will listen to any suggestions

Posted
19 minutes ago, Anarchy said:

meh extra scripting engine isn't really necessary on l2npc, l2server scripting engine though that'd be where it's at, event systems and all that shit yo

Dont know

  • don`t exists full compiler
  • standard ai.obj byte code not optimized
  • Every existing compiler don`t support HLL abstraction, only: for, while, switch standard statements.
  • Can`t allocate some custom object or structure
  • Problem with variables local and globals
  • Problem with adding extra native method or events
  • Can`t add inner methods
  • ... etc

so on and so on

Posted

yeah but literally no one cares about that man, ai functionality is good enough to do anything anyone wants to do with npcs atm, but anything else, any other kind of game functionality is 100% inaccessible to people who don't know c++ and asm...

 

want a custom bbs? tough shit

want a custom event which doesn't revolve around npcs? tough shit

want to log some statistics for your website? tough shit

want to try some kind of custom bot shit like they do on l2j (captcha etc)? tough shit

 

there's so many possibilities to open up l2off to a broader audience than just us wacko devs with a scripting engine on the l2server and if you're looking to sell this shit i can tell you right now, no one will buy a system which is basically AI+

Posted

In fact no one don't know programming on normal level in l2 community. But when someone stop from selling shit and buy this shit?I'm proposed solution to easy developing . If someone want make better ai or bot? why not? 


If it is better solution than others

 

One or more people will be interested. Your opinion is not an axiom, but only your opinion.

Posted (edited)

Interesting work, however

 

12 hours ago, Gttsu said:
  • don`t exists full compiler

 

Exists and you have it right under your nose - in l2npc.exe. You just need to know how to use it.

 

12 hours ago, Gttsu said:
  • standard ai.obj byte code not optimized

 

And bridging back and forth between C# and C++ will be much better...

 

12 hours ago, Gttsu said:
  • Problem with variables local and globals

 

Just extend CNPCEvent and/or GlobalObject and add whatever you want

 

12 hours ago, Gttsu said:
  • Problem with adding extra native method or events

 

Problem?

 

12 hours ago, Gttsu said:
  • Can`t add inner methods

 

Could be done in some preprocessor

 

Edited by eressea
Posted
On 1/2/2018 at 5:11 PM, Gttsu said:

In fact no one don't know programming on normal level in l2 community. But when someone stop from selling shit and buy this shit?I'm proposed solution to easy developing . If someone want make better ai or bot? why not? 


If it is better solution than others

 

One or more people will be interested. Your opinion is not an axiom, but only your opinion.

dude you asked for opinions and said you'd listen to suggestions (read the last line of your original post) so idk why you're getting that attitude about me doing what you asked lol

 

your intention is to sell this product, as someone who derives a large part of his income from selling shit in l2 space - trust me when i tell you there is no market for your product. no one wants a c# AI, the only people who even know wtf you're talking about with what your magic system can do vs AI are already making their own extenders for functionality AI can't provide, these people will not buy your product.

 

anything you want to do with NPCs the AI can already do so a new scripting engine is useless there, the true potential for a scripting engine is on the l2server not l2npc, just look at the kind of shit they do on l2j with java scripts - you get that same kind of functionality over to l2off and your pool of buyers will explode

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Продам комплекты (Custom Colour) Apella Сеты. Контакт со мной/Contact with me  Telegram. Custom Colour Apella Light YouTube Video
    • haha, I don't say it, chatgpt says it. discuss it with him if you have problems 😉 or sue chatgpt for lying, for example when he tells you that you are an idiot and tells you that I do things that are light years ahead of you.
    • hey i make enough to live comfortably you, on the other hand... doubt that'd be the case if you were as competent as you claim to be
    • all your doubts ask chatgpt, also ask what you could do yourself hahaha
    • This post originally appeared on MmoGah. Odin: Valhalla Rising is an ambitious open-world MMORPG developed with Unreal Engine 4, offering breathtaking visuals and immersive gameplay. I will share everything you need to know before starting it.     Re-rolling In Odin, re-rolling isn't a practical strategy. Unlike most gacha games, where it's common to reset for better initial pulls, Odin focuses heavily on long-term growth. The earlier you begin playing and developing your character, the more advantages you'll gain over time. Instead of spending your efforts on re-rolling for ideal equipment, it's better to dive in and start progressing right away.   Server Selection Before starting your character, selecting a server is a crucial step. Since Odin doesn't support cross-server gameplay, coordinating with your friends, family, or guildmates is essential to ensure everyone creates their characters on the same server. Take the time to plan with your group beforehand. After deciding on a server, your next major choice will be picking a class.   Class Breakdown Odin features four primary starting classes: Warrior, Sorceress, Rogue, and Priest. Each class comes with its own distinct playstyle and unique strengths, so choose wisely, as your selection is permanent. However, even free-to-play players can create up to three characters on one server, giving you the flexibility to try different options and find the one that matches your preferences.   Quest and Leveling Once your character is created, your initial objective is to work through the main questline. This acts as both a tutorial and a method for early leveling. Odin simplifies the process with a convenient quest button that handles navigation, starts dialogues, and even enables auto-combat. This user-friendly feature allows beginners to grasp the basics of the game without feeling overloaded.   Auto Combat and No Kill-steal Mode Auto combat is an essential feature in Odin, enabling your character to battle monsters autonomously. This system allows you to effortlessly gain experience and loot, even while you're busy studying, cooking, or unwinding. To optimize its use, activate the no-kill-steal mode. This setting prevents your character from targeting monsters already engaged by other players, helping you avoid conflicts or potential PvP situations. However, if a quest becomes difficult to complete due to overcrowded areas, you can temporarily disable this mode to overcome the obstacle and move forward.   Item Management and Potions Don't overlook the importance of consumable items, especially health potions. These can be purchased, along with buffs, from general merchants in villages, and they play a crucial role in improving your combat efficiency and ensuring your survival. Always aim to keep a full stock of HP potions and carry buffs that boost attack, defense, or regeneration in batches of 5-10 for convenience.   Once you've acquired your consumables, assign them to your quick slots located at the bottom center of the screen. Swiping down activates these slots, and items like potions will automatically be used when necessary, so you don't need to worry about them mid-battle. Keep a close eye on your potion reserves, as running out during a tough fight could leave you vulnerable before reaching a safe area. In the early stages of the game, it's better to return to town for a restock if supplies are low rather than risking unnecessary defeats. You can also enable notifications to alert you when your health or potion count drops too low—a handy feature for staying prepared if your attention is elsewhere.   Leveling and AFK Farming Once you've mastered the fundamentals, the next step is to focus on leveling up and enhancing your character. Gaining levels is your primary source of progression early on, as it not only improves your stats but also unlocks crucial game features and new abilities. At this stage, simply sticking to the main questline provides a reliable and efficient way to gain experience.   Additionally, Odin includes a highly convenient idle feature called AFK mode. This allows your character to keep farming for resources and experience even when the game is closed, with a maximum duration of 8 hours per day. It's an excellent option for making progress while you're asleep, commuting, or otherwise occupied.   Gear Upgrades When the time comes to improve your gear, the initial focus should be on upgrading from normal-grade equipment to high-grade items. These provide significantly better stats and can be enhanced further to increase their effectiveness. Enhancing requires enhancement stones and gold, but it's important to stay within the safe enhancement limit. Attempting upgrades beyond this limit carries the risk of destroying your gear if the enhancement fails. Stick to safe enhancements until you've gained more experience and accumulated spare equipment to mitigate potential losses.   Skill Purchases When you've accumulated enough gold, it's time to invest in skills. These are crucial for enhancing your combat abilities and provide key benefits tailored to your class, whether it's increasing damage output, improving healing capabilities, or adding valuable utility. Before purchasing, ensure your character meets the level prerequisites for each skill. Your ultimate goal will be progressing through and completing the main questline in Midgard as you continue to develop your character.   Unlocking Jotenheim Finishing this milestone grants you access to the next region, Jetunheim, unlocking a variety of new content and challenges. This marks your first significant achievement in the game and is an essential early objective to strive for as you progress.   Joining a Guild Joining a guild is a highly beneficial step in Odin. Guilds not only provide opportunities for social interaction and group activities but also offer passive bonuses that can significantly enhance your gameplay. Even if you're not particularly active socially, being part of any guild is advantageous. The guild feature becomes accessible after completing Chapter 4, Quest 19 of the main story.   Guilds provide various perks, including buffs that scale with the guild's level. Additionally, you can earn guild coins by contributing through donations, quest completions, or regular logins. These coins can be exchanged for valuable rewards, such as epic-grade armor. The more you actively contribute to your guild, the greater the overall benefits for both you and the guild itself. Joining early and staying involved will undoubtedly strengthen your progression in the game.   Conclusion Here is the end of this beginners' guide. I hope these tips will help you level fast in Odin.
  • Topics

×
×
  • Create New...