• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

[Released] Guild War For Count Frags in Site+Tables+Tutorial

So, Can you help me?

All works fine but if I'm going to see the frags of each guild (by clicking on 0-0) I get this error:
Code:
Fatal error: Call to undefined method OTS_Guild::getEnemy() in C:\xampp\htdocs\wars.php on line 258


Thanks.

GeKirAh post here your OTS_Guild.php from C:\xampp\htdocs\pot\ or it won't work.
 
Last edited:
It works for me... (I have TFS 0.3.2) Mmm, works but doesn't work correctly XD... He missed a POT file (OTS_Guild.php).
 
I would like some help, Im getting this error:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE `deaths_in_wars` (
`guild_id` INT( 11 ) NOT NULL ,
`player_id` IN' at line 8
 
Kk Bugs in this scripts:
1) With your kill.lua in creaturescripts monsters don't die.
2) Fatal error: Call to undefined method OTS_Guild::getEnemy() in C:\xampp\htdocs\wars.php on line 258
in php file
 
Kk Bugs in this scripts:
1) With your kill.lua in creaturescripts monsters don't die.
2) Fatal error: Call to undefined method OTS_Guild::getEnemy() in C:\xampp\htdocs\wars.php on line 258
in php file

Try to make other file called killa.lua for example.
 
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE `deaths_in_wars` (
`guild_id` INT( 11 ) NOT NULL ,
`player_id` IN' at line 8

the same error for me :/?
 
@up:
Use Xampp 1.6.7

@thread:
I can kill monsters with this kill.lua:

LUA:
dofile("./GuildWar.lua")

local PZ = createConditionObject(CONDITION_INFIGHT)
setConditionParam(PZ, CONDITION_PARAM_TICKS, getConfigInfo('pzLocked'))

function onKill(cid, target)
	if isPlayer(cid) == TRUE and isPlayer(target) == TRUE then
		local myGuild = getPlayerGuildId(cid)
		local enemyGuild = getPlayerGuildId(target)
		if myGuild ~= 0 and enemyGuild ~= 0 then
			if enemyGuild == getGuildWarInfo(myGuild).With then
				removeFrag(cid)
				doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "This Frag will not count") --Remove this if you wish
				doAddCondition(cid, PZ)
				registerDeath(myGuild, enemyGuild, cid, target)
			end
		end
	end
	return TRUE
end
 
For yours database paste this:
Code:
ALTER TABLE `guilds` 
ADD `invited_to` INT( 11 ) NOT NULL ,
ADD `invited_by` INT( 11 ) NOT NULL ,
ADD `in_war_with` INT( 11 ) NOT NULL ,
ADD `kills` INT( 11 ) NOT NULL ,
ADD `show` SMALLINT( 1 ) NOT NULL ,
ADD `war_time` INT( 11 ) NOT NULL ;

 CREATE TABLE `deaths_in_wars` (
`guild_id` INT( 11 ) NOT NULL ,
`player_id` INT( 11 ) NOT NULL ,
`killer_guild` INT( 11 ) NOT NULL ,
`killer` INT( 11 ) NOT NULL ,
`date` INT( 11 ) NOT NULL 
) ENGINE = MYISAM

Anyone can paste this POTs file ?!
 
fixed, all works for me but need the POTs File
 
Last edited:
I don't think that Gekirah will post the POTs, maybe someone ask Nahruto ;) haha
 
Back
Top