iFusion Code Index
iFusion Has Moved!!! - Visit the new site at http://forum.ifcode.com
invisionFusion @ iFCode.com | ZetaBoards Beta Code Index
 

Free Forums with no limits on posts or members.
InvisionFree - Free Forum Hosting
Welcome to iFusion v5.1. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Name:   Password:




Forum Rules  

Sort me by:
  # A-Z by Topic Title
  # A-Z by Code Creator [WWX's Codes Listed First]

Pages: (3) [1] 2 3  ( Go to first unread post ) Reply to this topic Start new topic

> RPG [fight/guild/XP/money] system v3.0, Really cool XD
Duveaux
Posted: Jan 29 2006, 01:13 PM


Develloping PBB :-O
*

Group: The 100 Club
Posts: 397
Member No.: 942
Joined: 13-June 05



Cool! Finally! V3.0. I have been working a lot on the battle system. It now looks, feels and smells good. It's interactive. It carries out functions like hit, block and skip. Also, pretty nice IMO, a battlebot system. You can easily customize bots. See that array beneath? That's all you need to edit ;)

PREVIEW

Code functions:
  • Doesn't take too much board wrappers space, it's hosted.
  • Add a new dimension to your forums. The code adds a lot of information to the postdetails.
  • PVP fighting system
  • Battlebot fighting system
  • automatic guild asigning system
  • Easy customizing
  • XP/level system
  • Note: Displays a small copyright at the footers of your page. It doesn't draw attention or deform your page.
  • Looks good with every skin.

ACP > Board Wrappers > Header & Body > below navigation
QUOTE
<div id="extrapage"></div>
<script>
/*
Add Submenu Right Link
Created by iFusion

*/

function rightSubmenu(txt, lnk, imag){
var spacer = " &nbsp; &nbsp;<img src='" + imag + "' border='0'>&nbsp;"
if(document.getElementById('submenu') )
document.getElementById('submenu').getElementsByTagName('TD')[1].innerHTML += spacer + "<a href='" + lnk + "'>" + txt + "</a>";
}

rightSubmenu( "Challenge a bot" , "http://s15.invisionfree.com/V3hacks/index.php?act=battlebots" , "http://i6.ifrm.com/style_images/1/atb_members.gif" )
</script>


ACP > board wrappers > footers
QUOTE
<script type="text/javascript">
//RPG script written by http://www.phantom-designs.net
//By Duveaux
//Do not remove ANY copyright here.

//The terms
var titlea="Level"
var titleb="XP"
var boardname="Testboard"
var boardurl="http://s15.invisionfree.com/V3hacks/index.php"
var xpperpost="50"
var xpforlevelup="500"

var groupname="Guild"

var Guilds=[];
Guilds[0]="NightWarp"
Guilds[1]="NightRavers"
Guilds[2]="NightSouls"

var guilddesc=[];
guilddesc[0]="Nightwarp is a clan containing the bravest members of "+boardname+". If you get assigned into Nightwarp, you'll probably have balls in a battle."
guilddesc[1]="Members of the NightRavers are people that would choose for tactics. If you get assigned into the Nightravers Guild you'll probably think out your moves."
guilddesc[2]="Members of "+boardname+" that get asigned into the NightSouls guild are specified in stealth. They will try to backstab their enemy, and are focused on defense, more then other guilds while attacking."

var shorttechnique=[];
shorttechnique[0]="Bravely"
shorttechnique[1]="Smoothly"
shorttechnique[2]="Stealthy"

var bots=[];
bots[0]="Rudolph"
bots[1]="The ScareCrow"
bots[2]="Ahab Burns"
bots[3]="Hierophant of The Underworld"
bots[4]="Lana Burns"
bots[5]="Marquis of Night"
bots[6]="Devil of Blood"

//Here, for you, is the hosted source code. It saves you a load of boardwrappers space.
</script>
<script type="text/javascript" src="http://i4.ifrm.com/5857/197/upload/p69300.ibf"></script>


Known bugs:
  • People with spaces in their name will be unable to PvP.
  • Same goes with <span tags>
  • Any more bugs can be reported ;)
I hope you'll enjoy this code and take good use of it. Feel free to comment :) I also like to know if you're using this code ;)

I can give support here, but I give faster and better support at http://www.phantom-designs.net

This post has been edited by Duveaux on Jan 29 2006, 01:14 PM
Top
Sam
Posted: Jan 29 2006, 01:16 PM


iRegular
*

Group: The 100 Club
Posts: 117
Member No.: 3,426
Joined: 5-January 06



Nice i may use not sure though
Top
Duveaux
Posted: Jan 30 2006, 04:42 PM


Develloping PBB :-O
*

Group: The 100 Club
Posts: 397
Member No.: 942
Joined: 13-June 05



Okay... People really want me to fix something.. Can somebody please explain me how to replace spaces with _'s in the var nick (that contains the username)..

Please =)
Top
admin
Posted: Jan 30 2006, 04:59 PM


Live to Dream
*

Group: Admin
Posts: 10,493
Member No.: 1
Joined: 25-February 05



nick.replace(/ /g, '_');

think that works.
Top
Duveaux
Posted: Jan 30 2006, 08:23 PM


Develloping PBB :-O
*

Group: The 100 Club
Posts: 397
Member No.: 942
Joined: 13-June 05



Thanks.. I did it a bit different, but it works now ;)
Top
Duveaux
Posted: Jan 30 2006, 09:03 PM


Develloping PBB :-O
*

Group: The 100 Club
Posts: 397
Member No.: 942
Joined: 13-June 05



Sorry for the DP, but there'd been a large chance you'd skip this post.

Dangit, I thought it'd be more easy to remove span tags. In this case it's easy to remove the spaces but it's impossible to remove the spantags. Look, if my name is <font color='red'><b>Duveaux</font></b> The only thing I can do is remove the 's, <>'s. That'd still leave redbDuveaux/font/b

It's clearly not the way to do it.. How would I do it then? Is there a different way of extracting the variable nick, without the pre- and suffixes?
Top
Neon_
Posted: Jan 31 2006, 07:48 PM


iRegular
*

Group: Members
Posts: 60
Member No.: 3,509
Joined: 9-January 06



Anyway to get rid of the battle system, and maybe make it only show stats if you're in a guild? Also is it possible to make it so only members of a certain guild can see a certain forum?
Top
admin
Posted: Jan 31 2006, 08:00 PM


Live to Dream
*

Group: Admin
Posts: 10,493
Member No.: 1
Joined: 25-February 05



Duveaux, it might be worth creating a thread in Coding Discussion about what you're wanting to do :)
Top
Duveaux
Posted: Jan 31 2006, 08:14 PM


Develloping PBB :-O
*

Group: The 100 Club
Posts: 397
Member No.: 942
Joined: 13-June 05



Okay ^^

QUOTE
Anyway to get rid of the battle system, and maybe make it only show stats if you're in a guild? Also is it possible to make it so only members of a certain guild can see a certain forum?


Hmm, I think it might be a good idea to only view stats if you're a guild member :D Maybe I'll code an additional script for only members of certain guilds.. I'll see..
Top
carastir
Posted: Feb 1 2006, 04:46 PM


iMember
*

Group: Members
Posts: 13
Member No.: 2,791
Joined: 25-November 05



Can you fix the <Span> Tag Bug, PLLLLLEEEEEEEEEEAAAAAAAAAAASSSSEEEE? It would be much appreciated.
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
DealsFor.me - The best sales, coupons, and discounts for you

Topic OptionsPages: (3) [1] 2 3  Reply to this topic Start new topic


Skin created by .Apotropaic of Graphical Aesthetics.


Been Helped by iFusion / iFCode's Index? | | Donate to iFusion!
| iFusion Topsites



Hosted for free by InvisionFree* (Terms of Use: Updated 2/10/2010) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Archive