- Joined
- Mar 20, 2009
- Messages
- 374
- Reaction score
- 378
i started to rewrite this dll
old post:
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:
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
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
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:
Source of the function:
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);
}
}
}
To view the content, you need to sign in or register
Last edited:

