Alright since me and slaytanist was telling everyone about v4 and the due date being Monday, we decided to release this now. :D
BEFORE YOU INSTALL THIS REMOVE ANY OLD VERSION OF THIS AND EVERYTHING THAT IS IN THE TOPIC This is teh post!Alright this is the Automated Lottery/Shop Hack V4. Created by Slaytanist, Fierce and myself. This code is Cross Browser, meaning it works with both FireFox and Internet Explorer. :D
Features:
- Lottery
- Recent Winners
- Store
- Auction System NEW
- Donate
- Bank with Richest Members and interest
- Items in profile and by posts
- Admin +/- to money
- Reputation system
- Automatic PM when lottery is run for donations
- Buyable name styles and sigs
- Turn Based RPG system
- Recent Battles
- Class Avatars NEW
- Gender Selection NEW
- Stats boost depending on the class you pick NEW
- Stats section in profile NEW
Preview:
V4HACKFAQ by Slayer766 READ THIS FIRST BEFORE ASKING QUESTIONS hereINSTRUCTIONS MUST BE CAREFULLY READ!!!YAY! SHORTER INSTRUCTIONS!First off place this code in the
Admin CP> Skinning & Styles> Board Wrappers> Footer:- Quote:
-
<script type="text/javascript">
// Automated Lottery Hack version revived
// By Fierce, Slayer766 and Slaytanist
// Money code by Gornakle of InvisionFree.com
// thecodingzone.com
// s13.invisionfree.com/Hamsoft
// Redistribution will lead to smitings!
var thestats=["STR","Strength","DEX","Dexterity","WIS","Wisdom","INT","Intelligence","CHA","Charisma","CON","Constitution"];
var NoClassPic = "http://i5.ifrm.com/9620/137/upload/p438475.gif"
var NoClassPicF = "http://i5.ifrm.com/9620/137/upload/p438494.gif"
var DonateMessage = " has donated to your cause the princely sum of"
var defaultstorecategory = "Armour";
var sign = "$";
var name = "Money";
var PerPost = 8;
var XPPerPost = 325;
var default_amount = 0;
var theAdmin = "Lottery"
var Jackpot = 100;
var winner = "No Winner";
var interest = 5;
var MOTDprice = 100;
var noRPG = 0;
var TurnsOfRanged = 4;
var GoldSteal= 1;
var XPpercent = 5;
var postsperpage = 15;
var classavatars = true;
var minuspic = "<img src='http://i5.ifrm.com/9620/137/upload/p438463.gif' alt='-'>"
var donatepic = "<img src='http://i5.ifrm.com/9620/137/upload/p438158.gif'>"
var pluspic = "<img src='http://i5.ifrm.com/9620/137/upload/p438534.gif' alt='+'>"
var fightpic = "<img src='http://i5.ifrm.com/9620/137/upload/p438450.gif' alt='FIGHT!'>"
var ShowTopicURL = '
http://xx.invisionfree.com/BOARDNAME';
var PostURL = '
http://xx.invisionfree.com/BOARDNAME';
var EditURL = '
http://xx.invisionfree.com/BOARDNAME';
var Adminpost =
"
http://xx.invisionfree.com/BOARDNAME";
var itemlist=[];
var classes=[];
function HookYourOwnStuffHere() {
};
</script>
<script language="Javascript" src="http://i5.ifrm.com/9620/137/upload/p438581.ibf"></script>
<script language="Javascript" src="http://i5.ifrm.com/9620/137/upload/p438602.ibf"></script>
<!--Add item packs here!-->
<script language="Javascript" src="http://z3.ifrm.com/86/75/0/p24022/AutomatedLotteryHackv4.txt"></script>
The sections in
RED are sections that you must not forget to change during the instructions.
DON'T FORGET TO ADD THIS!In
Admin CP> Skinning & Styles> Board Wrappers> Header & Body> replace your <% BOARD %> tag like this:
- Code:
-
<div id="theBoard">
<% BOARD %>
</div>
Now make a new category and call it "
Lottery"
In that category create a forum called "
Lottery Drawing"
Set the permissions to Read, and Reply to everyone except Guests, Banned, and Validating.
Also for the Admin group set one permission to Start.
Make an account called "
Lottery" and post in your Lottery Drawing forum. Make a post called
This is teh post! with the capital letter. The post content can be anything but the title and the user who posts it must be the same(Ex. The Lottery account must post up the topic This is teh post!).
Copy the url of This is teh post! and paste into
var ShowTopicURL =(Located in the Board Wrappers> Footer code), the right-click reply and copy paste the url into
var PostURL =, and right-click edit copy paste the url into
var EditURL =Create an admin-only forum and make a topic there. The forum should only be accessable/readable by ADMINS ONLY. Copy the url of that topic and paste the url in
var Adminpost = in the
Board Wrapper> Footer with the new one.
Please when you run the lottery make sure the screen has finished refreshing before closing the window. It will do this quite a few times depending on the number of tickets and items bought. Stopping the lottery window before it's finished completely can lead to unpredictable money values! To kick it off you have to go into your lottery page and type in just some random text in the Admin CP text boxes at the bottom left and click do draw. The money and stuff will work then.
To create coloured/glowing names copy the example given, replace the images, stock quantity, name, description, <span style> etc with the ones you want and give it a unique four-letter item code. Add new RPG items in a similar way. To add a sig or other url to buy simply add a url in your admin post with the name matching the last part of the item array. Copy the example given, although the example will not work in your forum unless you create a url named "RAWR" :D
New item categories are created automatically - simply replace the existing ones on the items or add items with a new category and they'll show up.
ACP > Board Wrappers > Header & Footer > Below <% BOARD %>- Code:
-
<script>
/*
Adding NaviBar Links
By Webworldx
*/
var aLink=new Array()
aLink[0]='<img src="http://forum.rhondalicious.com/style_images/ONi_Styl-474/shop.gif" border="0" alt="" width="18" height="18" /> <a href="http://sx.invisionfree.com/ForumName/index.php?act=store"> Store/Bank</a>'
aLink[1]='<img src="http://forum.rhondalicious.com/style_images/ONi_Styl-474/atb_reput.gif" border="0" alt="" width="17" height="15" /> <a href="http://sx.invisionfree.com/ForumName/index.php?act=lottery"> Lottery</a>'
aLink[2]='<img src="http://i2.ifrm.com/5512/176/upload/p1137726.gif" border="0" alt="" width="17" height="15" /> <a href="http://sx.invisionfree.com/ForumName/index.php?act=battles"> Recent Battles</a>'
var uCell = document.getElementsByTagName('TD')
for (i=0;i<uCell.length;i++){
if (uCell[i].align=="right" && uCell[i].innerHTML.match("act=calendar") && uCell[i].innerHTML.match("act=Help")){
var addLink=""
for (j=0;j<aLink.length;j++){
addLink+=aLink[j]+" "
}
uCell[i].innerHTML=addLink+uCell[i].innerHTML
}}
</script>
Edit the x to your server number, and the ForumName to your boards name.
Go to the Category you named Lottery (in the ACP, under manage forums.)
Click edit. From the drop down list, select
- Quote:
-
Hidden from list. Can acess if URL is known
This will take the forums off the index page, yet leaving the links in the navi bar working.
Many thanks to Hendrick for the idea and Gamer373 for the images!
With all of that out of the way you are now done!! Enjoy and if you have any questions/comments please feel free to post them. :D
Mega thanks to Ryura for testing and exploiting the rep system! :D
Optional:MOTD(
Message Of The Day)
In
hookyourownstuffhere add:
- Code:
-
c = document.getElementById("MOTD_Here");
d = c.innerHTML;
c.innerHTML = "";
c = document.getElementById("MOTD_Setter");
h = c.innerHTML;
c.innerHTML = "";
b = document.getElementsByTagName('table');
for (j = 0;j<b.length;j++)
if ((b[j].width == '100%') && (b[j].rows[0].cells[0].className == "pformstrip") && (b[j].rows[0].cells[0].innerHTML.match("active")))
{
a = b[j].getElementsByTagName('TD');
c = b[j].getElementsByTagName('TBODY')[0];
e = b[j].getElementsByTagName('TR')
f = e[2].cloneNode(true)
g = e[3].cloneNode(true)
c.insertBefore(f,c.getElementsByTagName('TR')[2])
c.insertBefore(g,c.getElementsByTagName('TR')[3])
c.getElementsByTagName('TR')[2].getElementsByTagName('td')[0].innerHTML = "MOTD"
c.getElementsByTagName('TR')[3].getElementsByTagName('td')[1].innerHTML = "<div><marquee>"+d+"</marquee></div>MOTD set by "+h+'. <a href="Javascript:BuyMOTD();">Your message here!</a> Only $100!';
break;
}
So that would look like this:
- Code:
-
function HookYourOwnStuffHere() {
c = document.getElementById("MOTD_Here");
d = c.innerHTML;
c.innerHTML = "";
c = document.getElementById("MOTD_Setter");
h = c.innerHTML;
c.innerHTML = "";
b = document.getElementsByTagName('table');
for (j = 0;j<b.length;j++)
if ((b[j].width == '100%') && (b[j].rows[0].cells[0].className == "pformstrip") && (b[j].rows[0].cells[0].innerHTML.match("active")))
{
a = b[j].getElementsByTagName('TD');
c = b[j].getElementsByTagName('TBODY')[0];
e = b[j].getElementsByTagName('TR')
f = e[2].cloneNode(true)
g = e[3].cloneNode(true)
c.insertBefore(f,c.getElementsByTagName('TR')[2])
c.insertBefore(g,c.getElementsByTagName('TR')[3])
c.getElementsByTagName('TR')[2].getElementsByTagName('td')[0].innerHTML = "MOTD"
c.getElementsByTagName('TR')[3].getElementsByTagName('td')[1].innerHTML = "<div><marquee>"+d+"</marquee></div>MOTD set by "+h+'. <a href="Javascript:BuyMOTD();">Your message here!</a> Only $100!';
break;
}
};
Add this line to the top of your Header & Body:
- Code:
-
<span id="MOTD_Here"> </span><span id="MOTD_Setter"> </span>
The MOTD should now be installed.
Everything MIGHT not be uploaded correctly please tell me. :D