I am making an pvp server, but i need to have this script and i am unable to script it myself, perhaps any C++ or LUA pro's here who can script it? btw, i dont even know how to compile C++ xD i am often using LUA. Thanks![]()
I am making an pvp server, but i need to have this script and i am unable to script it myself, perhaps any C++ or LUA pro's here who can script it? btw, i dont even know how to compile C++ xD i am often using LUA. Thanks![]()
RickAstley LUA Boss! (Rickroll)
mmowned.com/forums/emulator-server-releases/171755-epic-release-rick-astley-rickroll-boss-lua.html#post1119442
I think we have one in our SVN made by Snailz:
Enjoy.Code:/*********************************************************** * * * * * ****************************** * * * * * * * The FrostTeam Project * * * * Snailz * * * ****************************** * * * * * * --FrostTeam SVN consists of the latest WotLK * * scripts, both Lua and C++. Some will be our own, * * some will be others with credits attatched. Our * * Svn includes all scripts that you may need * * to help make your server a more fun environment.-- * * * ************************************************************/ #include "StdAfx.h" #include "Setup.h" void onPvpKill(Player* plr, Player* victim) { if( plr->GetTeam() != victim->GetTeam()) { char message[200]; sprintf(message, "%s has killed %s", plr->GetName(), victim->GetName()); // In the Quotes "%s has killed %s" this will be announce when someone killed someone %s being killers then victims name sWorld.SendWorldWideScreenText(message); int32 gold_check_p = plr->GetUInt32Value( PLAYER_FIELD_COINAGE ); int32 gold_check_v = victim->GetUInt32Value( PLAYER_FIELD_COINAGE ); int32 new_gold_p = gold_check_p + 50000;// Coinage added on kill int32 new_gold_v; if(gold_check_v < 50000)// If player has 5 gold wont remove any { new_gold_v = 0; } else { new_gold_v = gold_check_v - 50000;//Coinage lost on death. Remember, 50000 = 5 Gold } plr->SetUInt32Value( PLAYER_FIELD_COINAGE, new_gold_p ); victim->SetUInt32Value( PLAYER_FIELD_COINAGE, new_gold_v ); } } void SetupPvPMoney(ScriptMgr * mgr) { mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, (void*)onPvpKill); }![]()
And.... how do i compline it:P? or could someone compile it for me xD? i never understanded anything from the guides, if you can link me a good one, ill check it out for sure
RickAstley LUA Boss! (Rickroll)
mmowned.com/forums/emulator-server-releases/171755-epic-release-rick-astley-rickroll-boss-lua.html#post1119442
Go into your World of Warcraft Private Server folder.
Find the folder called scripts.
Go inside there, and right click make new.
Then paste everything in that script inside, and when you save
name the document : thenameofthescriptdoesntreallymatter.LUA
Remember to save with .lua after the text.
Here is a picture of what I mean:
Hope this helps!
This isn't lua, it's C++. There are plenty of compiling guides out there, use them![]()
My bad, hehe. I didn't look too close at the script. Sowwy!![]()