DLL + Source, #Update

Socius Decennalis
Decennium
Joined
Mar 20, 2009
Messages
374
Reaction score
378
i started to rewrite this dll

old post:
hey,
i want to Release this dll + source with some stuff i found here on ragezone.
most of it is not my own work, basicly i just compiled this in one dll.

maybe its usefull for some ppl to have that in one working project.

Funktions are.
Teleport with commands.(locations/commands/message can be defined in .ini)
Teleport to M/X/Y coordinate.
Buff all player on command (buffs can be defined in .ini)
Buff all player (/cbuff -id 45 -cd 1800 -ic 50)
Get yourself geons (/geon -a 1232465)
Reward item on levelup (items/sp and cp)
Hooked ExecuteSkill so you can write your own skills.
a DLL Loader
All commands and Admin levels for the commands can be defined at the .ini
same as the Teleport/RewardItem messages

it can be used as proxy dll, just hexedit the main server and replace GDI32.dll with LunaS.dll
or just load it with any dll loader

ive testet it on my local server only, i used it the past 6 or 7 weeks didnt had any problems but that means not that it is bug free.

im sure the code can be alota better too but hey at least its working.

#Update
added Teleport Items

#Update
You can set a Geon value for the teleport item and command.
the value will be removed from the player inventory
and the Teleport item will be removed after using.

#Update
Added some kind of a GoldenPot item
if you use the item it gives you random stuff
you can define the out given items in the .ini
fixed a little bug with the PlayerMessage while using meds


Some more stuff i found.
may useful for some ppl

Code:
[B]//Physic attack[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 92))(thispointer, 27, 1, 30000);

[B]//Magic attack[/B]
// (*(void (__cdecl **)(void *, signed int, signed int, int))
// (*(DWORD*)thispointer + 92))(thispointer, 28, 1, 30000);

[B]//Defense[/B]
// (*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 92))(thispointer, 15, 1, 30000);

[B]//Absorbtion rate[/B]
// (*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 92))(thispointer, 16, 1, 50);

[B]//minimal magic attack[/B]
// (*(void (__cdecl **)(void *, signed int, signed int, int))
// (*(DWORD*)thispointer + 92))(thispointer, 13, 1, 1000);
										
[B]//Maximal physic attack[/B]
// (*(void (__cdecl **)(void *, signed int, signed int, int))
// (*(DWORD*)thispointer + 92))(thispointer, 12, 1, 1000);

[B]//Minimal physic attack[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 92))(thispointer, 11, 1, 1000);

[B]//Evasion[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 92))(thispointer, 10, 1, 1000);

[B]//On target point[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 92))(thispointer, 9, 1, 1000);

[B]//Mana[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 92))(thispointer, 6, 1, 1000);

[B]//Health[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 92))(thispointer, 5, 1, 1000);

[B]//Fire Resistance[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 92))(thispointer, 18, 1, 1000);

[B]//Ice Resistance[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 92))(thispointer, 19, 1, 1000);

[B]//Lightning Resistance[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 92))(thispointer, 20, 1, 1000);

[B]//Curse Resistance[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 92))(thispointer, 21, 1, 1000);

[B]//Non Elemental Resistance[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 92))(thispointer, 22, 1, 1000);

[B]//Skill Point[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 88))(thispointer, 24, 1, 1);

[B]//Stat Points[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 88))(thispointer, 23, 1, 5);

[B]//Level[/B]
//(*(void (__cdecl **)(void *, signed int, signed int, int))
//(*(DWORD*)thispointer + 88))(thispointer, 26, 1, 1);


New Version:

Current Funktions:
Teleport Item
Teleport Command Example: (/temp)
Buff Command Example: (/BuffAll 5 50 50)
Speed Command Example: (/speed 100)
Coordinates Command Example: (/coords)
Reload Config Command Example: (/reloadcfg)

#Update
Monster Summoning scroll

New ConfigFile

the dll will create the config file if you load it.
it will look like this:
Code:
/*##################################################################*/
/*########################LunaS Configuration#######################*/
/*##################################################################*/

/*TeleportItem*/
(TeleportItem (Level 1) (Index 600110) (RequiredItem 0 0) (DeleteReqiredItem "false") (teleport 0 267634 243008) (FailMessage "You need item XXX to teleport") (AssasinMessage "You can't teleport in assasin mode!"))

/*TeleportCommand*/
(TeleportCommand (RequiredLevel 1) (Command "/temp") (RequiredItem 0 0) (DeleteReqiredItem "true") (teleport 0 267634 243008) (Geon 0) (Message "Teleported!") (AssasinMessage "You can't teleport in assasin mode!") (RequiredItemMessage "You need item XXX to teleport"))
(TeleportCommand (RequiredLevel 1) (Command "/naro") (RequiredItem 0 0) (DeleteReqiredItem "true") (teleport 0 267634 243008) (Geon 100) (Message "Teleported!") (AssasinMessage "You can't teleport in assasin mode!") (RequiredItemMessage "You need item XXX to teleport"))
(TeleportCommand (RequiredLevel 1) (Command "/cargo") (RequiredItem 0 0) (DeleteReqiredItem "true") (teleport 0 267634 243008) (Geon 100) (Message "Teleported!") (AssasinMessage "You can't teleport in assasin mode!") (RequiredItemMessage "You need item XXX to teleport"))
(TeleportCommand (RequiredLevel 1) (Command "/mine") (RequiredItem 0 0) (DeleteReqiredItem "true") (teleport 0 267634 243008) (Geon 100) (Message "Teleported!") (AssasinMessage "You can't teleport in assasin mode!") (RequiredItemMessage "You need item XXX to teleport"))
(TeleportCommand (RequiredLevel 1) (Command "/pub") (RequiredItem 0 0) (DeleteReqiredItem "true") (teleport 0 267634 243008) (Geon 100) (Message "Teleported!") (AssasinMessage "You can't teleport in assasin mode!") (RequiredItemMessage "You need item XXX to teleport"))
(TeleportCommand (RequiredLevel 1) (Command "/cop") (RequiredItem 0 0) (DeleteReqiredItem "true") (teleport 0 267634 243008) (Geon 100) (Message "Teleported!") (AssasinMessage "You can't teleport in assasin mode!") (RequiredItemMessage "You need item XXX to teleport"))



/*CustomBuffs*/
(CustomBuff (Buff 5 50 50))
(CustomBuff (Buff 6 50 50))
(CustomBuff (Buff 12 50 50))
(CustomBuff (Buff 4 50 50))
(CustomBuff (Buff 3 50 50))
(CustomBuff (Buff 15 50 50))


/*Monster Summoning scroll*/
(Summoning (Index 6000) (Monster 2 5))
(Summoning (Index 6000) (Monster 3 5))

Config Parser by strik3r (not included)

i gonna add all the other Funktions as well again but thats it for now.


StandAlone Dll to Buff all Player Requested by meme50
Command: /BuffAll BuffID BuffCD BuffIC
Example: /BuffAll 5 50 50 <<< 50 sec. baked eel

Another Request by meme50
Added a config File so the buffs can be defined.
Command: /CBuffAll
Config:
Code:
(CustomBuff (Buff ID CD IC))
(CustomBuff (Buff 5 50 50))

Source of the function:
Code:
void LunaCommand::BuffAll()
{
	if(this->command->beginWith("/BuffAll") && this->player->isAdmin())
	{
		int BuffID = this->command->GetIntValue(1);
		int BuffCD = this->command->GetIntValue(2);
		int BuffIC = this->command->GetIntValue(3);

		if(BuffID <= 0){this->player->PlayerMessage("LunaS_Buff","Set a Buff ID.");}
		else if(BuffCD <= 0){this->player->PlayerMessage("LunaS_Buff","Set a Buff Cooldown value.");}
		else if(BuffIC <=0){this->player->PlayerMessage("LunaS_Buff","Set a Buff Stat Increase value.");}

		else if(BuffID > 0 && BuffCD > 0 && BuffIC > 0){
			KServer Server;
			Server.BuffALL(BuffID,BuffCD,BuffIC);
		}
	}
	else if(this->command->beginWith("/CBuffAll") && this->player->isAdmin())
	{
		for (BuffSystemIt = BuffSystem.begin(); BuffSystemIt != BuffSystem.end(); BuffSystemIt++)
		{
			KServer Server;
			Server.BuffALL(BuffSystemIt->BuffID, BuffSystemIt->BuffCD, BuffSystemIt->BuffIC);
		}
	}
}



 
Last edited:
Re: DLL + Source, some stuff i found here in one dll

thank you <3 can anyone make example of any skill damage? to this source :D I know there is an example with behead, I can write own skills only till mana point usage xD I need dmg
 
if you could write any skill for example sword dance for me I will thank you very much (for example 1000 damage every time if its easier) I mean to this source.
 
#Update
You can set a Geon value for the teleport item and command.
the value will be removed from the player inventory
and the Teleport item will be removed after using.
 
Last edited:
#Update
Added some kind of a GoldenPot item
if you use the item it gives you random stuff
you can define the out given items in the .ini
 
hehe . sry but i saw there in the source -> thief_run and i am testing it right now maybe ill succed to do it ! thanks for the nice release
 
what about :

PHP:
[RandomItem_01]
MainItemIndex = 689

Index_01 = 8000
Amount_01 = 1

Index_02 = 8001
Amount_02 = 1

Index_03 = 8002
Amount_03 = 1

Index_04 = 8004
Amount_04 = 1

Index_05 = 8005
Amount_05 = 1

Index_06 = 8006
Amount_06 = 1


; Gold Pot
(item (name 889) (Index 689) (Image "item182") (desc 351) (class general etc) (code 4 8 0 0) (country 2) (use 1) (plural 1) (cooltime 1000) (buy 0) )

when i use golden pot, i still get **** items like speed up, meds, etc...
 
what about :

PHP:
[RandomItem_01]
MainItemIndex = 689

Index_01 = 8000
Amount_01 = 1

Index_02 = 8001
Amount_02 = 1

Index_03 = 8002
Amount_03 = 1

Index_04 = 8004
Amount_04 = 1

Index_05 = 8005
Amount_05 = 1

Index_06 = 8006
Amount_06 = 1




when i use golden pot, i still get **** items like speed up, meds, etc...

thats because the gold pot and the silver pots are hardcoded so it will still give you the same items it always has before.

you need to make a new item to make this work correct.

example:


;custom pot
(item (name 25242) (Index 25242) (Image "custompot") (desc 25242) (class general etc) (code 4 8 0 0) (country 2) (use 1) (plural 1) (cooltime 500) (buy 0) )








[RandomItem_01]
MainItemIndex = 25242


Index_01 = 982
Amount_01 = 10


Index_02 = 983
Amount_02 = 10


Index_03 = 982
Amount_03 = 25


Index_04 = 983
Amount_04 = 25


Index_05 = 982
Amount_05 = 5


Index_06 = 983
Amount_06 = 5
 
People need less amount of exp to level up (like 6-7 bars only), and there are more bugs like for example: u have 3 tp scrools in inventory, u use 1, but it uses 2 of them, and only 1 left from 3 tp scrools.


ok i thought i was just crazy when i saw same thing happening in my server too.

i have the same exact issues with the exp too but i havent noticed the teleport scrolls missing yet.

how many people do you have testing in your server ? is it just you or do you have other people in it too ?

the reason i am asking is because TheDragon released a very old version of his reward system a long time ago and it had a bug in it that you didnt notice unless you had alot of people testing or running a live server. The bug was when u got a level up reward it would give you instead of like x10 of an item it gave you like x1000 or more of the item. But when i tested ALONE in my server it was 100% working fine but when i went live it was all messed up and doing what i just told you it did.

so i was wondering if maybe we are going to have the same kind of problems using this DLL too which is why i asked how many people are you testing with in your server or if your alone.

also the exp bug is worse then u think ;) when you reach around level 81 the bars COMPLETELY get messeed up and the exp is still bugged too.

so i dont know what was edited when making this DLL but yes the exp is completeley screwed up for me too.

by the way this is WITH or WITHOUT using the level extension i have the exp errors so i just thought i would say that before people started saying i must be using the level extension ( which is bugged too )


SIDE NOTE:

just because something works fine for 30 people doesnt mean it works fine for all .... just a thought for the coders ( even tho im sure you only care that it works for you )

if i could do it better i would but im not a coder so i guess i will just do what makes more sense anyway and use what KALONLINE gave me by default and stop trying to use all these bugged addons the "pros" claim work so well
 
Last edited:
ok i thought i was just crazy when i saw same thing happening in my server too.

i have the same exact issues with the exp too but i havent noticed the teleport scrolls missing yet.

how many people do you have testing in your server ? is it just you or do you have other people in it too ?

the reason i am asking is because TheDragon released a very old version of his reward system a long time ago and it had a bug in it that you didnt notice unless you had alot of people testing or running a live server. The bug was when u got a level up reward it would give you instead of like x10 of an item it gave you like x1000 or more of the item. But when i tested ALONE in my server it was 100% working fine but when i went live it was all messed up and doing what i just told you it did.

so i was wondering if maybe we are going to have the same kind of problems using this DLL too which is why i asked how many people are you testing with in your server or if your alone.

also the exp bug is worse then u think ;) when you reach around level 81 the bars COMPLETELY get messeed up and the exp is still bugged too.

so i dont know what was edited when making this DLL but yes the exp is completeley screwed up for me too.

by the way this is WITH or WITHOUT using the level extension i have the exp errors so i just thought i would say that before people started saying i must be using the level extension ( which is bugged too )


SIDE NOTE:

just because something works fine for 30 people doesnt mean it works fine for all .... just a thought for the coders ( even tho im sure you only care that it works for you )

if i could do it better i would but im not a coder so i guess i will just do what makes more sense anyway and use what KALONLINE gave me by default and stop trying to use all these bugged addons the "pros" claim work so well

In test server was like ~40 people who tested it, exp totally messed, teleport scrools using 2 items, not 1, but i managed to fix exp from source (ofc source doesn't include "UsedItems", by this i mean teleport scrools, and random items (smth like golden pot)).

And found out just another thing, i have otp based LA (which can kill), and wisdom based SD, which this dll messes up, and it doesn't work anymore somehow, still can't find solution from source why the f*** isn't messing with LA and SD. Allready tryed to delete hooked skills, but still, it doesn't work.
 
Back