<!-- BEGIN TEMPLATE: postbit_external -->
<div><div align="center"><img src="http://image.noelsha...tf2-rpg-0-1.png" border="0" alt="" /></div><br /><font size="6"><font color="#2E64FE">Description :</font></font><br />This plugin is trying to create a RPG inside TF2. The final plugin should be like <a href="https://forums.alliedmods.net/showthread.php?t=219389" target="_blank">this request</a>.<br />It's support now :<ul><li>Levels</li>
<li>Experience</li>
<li>Cash</li>
<li>Totally customizables upgrades</li>
<li>Cash spawn on kill</li>
<li>MORE INCOMING</li>
</ul>Also, <i><b><u><font size="4">to run this plugin you will need a database</font></u></b></i> ! If you don't have any, download <a href="https://www.apachefr...g/fr/index.html" target="_blank">XAMPP</a> (free)<br /><br />How to run a database service, using XAMPP :<br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br />Let me some times, tutorial almost ready!<br /></div>
</div>
</div><br /><br />Original request : <a href="https://forums.allie...ad.php?t=219389" target="_blank">https://forums.allie...t=219389</a><br /><br /><font size="6"><font color="#2E64FE">Screenshots & Videos :</font></font><br /><img src="http://puu.sh/byzN3/600147ed27.jpg" border="0" alt="" /><br /><img src="http://puu.sh/byzSo/3bce6423fc.jpg" border="0" alt="" /><br /><img src="http://puu.sh/byAeq/a6de4cbceb.png" border="0" alt="" /><br /><br /><font size="6"><font color="#2E64FE">Cvar & installation</font><br /></font><br /><b>Cvar :</b><br /><br /><i>None for the moment...</i><br /><br /><b>Commands :</b><br /><br />sm_rpgmenu - Display the shop menu where you can spend your money !<br /><br /><b>Installation :</b><br /><br />1) Put TF2_RPG.smx in your plugins folder.<br />1) Put TF2_RPG.cfg in your configs folder.<br />3) Install <a href="https://forums.alliedmods.net/showthread.php?t=210221" target="_blank">TF2_Attributes</a>.<br />4) Install <a href="https://forums.alliedmods.net/showthread.php?p=1570806" target="_blank">Updater</a>.<br />5) <b><font size="3">Create a new database called 'tf2_rpg' and import this script</font></b><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">-- phpMyAdmin SQL Dump<br />-- version 4.1.12<br />-- http://www.phpmyadmin.net<br />--<br />-- Client : 127.0.0.1<br />-- Généré le : Sun 14 Septembre 2014 at 13:42<br />-- Version du serveur : 5.6.16<br />-- Version de PHP : 5.5.11<br /><br />SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";<br />SET time_zone = "+00:00";<br /><br /><br />/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;<br />/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;<br />/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;<br />/*!40101 SET NAMES utf8 */;<br /><br />--<br />-- Data base : `tf2_rpg`<br />--<br /><br />-- --------------------------------------------------------<br /><br />--<br />-- Structure of table `t_player`<br />--<br /><br />CREATE TABLE IF NOT EXISTS `t_player` (<br /> `id_player` int(11) NOT NULL AUTO_INCREMENT,<br /> `level_player` int(11) DEFAULT '1',<br /> `exp_player` int(11) DEFAULT '0',<br /> `explevelup_player` int(11) DEFAULT '10',<br /> `cash_player` int(11) DEFAULT '0',<br /> `steam_id` varchar(100) DEFAULT NULL,<br /> PRIMARY KEY (`id_player`)<br />) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;<br /><br />--<br />-- Contents of the table `t_player`<br />--<br />-- This line is for me :3 so, if you I join your server with my plugin, I will get some start points.<br /><br />INSERT INTO `t_player` (`id_player`, `level_player`, `exp_player`, `explevelup_player`, `cash_player`, `steam_id`) VALUES<br />(1, 99999, 12414124, 12414125, 9999999, 'STEAM_0:1:42047781');<br /><br />-- --------------------------------------------------------<br /><br />--<br />-- Structure of table `t_store_upgrades`<br />--<br /><br />CREATE TABLE IF NOT EXISTS `t_store_upgrades` (<br /> `id_upgrade` int(11) NOT NULL AUTO_INCREMENT,<br /> `attribute_upgrade` varchar(100) DEFAULT NULL,<br /> `value_upgrade` varchar(100) DEFAULT NULL,<br /> `level_upgrade` varchar(100) DEFAULT NULL,<br /> `cost_upgrade` varchar(100) DEFAULT NULL,<br /> `name_upgrade` varchar(100) DEFAULT NULL,<br /> `description_upgrade` varchar(100) DEFAULT NULL,<br /> `class_upgrade` varchar(45) DEFAULT NULL,<br /> `time_upgrade` varchar(45) DEFAULT NULL,<br /> `override_upgrade` varchar(45) DEFAULT NULL,<br /> `equip_upgrade` varchar(45) DEFAULT NULL,<br /> `type_upgrade` varchar(45) DEFAULT NULL,<br /> `actlvl_upgrade` varchar(45) DEFAULT '0',<br /> PRIMARY KEY (`id_upgrade`)<br />) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;<br /><br />-- --------------------------------------------------------<br /><br />--<br />-- Structure of table `t_upgrades`<br />--<br /><br />CREATE TABLE IF NOT EXISTS `t_upgrades` (<br /> `id_player_upgrade` int(11) NOT NULL AUTO_INCREMENT,<br /> `attribute_upgrade` varchar(100) DEFAULT NULL,<br /> `value_upgrade` varchar(100) DEFAULT NULL,<br /> `level_upgrade` varchar(100) DEFAULT NULL,<br /> `cost_upgrade` varchar(100) DEFAULT NULL,<br /> `class_upgrade` varchar(45) DEFAULT NULL,<br /> `override_upgrade` varchar(45) DEFAULT NULL,<br /> `equip_upgrade` varchar(45) DEFAULT NULL,<br /> `type_upgrade` varchar(45) DEFAULT NULL,<br /> `id_upgrade` int(11) DEFAULT NULL,<br /> `actlvl_upgrade` varchar(45) DEFAULT '1',<br /> `FK_id_player` int(11) NOT NULL,<br /> PRIMARY KEY (`id_player_upgrade`),<br /> KEY `fk_t_upgrades_t_player_idx` (`FK_id_player`)<br />) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=57 ;<br /><br />--<br />-- constraints for table `t_upgrades`<br />--<br />ALTER TABLE `t_upgrades`<br /> ADD CONSTRAINT `fk_t_upgrades_t_player` FOREIGN KEY (`FK_id_player`) REFERENCES `t_player` (`id_player`) ON DELETE NO ACTION ON UPDATE NO ACTION;<br /><br />/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;<br />/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;<br />/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>
</div>
</div><br />5) Now, go to your config folder and found the file called database.cfg, open it with your favorite text editor and past this code right before the last } :<br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">"TF2RPG"<br /> {<br /> "driver" "mysql"<br /> "host" "<font color="red">YOUR_HOST</font>"<br /> "database" "tf2_rpg"<br /> "user" "<font color="red">YOUR_USERNAME</font>" //"root" if you use xampp<br /> "pass" "<font color="red">YOUR_PASSWORD</font>" //"" if you use xampp<br /> //"timeout" "0"<br /> //"port" "0"<br /> }</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>
</div>
</div><br />Don't forget to edt the red text for your information !!<br />6) <b><font size="3">Restart server</font></b>.<br />7) You are done !<br /><br />For those who wanna compille the plugin manually, you will need :<ul><li>morecolors</li>
<li>tf2attributes</li>
<li>updater</li>
<li>smlib</li>
</ul><br /><font size="6"><font color="#2E64FE">Configuration</font></font><br /><br />And that's the part where everything start, the RPG is FULLY CUSTOMIZABLE! Well, at least, the items / upgrades in shop. I have put some infos about how to create items in the config file, or you can just take a look at the exempls bellow :<br /><br />So, this is how we configure the items into the shop :<br /><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">////////////////////////////////////////////////////<br />//<br />// CONFIGURATION FILE FOR "TF2 RPG"<br />// <br />//<br />// "item_name" -> The name of the item to display in the shop<br />// "attribut_name" -> the EXACTE name of the attribut, a list of all attributes can be found here : http://wiki.teamfort...item_attributes<br />// "value" -> the value of the attribut, so, for exemple : "attribut_name" = "health regen" AND "value" = "5" will create a regeneration of +5 HP<br />// use / to make more values. exemple : 10/20/30<br />// item level 1 regen 10 HP<br />// item level 2 regen 20 HP<br />// item level 3 regen 30 HP<br />// "price" -> price of the item, use / to make more prices. exemple : 10/20/30<br />// item level 1 cost 10 $<br />// item level 2 cost 20 $<br />// item level 3 cost 30 $<br />// NOTE: MAKE SURE THAT "price" AND "value" HAVE THE SAME NUMBER OF / !!!!<br />// "level" -> the minimun level required for buying a item<br />// "time" -> time that should last the item, use -1 if it's a permanent item. NOTE: timed item can't have level (usage of /)<br />// "override" -> if the value of the item should override the actual one or sohuld be added to the other.<br />// exemple : I have a regen of 5, buying a item with "override" "0" and regen + 10 will make me regen +15 HP<br />// "equip" -> where the attribut should be equiped, possible values : PLAYER / PRIMARY / SECONDARY / MELEE<br />// Note : Don't use PRIMARY with attribut "health regen", a weapon can't regen HP, got it ?<br />// "class" -> Class restriciton of the item, possible values : ALL / SCOUT / SOLDIER / PYRO / DEMOMAN / HEAVY / ENGINEER / MEDIC / SNIPER / SPY<br />// "att_typ" -> type of attribut, the type of attrbiut can be found here : http://wiki.teamfort...item_attributes under "Value Type" columm<br />////////////////////////////////////////////////////<br />"TF2_RPG"<br />{<br /> "1"<br /> {<br /> "item_name" "Health Potion"<br /> "attribut_name" "health regen"<br /> "value" "5/10/15"<br /> "price" "500/600/700"<br /> "level" "3"<br /> "time" "-1"<br /> "override" "1" <br /> "equip" "PLAYER"<br /> "class" "ALL"<br /> "att_type" "additive"<br /> }<br /> "2"<br /> {<br /> "item_name" "Health Potion"<br /> "attribut_name" "health regen"<br /> "value" "12"<br /> "price" "200"<br /> "level" "1"<br /> "time" "8"<br /> "override" "0" <br /> "equip" "PLAYER"<br /> "class" "ALL"<br /> "att_type" "additive"<br /> }<br /> "3"<br /> {<br /> "item_name" "More health [+10/level]"<br /> "attribut_name" "max health additive bonus"<br /> "value" "10/20/30"<br /> "price" "900/1000/2000"<br /> "level" "1"<br /> "time" "-1"<br /> "override" "1" <br /> "equip" "PLAYER"<br /> "class" "SOLDIER"<br /> "att_type" "additive"<br /> }<br />}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>
</div>
</div><br /><br /><br /><font size="6"><font color="#2E64FE">Bugs :</font><br /></font><br /><br /><font size="7">This is a alpha version, wich mean, you have to except A LOT of bugs. Please, don't forget to visit this page for more infos.</font><br /><br /><font size="6"><font color="#2E64FE">Todo list & request:</font><br /></font><br /><br /><b>Todo list :</b><ul><li>Basicall, everything wich miss from this post : <a href="https://forums.allie...ad.php?t=219389" target="_blank">https://forums.allie...219389</a></li>
<li>A web interfaces, so player can adjust their settings via web an admins can manager players settings (upgrades, cash, level, exp...)</li>
<li>A better menu of all upgrades</li>
</ul><br />Request :<ul><li>Nothing for the moment, feel free to ask !</li>
</ul>Note: Don't ask for things who are already in<a href="https://forums.allie...ad.php?t=219389" target="_blank">this post</a> !<br /><br /><b>Logs :</b><br />------<br />0.1 <font color="red">ALPHA</font> : First public release. (SMX download : 2; SP download : 3)<br />0.2 <font color="red">ALPHA</font> : Fixed a lot of major bugs. (Cash reduced each spawn, player lost levels randomly.)<br />-------<br /><br />Total SMX download : <b>2</b><br />Total SP download : <b>3</b><br /><br /><b>IMPORTANT NOTE</b>:<br />Nothing.</div>
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/smx.gif" alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...38;d=1410704311">TF2_RPG.smx</a> (31.2 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...s/attach/sp.gif" alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.sourcemod...?file_id=137924"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1410704311">Get Source</a> (TF2_RPG.sp - 37.7 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/cfg.gif" alt="File Type: cfg" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...38;d=1410700970">TF2_RPG.cfg</a> (582 Bytes)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>
</div>
<!-- END TEMPLATE: postbit_external -->
Wyświetl pełny artykuł
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
[TF2] TF2 RPG (Alpha 0.1)
Temat rozp. Adminek AMXX.PL, 14.09.2014 13:38
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych