Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Zb Rpg V1
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
  • …
  • 17
[SC] Zb Rpg V1
Tweet Topic Started: Jul 10 2008, 05:28 PM (5,993 Views)
slayer766 Jul 10 2008, 05:28 PM Post #1
Member Avatar
Hello all

Posts:
1,653
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
WARNING! Code uses Ad Credits!

Code Name: Divinity RPG v1 (For ZB)

Description: Creates a complete forum RPG with 8 complete quests.

Features:


  • 5 Quests
  • Town
  • Join/Leave Guild System
  • Battlegrounds
  • Quests
  • RPG Profile
  • Bank
  • Inn
  • Weapon Shop
  • Armor Shop
  • Item Shop
  • Stats Shop
  • Monster Battles
  • Boss Battles
  • Collapse/Expandable Post Stats!



Preview: Here
(You will need an account to see the RPG)


Installation: First open up your Admin CP > Board Customization > Website Maker > Create New Webpage:

For the Page ID box, input the letters "rpg" without the quotes and all lowercase.
You can put anything you want in the Page Title
For the Page Content box place this in there:

Quote:
 
<div id="SlayerTCZ"></div><div id="slayer_rpg"></div>

Link to this page in the board menu? Check Yes.



Then just click on Edit Webpage, now travel down to the Theme section and click on Board Template > and in the Below the Board: box input this:

Quote:
 

<script type="text/javascript">
/*############### Divinity RPG #############*\
# Written by: slayer766 #
# From: t hecodingzone.com & phantom-designs.net #
# All sprites made by Matt32 of http://rpg-icons.com #
# Cannot be edited/rehosted without permission! #
\*####################################*/

//Default amount of Gold
var default_amount = 350;

//Name of currency
var cur_name = "Gold";

//Price to stay at Inn
var Inn_price = 5;

//How many stats points given during level up?
var Stat_Amount = 5;

//How much should each stat increase during level up?
var Up_HP = 2;
var Up_MP = 1;
var Up_ATK = 1;
var Up_DEF = 1;

//Set Max Level for free healing at the Inn
var Max_Levelh = 4;

//Give User Money Rewards for completed quests
var Quest_Rewards = new Array();
//Quest 1, 3, 4
Quest_Rewards[0] = [100,400,600]

//Give Stats reward for last quest
//HP,MP,ATK,DEF
var Final_Quest = new Array();
Final_Quest[0] = [100,50,15,15]

var Guilds = new Array();
//Guilds[x] = ["GUILD_NAME","GUILD_LEADER"]

Guilds[0] = ["Knights of the Round Table","slayer766"]
Guilds[1] = ["Barbaric Rage","test"]

var B_Weapons = new Array();
//B_Weapons[x] = ["URL_OF_IMAGE","WEAPON_NAME",PRICE,"DESCRIPTION",ATTACK]

B_Weapons[0] = ["http://i1.ifrm.com/11838/143/upload/p455843.gif","Blood Axe",10,"An Axe crafted from the blood of warriors",4]
B_Weapons[1] = ["http://i1.ifrm.com/11838/143/upload/p455863.gif","Chaos Bow",25,"A bow bent on the soul infliction of pain",7]
B_Weapons[2] = ["http://i1.ifrm.com/11838/143/upload/p455874.gif","Dark Hammer",50,"A cursed Hammer made out of pure darkness",11]
B_Weapons[3] = ["http://i1.ifrm.com/11838/143/upload/p455911.gif","Evil Spear",125,"A spear made of complete evil",17]
B_Weapons[4] = ["http://i1.ifrm.com/11838/143/upload/p455926.gif","Fire Bow",125,"A full Fire Bow with magic attacks",17]
B_Weapons[5] = ["http://i1.ifrm.com/11838/143/upload/p455928.gif","Fire Sword",250,"A sword enchanted with Fire",23]
B_Weapons[6] = ["http://i1.ifrm.com/11838/143/upload/p455946.gif","Great Bow",500,"A mighty bow fit for a warrior",30]
B_Weapons[7] = ["http://i1.ifrm.com/11838/143/upload/p455955.gif","Heavy Axe",800,"A heavy axe made with solid steel",37]
B_Weapons[8] = ["http://i1.ifrm.com/11838/143/upload/p455962.gif","Hero Spear",1000,"A very strong and durable spear",44]
B_Weapons[9] = ["http://i1.ifrm.com/11838/143/upload/p455980.gif","Holy Spear",1550,"The spear made with Holy magic",47]
B_Weapons[10] = ["http://i1.ifrm.com/11838/143/upload/p455991.gif","Ice Bow",2590,"Ice Bow used with magic",50]
B_Weapons[11] = ["http://i1.ifrm.com/11838/143/upload/p455993.gif","Ice Sword",2990,"Ice Sword used with magic",50]
B_Weapons[12] = ["http://i1.ifrm.com/11838/143/upload/p456063.gif","Ogre Sword",3400,"A grand sword",57]
B_Weapons[13] = ["http://i1.ifrm.com/11838/143/upload/p456087.gif","Oricon Sword",4000,"A sword fit for a king",65]
B_Weapons[14] = ["http://i1.ifrm.com/11838/143/upload/p455903.gif","Dragon Sword",6000,"The strongest sword you will hold",80]

var A_Armor = new Array();
//A_Armor[x] = ["URL_OF_IMAGE","ARMOR_NAME",PRICE,"DESCRIPTION",DEFENSE]

A_Armor[0] = ["http://i1.ifrm.com/11838/143/upload/p456007.gif","Leather Armor",10,"Basic Leather Armor",2]
A_Armor[1] = ["http://i1.ifrm.com/11838/143/upload/p456196.gif","Wing Armor",25,"Enhanced Basic Armor",4]
A_Armor[2] = ["http://i1.ifrm.com/11838/143/upload/p456170.gif","Warrior Armor",70,"Armor fit for a Warrior",7]
A_Armor[3] = ["http://i1.ifrm.com/11838/143/upload/p456130.gif","Phoenix Armor",180,"Enchanted Armor",11]
A_Armor[4] = ["http://i1.ifrm.com/11838/143/upload/p455935.gif","Granite Armor",350,"Lightweight yet durable",15]
A_Armor[5] = ["http://i1.ifrm.com/11838/143/upload/p455847.gif","Chain Armor",800,"Rock solid defensive Armor",27]
A_Armor[6] = ["http://i1.ifrm.com/11838/143/upload/p455888.gif","Dragon Armor",2500,"Armor created from a dragon's scale!",40]

//You may only have two Items
var Items = new Array();
//Items[x] = ["URL_OF_IMAGE","ITEM_NAME",PRICE,"DESCRIPTION",HP+,MP+]

Items[0] = ["http://i1.ifrm.com/11838/143/upload/p455951.gif","Healing Potion",20,"Used to refill a small portion of HP",30,0]
Items[1] = ["http://i1.ifrm.com/11838/143/upload/p456032.gif","Magic Potion",20,"Used to refill a small portion of MP",0,30]

var Stat_Items = new Array();
//Stat_Items[0] = ["STAT_IMAGE","STAT_ITEM_NAME",PRICE,"DESCRIPTION",HP+,MP+,ATK+,DEF+]

Stat_Items[0] = ["http://i1.ifrm.com/11838/143/upload/p456116.gif","Vitality Card",800,"Increase your HP",20,0,0,0]
Stat_Items[1] = ["http://i1.ifrm.com/11838/143/upload/p456123.gif","Magic Card",800,"Increase your MP",0,20,0,0]
Stat_Items[2] = ["http://i1.ifrm.com/11838/143/upload/p456102.gif","Strength Card",800,"Increase your ATK",0,0,20,0]
Stat_Items[3] = ["http://i1.ifrm.com/11838/143/upload/p456109.gif","Dexterity Card",800,"Increase your DEF",0,0,0,20]
Stat_Items[4] = ["http://i1.ifrm.com/11838/143/upload/p669303.gif","Life Seal",3000,"Increase all of your stats!",20,20,20,20]

var Monsters = new Array();
//Monsters[x]= ["URL_OF_IMAGE","MONSTER_NAME",HP,MP,ATTACK,DEFENSE,LEVEL,EXP_FOR_KILL,GOLD_FOR_KILL]

Monsters[0] = ["http://i1.ifrm.com/11838/143/upload/p456391.gif","Larva",10,0,2,2,1,5,2]
Monsters[1] = ["http://i1.ifrm.com/11838/143/upload/p456383.gif","Jelly",35,0,5,3,1,9,4]
Monsters[2] = ["http://i1.ifrm.com/11838/143/upload/p456379.gif","Imp",50,0,9,7,2,12,8]
Monsters[3]= ["http://i1.ifrm.com/11838/143/upload/p456419.gif","Soldier",85,0,14,10,2,25,24]
Monsters[4]= ["http://i1.ifrm.com/11838/143/upload/p456401.gif","Sandman",100,0,20,10,3,48,48]
Monsters[5]= ["http://i1.ifrm.com/11838/143/upload/p456424.gif","Swordrat",310,0,20,13,4,180,180]
Monsters[6]= ["http://i1.ifrm.com/11838/143/upload/p456414.gif","Sandpede",225,0,45,22,5,225,225]
Monsters[7]= ["http://i1.ifrm.com/11838/143/upload/p456323.gif","Basilisk",400,0,50,29,7,300,300]
Monsters[8]= ["http://i1.ifrm.com/11838/143/upload/p456356.gif","Gargoyle",690,0,62,35,8,375,375]
Monsters[9]= ["http://i1.ifrm.com/11838/143/upload/p456435.gif","Terapin",800,0,50,50,10,400,400]
Monsters[10]= ["http://i1.ifrm.com/11838/143/upload/p456393.gif","Necroman",1200,40,100,70,13,525,525]

var Classes = new Array();
//Classes[x] = ["CLASS",HP,MP,ATK,DEF,"CHARACTER_IMAGE"]

Classes[0] = ["Barbarian",30,2,5,3,"http://i1.ifrm.com/11838/143/upload/p649042.gif"]
Classes[1] = ["Warrior",25,3,5,4,"http://i1.ifrm.com/11838/143/upload/p649045.gif"]
Classes[2] = ["Assassin",25,8,5,4,"http://i1.ifrm.com/11838/143/upload/p649050.gif"]
Classes[3] = ["Ranger",30,5,11,3,"http://i1.ifrm.com/11838/143/upload/p649056.gif"]
Classes[4] = ["Necromancer",30,15,4,4,"http://i1.ifrm.com/11838/143/upload/p649063.gif"]
Classes[5] = ["Dwarf",40,3,6,6,"http://i1.ifrm.com/11838/143/upload/p649069.gif"]

var Quest_Bosses = new Array();
//var Quest_Bosses[x] = ["URL_OF_IMAGE","BOSS_NAME",HP,MP,ATTACK,DEFENSE,LEVEL,EXP_FOR_KILL,GOLD_FOR_KILL]

Quest_Bosses[0] = ["http://i1.ifrm.com/11838/143/upload/p456315.gif","Alligator",300,0,40,25,6,80,400]
Quest_Bosses[1] = ["http://i1.ifrm.com/11838/143/upload/p456419.gif","Bandits Trio",500,0,40,20,10,125,800]
Quest_Bosses[2] = ["http://i1.ifrm.com/11838/143/upload/p456318.gif","Barubary",1300,40,95,40,14,250,1000]
Quest_Bosses[3] = ["http://i1.ifrm.com/11838/143/upload/p456372.gif","Grand Dragon",2000,0,100,55,18,250,1000]
Quest_Bosses[4] = ["http://i1.ifrm.com/11838/143/upload/p456330.gif","Deathven",4000,0,140,70,25,1000,10000]
//End Quest Bosses

document.write("<script language='javascript' src='http://z3.ifrm.com/83/88/0/p24257/slayRPGZBT4.js'><\/script>");
</script>
Edited by slayer766, Dec 12 2008, 07:19 PM.
Offline Profile Goto Top
 
kruz Jul 16 2008, 12:44 AM Post #2


Posts:
2
Group:
Member
Member
#31
Joined:
Jul 16, 2008
the code doesn't work right...
I did everything u specified.
Offline Profile Goto Top
 
slayer766 Jul 18 2008, 09:51 AM Post #3
Member Avatar
Hello all

Posts:
1,653
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
Try re-copying and pasting the code now, the urls shortened themselves for some odd reason and I've fixed it, so it will work now.
Offline Profile Goto Top
 
Viral Jul 18 2008, 03:20 PM Post #4


Posts:
342
Group:
Dedicated
Member
#48
Joined:
Jul 17, 2008
Coding language
PHP
Hey Slayer. I need to find rpg sprites for my RPG (just a few) but I tried the rpg icons site linked in your code, but it doesn't work. Do you know of any other places?

Posted Image
Offline Profile Goto Top
 
Aegis Jul 19 2008, 08:14 PM Post #5


Posts:
97
Group:
Member
Member
#4
Joined:
Jun 10, 2008
Coding language
None
kruz
Jul 16 2008, 12:44 AM
the code doesn't work right...
I did everything u specified.
Sorry to burst in like this, but it would be truly helpful if you gave us a link to your board with the code already installed. Doing so would give us more information, which would allow us to help you even more on the issue.

Thank you. :choco:
Offline Profile Goto Top
 
Jesus Jul 19 2008, 10:06 PM Post #6
Member Avatar
The Holy Savior

Posts:
180
Group:
Member
Member
#85
Joined:
Jul 18, 2008
Coding language
Ruby on Rails
Hmm Slayer I have a quick question. Do you happen to know why I can only do Quest #1? After I beat it, the rpg lets me see another quest about bandits and I accept, but then when I try to do the quest it says I don't have any O-o. Like it seems only the first quest works while the other four do not :( Do you happen to know what the problem is?
Posted Image
Offline Profile Goto Top
 
slayer766 Jul 20 2008, 12:37 PM Post #7
Member Avatar
Hello all

Posts:
1,653
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
Viral
Jul 18 2008, 03:20 PM
Hey Slayer. I need to find rpg sprites for my RPG (just a few) but I tried the rpg icons site linked in your code, but it doesn't work. Do you know of any other places?
No I don't man, when that site went down(Seems like permanently) I was out of luck until I met a good friend who created more sprites for me.


Yeah, Jesus, seems a lot of people are having that same problem, which is weird, but I'm going to work on v2 for ZB soon I believe. So in the next version that problem will be fixed, among others as well and not only fixed but features added, etc.
Offline Profile Goto Top
 
Viral Jul 20 2008, 05:49 PM Post #8


Posts:
342
Group:
Dedicated
Member
#48
Joined:
Jul 17, 2008
Coding language
PHP
Slayer, what formula did you use for battle damage? I won't use it, but I'd just like to see another example :) .


Posted Image
Offline Profile Goto Top
 
Jesus Jul 20 2008, 08:09 PM Post #9
Member Avatar
The Holy Savior

Posts:
180
Group:
Member
Member
#85
Joined:
Jul 18, 2008
Coding language
Ruby on Rails
Ooo :P So in V2 will there be PvP and pets O-o :D
Posted Image
Offline Profile Goto Top
 
slayer766 Jul 22 2008, 12:28 PM Post #10
Member Avatar
Hello all

Posts:
1,653
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
Viral
Jul 20 2008, 05:49 PM
Slayer, what formula did you use for battle damage? I won't use it, but I'd just like to see another example :) .

Something very very basic, Player ATK - Enemy DEF; something I was to work on but ended up handing the project over to someone else. :)



Yeah Jesus, as soon as I start work on v2 that's what is expected. Everything you seen in the most current version of the Invisionfree one will probably be in the Zetaboards version.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2
  • …
  • 17

Track Topic · E-mail Topic Time: 7:50 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy