Natan Beckman
Well-Known Member
System functions:
- Adds points in all players the guild, even those who are offline.
- The player receives points only once.
- No matter if it enters into another guild or create another character.
- The script is based on one made by Gesior.pl.
- More this script is totally created by Lukeskywalker.
- The leader of the guild can only run the command once per day.
- Some bug fixes and this is without doubt the GuildPoints most complete of forums.
See scripts:
Create one archive in data/talkactions/scripts name guildpoints.lua:
CODE GUILDPOINTS.LUA TFS 0.4
CODE GUILDPOINTS.LUA TFS 1.0
In script the above configure your rules:
Next add in talkactions.xml:
At its database add:
Now go to the web part.
Add in index.php:
Add in config.php:
Add in layouts.php next of ShopOffer:
Add in layouts.php next of ShopAdmin for make sure that you only have access ADM:
Create the archives how name shopguild.php and shopguildadmin.php add:
shopguild.php
shopguildadmin.php
End!
Credits:
LukeSkywalkwer
Natanael Beckman
Sorry my english!
- Adds points in all players the guild, even those who are offline.
- The player receives points only once.
- No matter if it enters into another guild or create another character.
- The script is based on one made by Gesior.pl.
- More this script is totally created by Lukeskywalker.
- The leader of the guild can only run the command once per day.
- Some bug fixes and this is without doubt the GuildPoints most complete of forums.
See scripts:
Create one archive in data/talkactions/scripts name guildpoints.lua:
CODE GUILDPOINTS.LUA TFS 0.4
CODE GUILDPOINTS.LUA TFS 1.0
In script the above configure your rules:
ExecuteIntervalHours = 24,
NeedPlayersOnline = 10,
NeedDiferentIps = 6,
MinLevel = 80,
AddPointsForAcc = 9
Next add in talkactions.xml:
Code:
<talkaction words="!guildpoints" event="script" value="guildpoints.lua"/>
At its database add:
Code:
ALTER TABLE `accounts` ADD `guild_points` INTEGER(11) NOT NULL DEFAULT 0;
Code:
ALTER TABLE `accounts` ADD `guild_points_stats` INT NOT NULL DEFAULT '0';
Code:
ALTER TABLE `guilds` ADD `last_execute_points` INT NOT NULL DEFAULT '0';
Code:
CREATE TABLE `z_shopguild_offer`(
`id`int(11) NOT NULL auto_increment,
`points`int(11) NOT NULL default'0',
`itemid1`int(11) NOT NULL default'0',
`count1`int(11) NOT NULL default'0',
`itemid2`int(11) NOT NULL default'0',
`count2`int(11) NOT NULL default'0',
`offer_type` varchar(255)default NULL,
`offer_description` text NOT NULL,
`offer_name` varchar(255) NOT NULL,
`pid` INT(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`))
Code:
CREATE TABLE `z_shopguild_history_item`(
`id`int(11) NOT NULL auto_increment,
`to_name` varchar(255) NOT NULL default'0',
`to_account`int(11) NOT NULL default'0',
`from_nick` varchar(255) NOT NULL,
`from_account`int(11) NOT NULL default'0',
`price`int(11) NOT NULL default'0',
`offer_id`int(11) NOT NULL default'0',
`trans_state` varchar(255) NOT NULL,
`trans_start`int(11) NOT NULL default'0',
`trans_real`int(11) NOT NULL default'0',
PRIMARY KEY (`id`))
Code:
CREATE TABLE `z_shopguild_history_pacc`(
`id`int(11) NOT NULL auto_increment,
`to_name` varchar(255) NOT NULL default'0',
`to_account`int(11) NOT NULL default'0',
`from_nick` varchar(255) NOT NULL,
`from_account`int(11) NOT NULL default'0',
`price`int(11) NOT NULL default'0',
`pacc_days`int(11) NOT NULL default'0',
`trans_state` varchar(255) NOT NULL,
`trans_start`int(11) NOT NULL default'0',
`trans_real`int(11) NOT NULL default'0',
PRIMARY KEY (`id`))
Add in index.php:
PHP:
case "shopguild";
$topic = "Shop Guild";
$subtopic = "shopguild";
include("shopguild.php");
break;
PHP:
case "shopguildadmin";
$subtopic = "shopguildadmin";
$topic = "Shop System";
include("shopguildadmin.php");
break;
Add in config.php:
PHP:
$config['site']['shopguild_system'] = 1;
Add in layouts.php next of ShopOffer:
PHP:
<a href='?subtopic=shopguild'>
<div id='submenu_shopguild' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
<div id='ActiveSubmenuItemIcon_shopguild' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
<div class='SubmenuitemLabel'>Shop Guild <blink><font size='0'><font color='yellow'>NEW</font></font></blink></div>
<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
</div>
</a>
Add in layouts.php next of ShopAdmin for make sure that you only have access ADM:
PHP:
<a href='?subtopic=shopguildadmin'>
<div id id='submenu_shopguildadmin' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
<div id='ActiveSubmenuItemIcon_shopguildadmin' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
<div class='SubmenuitemLabel'><font color=red>! ShopGuild Admin !</font></div>
<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
</div>
</a>
Create the archives how name shopguild.php and shopguildadmin.php add:
shopguild.php
shopguildadmin.php
End!
Credits:
LukeSkywalkwer
Natanael Beckman
Sorry my english!
Last edited: