DragonPrime - LoGD Resource Community

Modules, Themes and other customizations for your game => Completed Modules for version 1.x.x => Topic started by: Kala on June 26, 2007, 08:18:21 PM



Title: Clan Pyramids
Post by: Kala on June 26, 2007, 08:18:21 PM
Clan Wars style set of 3 Pyramids that randomly appear in the village, each with its own set of maps which players can take and defend for their clans.  Giving them some bonuses.

Clan Points HoF file included in pack to reflect the Points earned each month by the clan also the kills of other clans members in the pyramids.

Features:

- Random access to the pyramids in villages
- Only 2 of the 3 pyramids will show in the links
- HoF appears on both main HoF and in individual Clan Halls
-- Kills HoF in main shows overall kills
-- Kills HoF in clan shows within clan kills
- Bonus experience in forest for owning all 3 pyramids (this can be edited on line 127 of the main clanpyramid.php file, currently set at 10 per players level).
- Previous months winning Clan Name will be displayed in village.
- Maps of all 3 pyramids - with player pref to set them as a popup window, show in the main window, or not load at all (for those on dialup that images slow them down too much).
- Warriors Lists - all shown on the entrance page, so you can see where your opponent is, each pyramid, also has at least 1 other warrior list hidden within it, you have to find it to use it :)
- Clan War Vault (Written by Shadow Raven) - ability to buy attack and defense for your clan within the clan halls, Leaders can buy the attack and defense, from gold donated by clan members, admin settable how much gold per atk/def point. Top Donators HoF included.  Buying Attack ups your clan members attack when battling in the pyramids.  Buying Defense ups the size of a clans walls.

- The Pyramids themselves:

- Tzeltachs (Pyramid 1)
-- floating doors in the walls, which move with each pyramid take for each clan.
-- Doors must be found and broken down to take the throne in the centre, each with its own guardian to fight

- Chexalramins (Pyramid 2)
-- All walls are able to be demolished, each has its own guardian to fight
-- Partial maps shown as you cant see through to whats on the other side of a wall
-- Give up link (has seen players, including herself, lost in this one for half an hour or more).

- Prazlynx (Pyramid 3)
-- No walls, only the thrones
-- Random Transportation Portals, that can move you backwards, forwards or even to another pyramid.

Important, Please Note:

The images folder included here, extract the files from the folder, and place them in the now included /modules/clanpyramid/images folder.

There is a readme text.  Do NOT upgrade previous versions until you have read it.  It also explains how to modify experience given (this is not nor will ever be a setting).

Included is upgradepyramid files.  You must install and uninstall or your players will no longer have their player kills adding on.  This file removes all no longer used prefs and converts player kills and player clanpoints earned over to the clanhof module.  I take no responsibility for those who do not read.

Download Here: http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=1290


Images files don't quite fit in the max attachment size and can be dowloaded here: http://www.timerealms.net/test/images/pyramidimages.zip


Title: Re: Clan Pyramids
Post by: rolland on June 27, 2007, 04:06:34 AM
I got this when I clicked explore

Quote
Parse error: syntax error, unexpected '}' in /home/tynas3/public_html/modules/clanpyramid/move_func.php on line 265


Title: Re: Clan Pyramids
Post by: Kala on June 27, 2007, 05:04:54 AM
Sorry about that..

I've fixed and attached the new file here.  Only replace /clanpyramid/move_func.php with this file.



Title: Re: Clan Pyramids
Post by: XChrisX on June 27, 2007, 05:38:52 AM
You'd like a hint? You have three long lines in clanpyramids_func.php, which can be greatly reduced.

Code:
if ($which==1){
if ($squarenew==1) $squarename="A1"; if ($squarenew==2) $squarename="A2"; if ($squarenew==3) $squarename="A3"; if ($squarenew==4) $squarename="A4"; if ...

could be rewritten into:

Code:
if ($which == 1) {
  $squarename = chr(floor($squarenew/13)+65) . (($squarenew % 13) + 1);

for $which = 2 or 3 simply subtract 1000 / 2000

That reduces the file's size by 23'002 bytes!!! (And it is A LOT faster.) (And only works if the names of the squares are arranged in a rectangle... :P )

[EDIT START]And another 22'940 bytes, when I found the second occurence... Always assuming the maps are 13 squares wide... :) If not, I will find another way...[EDIT END]

Looking closer at the file, it seems it is not translation ready:

Code:
output("`b`^You are on $squarename`b`n");

should be

Code:
output("`b`^You are on %s`b`n", $squarename);
(Haven't looked further, but I bet I'll find more of them, right? ;)


Title: Re: Clan Pyramids
Post by: XChrisX on June 27, 2007, 05:45:07 AM
Smaller file attached. (untested, though...)


Title: Re: Clan Pyramids
Post by: Kala on June 27, 2007, 06:05:51 AM
Thanks for the advice Chris...

And no its not translation ready.. I am intending to convert it, but as it was, on my server, it didn't need to be translation ready, so I have not yet had the time to convert.

The Pyramids have been in development for quite some time, I started on them just after finishing my PVP Arena, and a lot of the basic coding is the same.   Basically, I done what I needed to do with the code, in the best way I knew how. :)

Again thanks for the input, and I'll look at adding that to a later release, as I intend to add in the ability of clan members to upgrade their clans defence, thereby upgrading the size of the walls/doors within the pyramids themselves.


Edit:  Just tested your code XChrisX, it works to a point, as I'm not familiar with what you're doing *self taught and haven't come across that before*.  The first square becomes A2 and its impossible to go from B1 to A1 as that square no longer exists.  But A2 takes on its attributes.


Title: Re: Clan Pyramids
Post by: Kala on June 27, 2007, 11:12:24 PM
Ver 1.1

Converted to translation ready

added shortened code by XChrisX (Thank You) :)

Fixed bug in move_func.php as reported above


Title: Re: Clan Pyramids
Post by: danbi on June 28, 2007, 12:47:59 AM
On lines 187 and 192 in move_func.php you index the arrays with r_rand(1,6), but the arrays are defined to only have 5 elements.

Line 75 in walls2_func.php list undefined variable $defence and line 79 $tatka. I guess both are typos.

There is one thing I don't understand :) I go trough walls without losing turns. I hit guardians with my clan's strenght, but they never hit me...


Title: Re: Clan Pyramids
Post by: rolland on June 28, 2007, 02:06:18 AM
Also upon going to the Tzeltalchs Pyramid, you just get a nav saying return to the village, and nothing else is there


Title: Re: Clan Pyramids
Post by: rolland on June 28, 2007, 02:14:33 AM
And theres two move_func.php files, ones in a zip, which do we use?


Title: Re: Clan Pyramids
Post by: Kala on June 28, 2007, 03:48:45 AM
On lines 187 and 192 in move_func.php you index the arrays with r_rand(1,6), but the arrays are defined to only have 5 elements.

Line 75 in walls2_func.php list undefined variable $defence and line 79 $tatka. I guess both are typos.

There is one thing I don't understand :) I go trough walls without losing turns. I hit guardians with my clan's strenght, but they never hit me...

Perhaps Danbi, occasionally there is no door on that particular wall?  A lot of the interest from my players is the fact that they don't quite know what is going to happen all the time. :)

Oh and believe me the guardians do hit.. and when they do... ouch *my news often has <player> was hurled from a pyramid...*

Also this module does not 'kill'

$tatka should be $tatk so yes a typo and I am unable to find the variable $defence (even using Ctrl F)
the variable on line 75 is $def which is used just below to calculate wall hits.

The module was not written to take turns off them, if you wish you may add that.  The clans ability to buy atk/def and increase their walls and also atk bonus inside the pyramids will be added (as per my previous post) until then, your clan atk/def is hard coded throughout the module and set the same at each point.  This will change with the next version release.

Roland just delete the zip file that was inside, that is the old file, with the error fix I posted above.  Sorry about that and the confusion, I thought I deleted that.  I'm not having any trouble with entering Tzel Pyramid on my test server :)


Title: Re: Clan Pyramids
Post by: danbi on June 28, 2007, 04:13:11 AM
line 75 in walls2_func.php was actually

Code:
$def=$session['user']['defence'];

I guess you meant 'defense' for the index. Sorry for calling that variable too, but I just edited the line :)

My concern abouf guards never hitting back is, that most of my fights are me hitting them 2-3 times and they die :) Perhaps the reason is the balance of my character, with little hp and even spred of attack and defense for about 60DK).

Nice module.


Title: Re: Clan Pyramids
Post by: Kala on June 28, 2007, 04:17:32 AM
heh, yeah, I'll get that fixed up (blames being an aussie and spelling different lol).

Thanks.. I know I've got a lot of requests for it.. and once the clans have individual places to actually buy atk/def that bonus will even out a lot.   But those guards are sneaky.. they may only hit back once in 10 times or even more.. but when they do, they often kill in one go lol..

I'm thinking of maybe adding in that players get x amount of clan pyramid turns a new day, with the option for clans or players to buy more.. but that won't be for a lil while.


Title: Re: Clan Pyramids
Post by: ShadowRaven on June 28, 2007, 12:14:07 PM
Quote
Thanks.. I know I've got a lot of requests for it.. and once the clans have individual places to actually buy atk/def that bonus will even out a lot.

I wrote a module that does exactly this for the pyramids version on my game....I just have to test it to make sure it works with THIS version of the pyramids, and will release it soon.

*Kala, if you can get on yahoo still, please IM me....

Edit:

Here it is. Had to edit the pyramid module for the pyramid script to be able to pull the clans' att and def from the clan war vault clan prefs. If clan war vault is not installed it will just use the att and def bonus that it did before.
I just added this mod to the pyramid packages because its useless without it anyway. It won't work with anything else. But let me know if y'all think it should be a separate download.
btw, I also fixed atlease one instance that I found 'defence' and changed it to 'defense'. there might be more, I haven't really check all the files yet.

Admin settings:
Set how much it costs per clan att point
Set how much it costs per clan def point

Also Clan leaders can set whether or not officers can buy att/def for the clan
And there is a hof in the clan halls for clan donators

Package attached below


Title: Re: Clan Pyramids
Post by: Kala on June 28, 2007, 05:57:05 PM
Thanks SR :)

Saves me several hours and probably another headache lol


Title: Re: Clan Pyramids
Post by: rbest320 on June 28, 2007, 09:12:17 PM
Also upon going to the Tzeltalchs Pyramid, you just get a nav saying return to the village, and nothing else is there

I also get this, but also get a link saying Hit the Throne. Next to is is
Quote
You are on A1
You have found the throne door
There is a wall to the north, that way is blocked.

If you click on hit the Throne you get this:
Quote
This wall is impenetrable, perhaps you should look for a door?
with a link to return to the pyramid.

If I knew where to look for the coding, I'd be able to help better.  :'(


Title: Re: Clan Pyramids
Post by: Kala on June 28, 2007, 09:54:49 PM
That for some reason happens on first install.. I haven't been able to track it down.  However, once the throne is taken the first time, it doesn't recurr, so is only a minor installation glitch, giving the first clan in a instant 'take'.

I will look at tracking that down, if its not allowing you to actually take the throne, which it should do.

Edit: I cannot replicate this exact error.

IF I edit the settings in the grotto to change the clan who currently has this pyramid, then I get that error.  Note: this setting does say for coding purposes only.

However, I am then able to take the throne.  Upon logging an alt in, they do not get this error, being in another clan and can move around the pyramid easily, and it functions as supposed to.

Please post exactly what happens, and if you've editted the settings etc.

The exact piece of code is in the move_func.php file.  Along with all the arrays for the doors and throne area.


Title: Re: Clan Pyramids
Post by: rbest320 on June 29, 2007, 02:08:22 PM
ok, I discovered that the problem was there was no clan id assigned and as soon I put in an id, I still got the message but was able to take the throne and it's been working fine since. I hadn't changed any of the coding at all. but it's working now. Thanks!


Title: Re: Clan Pyramids
Post by: rolland on June 29, 2007, 02:13:55 PM
This is a great module though, good work Kala!! And also ShadowRaven!!


Title: Re: Clan Pyramids
Post by: BETAKING on June 29, 2007, 02:23:15 PM
The clan Pyramids and War Vault work PERFECT on 1.1.1


Title: Re: Clan Pyramids
Post by: tylerpro on July 27, 2007, 05:58:29 AM
Hmm....

I'm getting this whenever I fight a guardian after upping the clan attack:
Code:
Module clanvault was not found in the modules directory.
You gain experience.

I suspect the error is in line 232-3 of clanpyramid/clanpyramid.php:
Code:
        if (is_module_active("clanwarvault")){
        $clanatk = get_module_objpref("clans", $clanid, "att","clanvault");
        $clandef = get_module_objpref("clans", $clanid, "def","clanvault");
        }else{

Those are the only 2 instances whereby clanvault is called instead of clanwarvault.

P.S: Are the guardians meant to be so weak? After using all forests fights, a player can keep checking the village to find the pyramid and challenge the guardian to get tons of experience. Would this IMBA the game?  ::)


Title: Re: Clan Pyramids
Post by: Kala on July 29, 2007, 09:15:26 AM
Thanks Tyler, I'll get that fixed this weekend, along with a bug my players have reported with the first pyramid (walls not resetting to proper atk/def).

:)


Title: Re: Clan Pyramids
Post by: Kala on August 03, 2007, 11:39:37 AM
fixed the reference to clanwarvault

fixed hp not resetting on walls in Tzeltachs Pyramids.

*Guardians aren't really weak, if they throw you out, and they do, you're not allowed back in for 10 minutes*

Feel free to downgrade the experience they give if you wish :)


Title: Re: Clan Pyramids
Post by: Heszy on August 30, 2007, 06:27:27 PM
Just wondering if say only one clan buys att/def, are the walls supossed to be harder for ALL clans including that one?

Thats the way it seems to be working. It just didn't make sense to me. The walls should be harder for every clan BUT that one clan. That way the clans also compete in that aspect aswell.


Title: Re: Clan Pyramids
Post by: ordicbm on October 09, 2007, 09:51:45 PM
bonjour
version jeu 1.1.0

quand un joueurs attaque un autre dans la pyramide, voici l'erreur:

    SELECT accounts.name AS name,
    accounts.clanid AS clanid,
    accounts.acctid AS acctid,
    module_userprefs.value AS square,
    module_userprefs.userid FROM module_userprefs INNER JOIN accounts
    ON accounts.acctid = module_userprefs.userid
    WHERE module_userprefs.modulen ame = 'clanpyramid'
    AND module_userprefs.setting = 'square'
    AND module_userprefs.userid <>
    AND accounts.clanid <>
    AND accounts.loggedin = 1
    AND accounts.lastip <> ''
    AND accounts.uniqueid <> ''
    AND accounts.laston>'2007-10-09 15:23:20'
    AND module_userprefs.value = '1073'

    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 'AND accounts.clanid <> AND accounts.loggedin = 1 AND accounts.lastip <> '' ' at line 10
    Call Stack:
    1: db_query("SELECT accounts.name AS n...") called from /home/lddv/www/dragon/modules/clanpyramid/warriors_func.php on line 191
    2: warriors_list() called from /home/lddv/www/dragon/modules/clanpyramid/clanpyramid.php on line 216
    3: include("/home/lddv/www/dragon/mod...") called from /home/lddv/www/dragon/modules/clanpyramid.php on line 358
    4: clanpyramid_run() called from /home/lddv/www/dragon/runmodule.php on line 35

une ide?


Title: Re: Clan Pyramids
Post by: Kala on October 10, 2007, 11:41:43 PM
In the /clanpyramid/warriors_func.php file

add

Code:
$u=&$['session']['user'];

so that the code looks like this

Code:
function warriors_list(){
global $session;
$u=&$['session']['user'];

this should fix it :)


Title: Re: Clan Pyramids
Post by: ordicbm on October 11, 2007, 02:20:30 AM
merci, je viens de le faire
je reviendrais dire si cela resoud le probleme
cordialement


Title: Re: Clan Pyramids
Post by: ordicbm on October 11, 2007, 02:37:32 AM
re bonjour
en mettant cette ligne ci:
$u=&$['session']['user'];

a la place de
$u=&$session['user'];

j'ai cette erreur


Parse error: syntax error, unexpected '[', expecting T_VARIABLE or '$' in /home/lddv/www/dragon/modules/clanpyramid/warriors_func.php on line 5



Title: Re: Clan Pyramids
Post by: Kala on October 11, 2007, 06:08:27 AM
gah, my bad

it is

Code:
$u=&$session['user'];

I haven't written much recently, unfortunately, and am a bit rusty at times.


Title: Re: Clan Pyramids
Post by: ordicbm on October 11, 2007, 06:14:32 AM
merci  ;)
c'est ok


Title: Re: Clan Pyramids
Post by: chatter8712 on November 23, 2007, 10:30:24 AM
Hey,

I run a game where we tend to explain each new module to the player community. Could you please write me a detailed description of this module that would make sence to normal players who don't even know that there is a Grotto?

Thanks.


Title: Re: Clan Pyramids
Post by: Talisman on November 23, 2007, 10:37:03 AM
Hey,

I run a game where we tend to explain each new module to the player community. Could you please write me a detailed description of this module that would make sence to normal players who don't even know that there is a Grotto?

Thanks.

The detailed description in the first post of this thread isn't enough?


Title: Re: Clan Pyramids
Post by: chatter8712 on November 23, 2007, 10:41:40 AM
Hey,

I run a game where we tend to explain each new module to the player community. Could you please write me a detailed description of this module that would make sence to normal players who don't even know that there is a Grotto?

Thanks.

The detailed description in the first post of this thread isn't enough?

Actually, my module installing staff couldn't even figure out exactly what to do and how it works. I would appriciate something a little more instructive, maybe in sentence format?


Title: Re: Clan Pyramids
Post by: Elessa on November 23, 2007, 10:59:25 AM
Hey,

I run a game where we tend to explain each new module to the player community. Could you please write me a detailed description of this module that would make sence to normal players who don't even know that there is a Grotto?

Thanks.

The detailed description in the first post of this thread isn't enough?

Actually, my module installing staff couldn't even figure out exactly what to do and how it works. I would appriciate something a little more instructive, maybe in sentence format?

are ye sure they should be installing, activating and setting modules? 

having a basic understanding of code which can be gained through the tutorial on the right, using various resources which are linked for research, reading the module code before installing and reading the description of what a module is written to do theoretically should be enough for someone to administer the settings.

btw, i do not think kala is as active any longer in the forum.  while a readme.txt with instructions for every module would be ideal, not every coder provides them. 


Title: Re: Clan Pyramids
Post by: chatter8712 on November 23, 2007, 11:03:35 AM
Hey,

I run a game where we tend to explain each new module to the player community. Could you please write me a detailed description of this module that would make sence to normal players who don't even know that there is a Grotto?

Thanks.

The detailed description in the first post of this thread isn't enough?

Actually, my module installing staff couldn't even figure out exactly what to do and how it works. I would appriciate something a little more instructive, maybe in sentence format?

are ye sure they should be installing, activating and setting modules? 

having a basic understanding of code which can be gained through the tutorial on the right, using various resources which are linked for research, reading the module code before installing and reading the description of what a module is written to do theoretically should be enough for someone to administer the settings.

btw, i do not think kala is as active any longer in the forum.  while a readme.txt with instructions for every module would be ideal, not every coder provides them. 


Okay. I end up doing that anyway (I'm the PHP savy one on the site). I just let them try that because of my other committments. We'll stumble through it, and you are right. It would be really nice to have readme.txt for everything.


Title: Re: Clan Pyramids
Post by: Elessa on November 23, 2007, 11:05:51 AM
/me notices that the images file is not included with the module

i have uploaded the clan pyramids images file to the downloads area here (http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=1351)


Title: Re: Clan Pyramids
Post by: els forever magic on November 23, 2007, 11:11:18 AM
Yay elessa I thought I had to make them myself*they would look like a three yearold made them*. :-[


Title: Re: Clan Pyramids
Post by: Kala on November 23, 2007, 07:06:41 PM

Images files don't quite fit in the max attachment size and can be dowloaded here: http://www.timerealms.net/test/images/pyramidimages.zip

Shows that some really don't read the blurb at the start :P (I had enough trouble creating those pics, without making someone else do it too lol)

I really don't know what else I could have added to that description at the start, it is fairly informative.

Yes, I haven't been as active, for a few reasons, battling ill health, and am working on creating a completely new online game which will be unlike Lotgd.  However, my thanks do go to those who created Lotgd (Eric and JT), and everyone here on DP, without the interest I had in lotgd and learning to code, I would never have even attempted this new venture.


Title: Re: Clan Pyramids
Post by: Elessa on November 23, 2007, 07:37:35 PM
no worries on the images. when i read the first post this morning and saw the link went offsite i thought i had best add them to the dragonprime archives.

i also agree that the description ye wrote, kala, goes above and beyond what many give their modules.  ;)

may thy health improve so that ye may peek here to contribute upon occasion as well as move forward with thy new venture!



Title: Re: Clan Pyramids
Post by: Derek on December 05, 2007, 09:24:09 AM
Hello. I think this is a great module, I really like it. But I have found a problem.

My site is still recovering, and we don't have that many players online at a time. (My current players love my site, but I can't seem to get more players) This is probably the cause of our problem.

If I make quote one of my players,
Quote
The T and P pyramids are very easy. The C one takes a lot of wall breaking and fighting.
-Agrophillia
I'm guessing it's because there aren't many clan members playing the pyramids at a time. Is there anything you or I can do to make the "T and P" Pyramids more challenging, and then give it a setting (initially off) so that the smaller sites can turn it on, until they grow?


Title: Re: Clan Pyramids
Post by: Nightborn on December 05, 2007, 09:27:47 AM
1 hour days

<-- hint: check the "new accounts" against "deleted/expired accounts" ratio.

if it is at a high percentage of your total chars, well, you wear your players out =)

I don't want to offend you, just give out a possible source of the problem.


Title: Re: Clan Pyramids
Post by: Kala on December 05, 2007, 10:05:58 PM
Is there anything you or I can do to make the "T and P" Pyramids more challenging, and then give it a setting (initially off) so that the smaller sites can turn it on, until they grow?

You can create a setting if you wish, perhaps one for wall strength.  Then change the code in the module, just for those two pyramids, so that the wall strength, is based just on that one setting.

Two Points: Yes, Tzel is easy, it's supposed to be, it's an introduction for players to the pyramids, and supposed to be easy and straight forward for them to do.

Praz.. Appears easy.. it's not really... Hit a transport Portal, and get taken from that pyramid to another.. and maybe your clan already has that one.. Well, you need to find the link again.

My suggestion to make it 'harder'.. Decrease the links appearance in the village, thats what it's for, when Praz sends them to another pyramid, then it's a lot harder for them to take.  Praz is designed with moving/randomised portals, for one reason... To give them an incentive, and to appear deceptive.  Yes it is easy to take, IF you avoid the portals OR if you manage to get a 'nice' one.


Title: Re: Clan Pyramids
Post by: Derek on December 06, 2007, 07:13:42 AM
Yes, Tzel is easy, it's supposed to be, it's an introduction for players to the pyramids, and supposed to be easy and straight forward for them to do.
Shouldn't an introduction become harder after it introduces them to the players? It's still just as easy when the player knows everything about the Pyramids.

In any case, thanks for the info, I'll try some of that now. :)


Title: Re: Clan Pyramids
Post by: Kala on December 08, 2007, 08:23:32 AM
Shouldn't an introduction become harder after it introduces them to the players? It's still just as easy when the player knows everything about the Pyramids.

Which is why it's worth less points in the wars for the clans to take ;)


Title: Re: Clan Pyramids
Post by: friskon on January 24, 2008, 06:12:03 AM
hi all, have this problem

--------------------------------------------------
SELECT logd_accounts.name AS name,
   logd_accounts.clanid AS clanid,
   logd_accounts.acctid AS acctid,
   logd_module_userprefs.va lue AS square,
   logd_module_userprefs.us erid FROM logd_module_userprefs INNER JOIN logd_accounts
   ON logd_accounts.acctid = logd_module_userprefs.us erid
   WHERE logd_module_userprefs.mo dulename = 'clanpyramid'
   AND logd_module_userprefs.se tting = 'square'
   AND logd_module_userprefs.us erid <>
   AND logd_accounts.clanid <> 
   AND logd_accounts.loggedin = 1
   AND logd_accounts.lastip <> ''
   AND logd_accounts.uniqueid <> ''
   AND logd_accounts.laston>'2008-01-24 14:19:27'
   AND logd_module_userprefs.va lue = '1011'
   
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 'AND logd_accounts.clanid <> AND logd_accounts.loggedin = 1 AND logd_accounts' at line 10
Call Stack:
etc...
-------------------------------------------
with warrior attack in the pyramid


in the file warrior_func.php is ok ?

---------------------------------------
<?php
function warrior_attack(){
   global $session;
   $u=&$session['user'];
   $clanid=$u['clanid'];
   $last = date("Y-m-d H:i:s",strtotime("-".getsetting("LOGINTIMEOUT", 900)." sec"));
   $loggedin=1;
etc...
-----------------------------------------


have a version 1.06 of logd
thx for help


Title: Re: Clan Pyramids
Post by: Kala on January 24, 2008, 06:25:31 AM
The error you're getting, is because it isn't showing a clanid nor a players account id number in the sql query.

The file is running on my 1.1.0 server, all fine.  Try changing

Code:
AND $acc.clanid = $clanid

to

Code:
AND $acc.clanid = '$clanid'

see if that helps.  My mysql has been fussy about those ' ' lately :)



Title: Re: Clan Pyramids
Post by: friskon on January 24, 2008, 07:44:46 AM
thx ugually
don't work

this is the message

-----------------------------------------
SELECT logd_accounts.name AS name,
   logd_accounts.clanid AS clanid,
   logd_accounts.acctid AS acctid,
   logd_module_userprefs.va lue AS square,
   logd_module_userprefs.us erid FROM logd_module_userprefs INNER JOIN logd_accounts
   ON logd_accounts.acctid = logd_module_userprefs.us erid
   WHERE logd_module_userprefs.mo dulename = 'clanpyramid'
   AND logd_module_userprefs.se tting = 'square'
   AND logd_module_userprefs.us erid <>
   AND logd_accounts.clanid <> 
   AND logd_accounts.loggedin = 1
   AND logd_accounts.lastip <> ''
   AND logd_accounts.uniqueid <> ''
   AND logd_accounts.laston>'2008-01-24 16:27:49'
   AND logd_module_userprefs.va lue = '1004'
   
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 'AND logd_accounts.clanid <> AND logd_accounts.loggedin = 1 AND logd_accounts' at line 10
Call Stack:
1: db_query("SELECT logd_accounts.name...") called from /web/htdocs/www.worldfantasy.biz/home/lotgd/modules/clanpyramid/warriors_func.php on line 191
2: warriors_list() called from /web/htdocs/www.worldfantasy.biz/home/lotgd/modules/clanpyramid/clanpyramid.php on line 216
3: include("/web/htdocs/www.worldfant...") called from /web/htdocs/www.worldfantasy.biz/home/lotgd/modules/clanpyramid.php on line 358
4: clanpyramid_run() called from /web/htdocs/www.worldfantasy.biz/home/lotgd/runmodule.php on line 32


Title: Re: Clan Pyramids
Post by: Kala on January 24, 2008, 08:02:27 AM
: db_query("SELECT logd_accounts.name...") called from /web/htdocs/www.worldfantasy.biz/home/lotgd/modules/clanpyramid/warriors_func.php on line 191
2: warriors_list() called from /web/htdocs/www.worldfantasy.biz/home/lotgd/modules/clanpyramid/clanpyramid.php on line 216
Just a note the whole error message would have been good before, as the error is in the 2nd sql in the warriors_list section, not the sql in the warrior_attack function, and the exact line numbers are always useful for finding errors :)

basically it's not giving you the user values from the accounts table.  Why not, I'm not sure.  As I said, I have this script working on my site, and it is all ok.

Just in case, I have attached the zipped file from my server.


Title: Re: Clan Pyramids
Post by: friskon on January 24, 2008, 10:58:19 AM
your file is god,  I thank you with the heart, this module is exceptional
thx thx thx thx


Title: Re: Clan Pyramids
Post by: Kala on March 03, 2008, 06:19:42 AM
Ver 1.2

Added a Player Points HoF, so players can keep track of how many points they've earnt for their clan.

Fixed a mistype in the pyramids_move functions regarding clan attack

Added Warriors_func.php file attached to my previous post to the submission

Also now includes outputs in pyramids 1 and 3 of wall strength when a clan takes over them (so they know what their walls are set at)


Title: Re: Clan Pyramids
Post by: Kala on March 03, 2008, 05:37:19 PM
Quote
Hi Kala,

I have uninstalled the old pyramid files, clanhof and warvault and reinstalled the new ones.  I captured the pyramid with one of my characters from one clan, then sent another one from a different clan into the pyramid.  When the first one returned to defend, noone showed up on the warrior inside list (the old copy showed up on the outside of the pyramid just not on the inside).  I entered anyway and stood on the same exact spot as the rival clan member and nothing showed.  The message that use to show up for enemy clan rushes you did not appear.  As it did not know the enemy was in the pyramid I could not test the attack feature.

The pyramids code, precludes alts, you cannot see nor attack yourself.  You would need to either remove the information from the sql, that does this in the pyramids.  Or edit your alt in the database, once they are on the square you with them to be on, removing their ip and id from the accounts (only do this is you are confident you won't destroy it).


Title: Re: Clan Pyramids
Post by: Wiser on March 03, 2008, 06:06:42 PM
Kala,

Thanks, I will wait til someone from another clan comes on to test that part.  Another problem I encountered was when entering the Chexralmins Pyramid.  No matter what passage I clicked on it goes to a white this page cannot be displayed 500 internal server error.  Here is what shows in my browser address : http://wackedoutworld.org/runmodule.php?module=clanpyramid&op=move&move=passage3&c=395-175942.  That message is from clicking passage 3.  I am looking through the code to see what might be the problem, but maybe you can find it quicker :).

Thanks for your help.


Title: Re: Clan Pyramids
Post by: Kala on March 03, 2008, 06:14:38 PM
Please copy and paste the error code as it appears.

I cannot access the pages of your server, due to the lotgd forced navs.


Title: Re: Clan Pyramids
Post by: Wiser on March 03, 2008, 06:17:15 PM
There is no error code on the page just goes to a 500 error in the browser.  When I hit the back button it goes back to the pyramid entrance with a badnav.


Title: Re: Clan Pyramids
Post by: Wiser on March 03, 2008, 06:18:39 PM
I am going to uninstall and reinstall again.  Will let you know :)  Thanks again


Title: Re: Clan Pyramids
Post by: Kala on March 03, 2008, 06:21:46 PM
reupload the /clanpyramid/move2_func.php file.  This file is running on my server with no problems. The file may have become corrupted, or be misplaced.


Title: Re: Clan Pyramids
Post by: Kala on March 03, 2008, 06:27:03 PM
oops found it

line 118 is missing the $ for the variable $countrow

should be

Code:
$countrow=db_num_rows($resd);


Title: Re: Clan Pyramids
Post by: Wiser on March 03, 2008, 06:29:56 PM
Thanks, I knew you would find it quicker than me :)


Title: Re: Clan Pyramids
Post by: Wiser on March 03, 2008, 06:48:37 PM
I can now enter the Chexralmins Pyramid , thanks Kala.  We will be testing the fighting in about 10 min, got myself locked out of them for that long. :)


Title: Re: Clan Pyramids
Post by: Kala on March 03, 2008, 06:53:17 PM
Lol.. you can always reset the preference with the time in it.. to get in their earlier :)


Title: Re: Clan Pyramids
Post by: Wiser on March 03, 2008, 07:47:34 PM
All is well and now my players can battle each other in the pyramids.  Thanks much Kala for your quick reply and help :)


Title: Re: Clan Pyramids
Post by: Wiser on March 06, 2008, 05:05:03 PM
I am noticing a problem with clan points calculation.  After capturing the pyramids with one player the totals match in both the player points and clan points.  If more than one player takes a pyramid, the player points are correct but the clan points do not reflect the total of all players.  Before going any further I should point out that the test were performed by two of my own alts.  Does this module look for same ip?  If so then that is what the problem is.  I looked in the database under the clan pyramid module and it only shows one of the players wins.


Title: Re: Clan Pyramids
Post by: Kala on March 06, 2008, 06:42:31 PM
The pyramids code, precludes alts, you cannot see nor attack yourself.

It also won't calculate points for an alt, to stop players from logging in their alt and sitting them in an obscure spot.


Title: Re: Clan Pyramids
Post by: Wiser on March 06, 2008, 06:45:56 PM
Thanks much Kala, this is a great module and gives a competitive edge to the game :)


Title: Re: Clan Pyramids
Post by: Nightborn on March 07, 2008, 02:18:58 AM
But possibly after a cookie deletion, they could log in and do so? =) or is there a foolproof alt-tracker I am unaware of?


Title: Re: Clan Pyramids
Post by: Kala on March 07, 2008, 05:04:12 AM
it matches last IP and last ID... obviously it's possible to get around that.. but heh, it works mostly as players don't realise it does that ;)


Title: Re: Clan Pyramids
Post by: Nightborn on March 07, 2008, 05:23:17 AM
 ;D

IP *and* ID?

then you declare tons of AOL users multiplayers how aren't =)
and I think comcast too...

ID is the only way... "same computer = multi" ... but as IPs get shared, it's not that good =)


Title: Re: Clan Pyramids
Post by: Kala on March 07, 2008, 05:49:12 AM
Good point, and I didn't consider the AOL users.. hmm will change the files and resubmit.. tomorrow when I wake up lol..


Title: Re: Clan Pyramids
Post by: Nightborn on March 07, 2008, 06:05:34 AM
Make an option =) for small servers it should work, but with more players the chance for "false multis" increases.

Nevertheless, a good module ;)


Title: Re: Clan Pyramids
Post by: sixf00t4 on March 07, 2008, 06:45:35 AM
why don't you put the images in the module directory where they should go?


Title: Re: Clan Pyramids
Post by: Kala on March 07, 2008, 03:27:20 PM
Updated and removed the ID and IP information per Nightborns suggestion. :)

Thanks for the suggestions sixf00t I'll probably move them when I relook over this this module in the future.


Title: Re: Clan Pyramids
Post by: sixf00t4 on March 07, 2008, 03:35:53 PM
a simple "replace all" would fix it...


Title: Re: Clan Pyramids
Post by: Kala on March 07, 2008, 08:30:04 PM
a simple "replace all" would fix it...

yes it would be a simple replace all that would fix it.. if the maps weren't scattered through about 4 different files (depending upon which choice to view the maps the players pick), which I'm recoding somewhat anyway after some discussions with Nightborn


Title: Re: Clan Pyramids
Post by: ioScream on May 05, 2008, 11:48:15 PM
I was noticing that non-clan members were getting an experience bonus when the pyramids are unclaimed for "their clan owning all 3 pyramids". If I set the clan id to -1 or something like that will that fix the problem and still allow a clan to take a pyramid?


Title: Re: Clan Pyramids
Post by: Kala on May 06, 2008, 12:33:12 AM
I'm currently reworking these, so I'll include that in the revised code.

For now, add to the battle-victory hook

if ($session['user']['clanid']<>0){
with rest of code here

dont forget the closing  }

That should fix it for now :D

Kala


Title: Re: Clan Pyramids
Post by: Metal on May 06, 2008, 06:34:36 AM
i dont understand how to increase clan's atk & def. Do i need another module?


Title: Re: Clan Pyramids
Post by: Kala on May 06, 2008, 06:45:50 AM
The Clan War Vault, is included in this pack.  Clan members donate to the war vault and leaders/founders/officers (depending upon clan settings) can purchase atk/def.  There's a setting in the module manager, which allows admins to specify the amount of gold it costs per atk/def point.

<Note: I've found several glitches in the pyramids, the new version (which should be ready in the next week or two, will fix these>


Title: Re: Clan Pyramids
Post by: ioScream on May 06, 2008, 07:00:29 AM
hmm.. would it better to use..

Code:
if(isSet($session['user']['clanid'])){

}

or does clanid get set regardless.. This will be my 3rd day as an admin so I don't know how all the variables work, yet.

I'll try your method first.. Thanks for your help.


Title: Re: Clan Pyramids
Post by: Kala on May 06, 2008, 07:04:11 AM
clanid automatically returns 0 as the default, until they join a clan.


Title: Re: Clan Pyramids
Post by: ioScream on May 06, 2008, 07:17:00 AM
That took care of it.. thanks for the band-aide.. looking forward to your new version.


Title: Re: Clan Pyramids
Post by: Metal on May 06, 2008, 07:23:03 AM
i set cost of atk/def to 100, then i deposited 1000 gold, but atk/def dont increase. How to make it work?


Title: Re: Clan Pyramids
Post by: Kala on May 06, 2008, 07:25:52 AM
Did you spend it?

Clan Options/Fountain -> Battle Room to buy atk/def for the clan.

@ioScream

thanks, the new version, will remove about 50 - 75% of the preferences and settings for this module, making it less resource hungry :)


Title: Re: Clan Pyramids
Post by: Metal on May 07, 2008, 05:58:26 AM
i cant find the fountain... I've the clan option module installed


Title: Re: Clan Pyramids
Post by: Kala on May 07, 2008, 06:02:01 AM
The fountain shows both in the clan halls and when you click clan options.


Title: Re: Clan Pyramids
Post by: Kala on May 23, 2008, 10:57:42 PM
This file is now upgraded to ver 1.3.

Upgrade includes:

pyramidupgrade file.  This must be installed or your players will loose their clan points, player kills tallies.  It also removes no longer used prefs and settings from the database. INSTALL THIS FILE THEN UNINSTALL BEFORE YOU UPGRADE

The included readme file also includes how to modify experience given within the code.

Player kills and Player Clan Points tallies moved to the clanhof module.

Fewer settings and prefs.  Most of these were for coding purposes only and hence have been hard coded into the code itself.

New images folder.  Please transfer all images over to the new folder from your main folder

I have tested this to the best of my ability.  Please report any bugs.


Title: Re: Clan Pyramids
Post by: ordicbm on May 29, 2008, 09:39:42 AM
bonjour
j'ai installer la version 1.3 sur le site
depuis, j'ai eut, en 3 jours, 4 joueurs qui se trouve bloquer dans une pyramide, ne peuvent pas bouger, juste un chiffre ecrit en haut a droite.
je suis obliger de debloquer les joueurs
de plus, pour casser un mur, cela dure beaucoup de temps


on peut faire quelque chose


Title: Re: Clan Pyramids
Post by: Kala on May 29, 2008, 06:26:02 PM
HI,

I need to know, which pyramid? and as much information as possible, preferably the link url (not badnav) when this happens.

Without at least the pyramid, I have no way of finding the bug.


Salut,

Je dois savoir, quel la pyramide ? et si beaucoup d'informations que possible, de prfrence le lien url (pas badnav) quand cela arrive.

Sans au moins la pyramide, je n'ai aucune faon de trouver l'insecte.


Regards

Kala


Title: Re: Clan Pyramids
Post by: ordicbm on May 29, 2008, 11:25:37 PM
oupsssss  ::)
vous avez raison, je suis dsol
je demande a mes joueurs de re jouer la pyramide et de me donner, en cas de blocage, le maximum d'information

dsol pour ce premier message incomplet

cordialement


Title: Re: Clan Pyramids
Post by: ordicbm on June 01, 2008, 04:15:15 AM
bon, cela arrive dans la pyramide prazlinx a priori
quand cela arrive, le joueur est bloqu, sans lien pour quitter le jeu ou aller ailleurs

voici deux liens d'erreur:

http://www.lddv.fr/dragon/runmodule.php?module=clanpyramid&op=move&move=transport&c=200-191659

http://www.lddv.fr/dragon/runmodule.php?module=clanpyramid&op=move&move=westg&p=1129=129&c=709-110041


et voici une autre erreur, cette fois pyramide Tzeltalchs
lorsque l'on frappe un mur, retour a la case A1

et puis aussi blocage
http://www.lddv.fr/dragon/runmodule.php?module=clanpyramid&op=move&move=westg&p=190=90&c=801-225735
et plus rien de possible, sauf un chiffre 91 en haut de l'ecran



en esperant que cela pourras t'aider a trouver

cordialement


Title: Re: Clan Pyramids
Post by: Kala on June 02, 2008, 04:32:39 PM
Fixed :)

new file placed into file submission area

Ver 1.3.1

I just realised I made a mistake with one of the navs still

in /clanpyramid/walls.func.php

line 152 should be

addnav("Through the wall","runmodule.php?module=clanpyramid&op=move&move=westg&p=1&wall=$wall");


Title: Re: Clan Pyramids
Post by: ordicbm on June 02, 2008, 11:11:34 PM
bonjour
apres la mise a jour, j'ai cette erreur

Parse error: syntax error, unexpected '{' in /home/lddv/www/dragon/modules/clanpyramid/dohook/village-desc.php on line 10

cordialement


Title: Re: Clan Pyramids
Post by: Kala on June 02, 2008, 11:20:17 PM
sorry,

on line 10, remove the } and replace with a ;

so it will look like

output("Who will be the first monthly Winner?");

I've been at work, I'll reupload the fixed files when I am able to later today :)



sol,

sur la ligne 10, enlevez le} et remplacez avec a;

donc il ressemblera

output("Who will be the first monthly Winner?");

J'ai t en train de travailler, je retlverserai les dossiers fixs quand je suis en mesure plus tard aujourd'hui :)


Title: Re: Clan Pyramids
Post by: ordicbm on June 03, 2008, 01:12:14 AM
mercin cela a l'air de fonctionner
je relance le module et demande a mes joueurs de me faire remonter des problemes si il y en a encore
cordialement


Title: Re: Clan Pyramids
Post by: ordicbm on June 13, 2008, 11:15:16 PM
bonjour
je suis dsol de revenir encore, mais, il y a pleins de petits bugs ce qui fait que j'ai du enelever le module
le dernier bug, dans praxiln,(enfin je crois que c'est celle ci) est , quand on frappe le mur du trone  il se regenre, restant entre 25000 et 23500 hits pour etre dtruit
j'ai pour le moment enlever le module et re installer la version 1.1 qui me pose moins de souci
cordialement


Title: Re: Clan Pyramids
Post by: Kala on June 16, 2008, 09:10:42 PM
Sorry, My mistake.

Prazlynx is the only pyramid which any clan can steal from another and uses the 'owning' clans id not the players.

/modules/clanpyramid/walls3_func.php

Line 79 should be

Code:
$hp = get_module_objpref("clans",$owned3,$wall,"clanpyramid");

not

Code:
$hp = get_module_objpref("clans",$clanid,$wall,"clanpyramid");


Title: Re: Clan Pyramids
Post by: Selenity on June 20, 2008, 02:24:24 PM
So I installed an unedited version of this module on my server...and we're having problems. People are getting stuck in the pyramids, and every page there is an odd number like:

2111
~ ~ ~ Fight ~ ~ ~
You have encountered Nehebkau which lunges at you with Staffs and Rods!


Another problem we encountered is that the Throne Guardian's HP rose instead of falling with hits.


Title: Re: Clan Pyramids
Post by: Kala on June 20, 2008, 07:11:35 PM
I have submitted the updated files for uploading.

The random number was me forgetting to remove a bugchecking output, which should now be moved.

In future, I need as much information as possible.  WHICH PYRAMID is a minimum requirement for me to fix things.

I don't wish to seem rude, but with many files, it is necessary for me to track errors down.

Selenity, try the new version.  The uneditted previous downloaded version, will not work properly as can be seen above by the various bug reports from ordicbm, who I thank for supplying the requested information and reporting them as they appeared.


Title: Re: Clan Pyramids
Post by: Selenity on June 20, 2008, 07:22:28 PM
They were getting stuck in all of them, actually. For example, in  Tzeltalchs, they would get to the Throne Guardian and they would defeat it, then it wouldn't give them credit for defeating the Guardian, it'd just let them keep moving and they would have their spots at -@1 and -@2.

And in Chexralmins and Prazlynx the Guardians would gain HP instead of losing it when they are hit.

EDIT for new version:

I just fought in Tzeltalchs and I found a wall/guardian on square E13 and after I fought him I got:

You are on @0

UPDATE: I have now deactivated the upgrade for the pyramids module.

Now, in the same pyramid, I'm on D8 and fighting and after the battle I get...You are on @0


Title: Re: Clan Pyramids
Post by: Kala on June 20, 2008, 07:34:03 PM
The upgrade module wasn't required unless you were upgrading from a pre 1.3 version.  It required installation then uninstallation before the pyramids were installed, as it edits the old preferences and removes old and unused one's. I'll take a look at the other.

What would be helpful, is the exact URL where it misbehaves.  Makes it easier to track :)


Title: Re: Clan Pyramids
Post by: Selenity on June 20, 2008, 07:40:31 PM
Still in Tzeltachs. This one was at least kinda near the throne. I choose Guardian Fight and when I finish and hit continue I get:

http://www.dragonlunacy.com/runmodule.php?module=clanpyramid&op=move&move=return&wall=&p=1&c=289-213958




Title: Re: Clan Pyramids
Post by: Kala on June 20, 2008, 07:59:20 PM
Looks like one of the wall valuess isn't being passed, will take me a little while to go through this and find that, as it's passed to the array before the fight.  Anything further that you can think of that will help ie direction you were travelling (North, South, East or West) will help :)

Thankies :)


Title: Re: Clan Pyramids
Post by: Selenity on June 20, 2008, 08:09:41 PM
Okies I'll go in and try it again and give you exactly everything I do. ^^

Well that was odd. When I did it this time, it was perfectly normal!!

Oh, and I keep getting a message of Your Clan Walls are now 25000 whenever I capture a pyramid. I suppose that's reseting the hp of the walls?


Title: Re: Clan Pyramids
Post by: Kala on June 20, 2008, 08:15:57 PM
Is that 2500 or 25000?

25000 is the minimum wall hp, and as the warvault allows you to up that to a higher figure, it outputs what your walls are set to.


Title: Re: Clan Pyramids
Post by: Selenity on June 20, 2008, 08:20:07 PM
Yeah it was 25000, mis typed, lol.

Prazlynx is working fine now.

Okay here we go again...just deactivated them and now I first enter the Tzeltachs pyramid and the throne is right there on A1!

On http://dragonprime.net/index.php?action=post;topic=7319.90;num_replies=102
You are on A1
You have found the throne door
There is a wall to the north, that way is blocked.

On http://www.dragonlunacy.com/runmodule.php?module=clanpyramid&op=wall&hit=throne&p=1&c=159-221616
Your clan helps you by boosting your attack by 35
You hit the wall for 66955 damage, the wall crumbles in front of you

On http://www.dragonlunacy.com/runmodule.php?module=clanpyramid&op=move&move=throneg&p=1&wall=&c=160-221734
You move through the wall, only to be confronted by the Throne Guardian

The next page it showed it had already been taken, and the player got the same thing...I've told them to stay out until I say so now.


UPDATE:

Okay so I got back into Tzeltachs.

On http://www.dragonlunacy.com/runmodule.php?module=clanpyramid&op=move&move=entry1&p=1&c=215-222233
You are on A1
You have found the throne door
There is a wall to the north, that way is blocked.

On http://www.dragonlunacy.com/runmodule.php?module=clanpyramid&op=wall&hit=throne&p=1&c=216-222236
Your clan helps you by boosting your attack by 35
You hit the wall for 44770 damage, the wall crumbles in front of you

On http://www.dragonlunacy.com/runmodule.php?module=clanpyramid&op=move&move=throneg&p=1&wall=&c=217-222330
You move through the wall, only to be confronted by the Throne Guardian

On http://www.dragonlunacy.com/runmodule.php?module=clanpyramid&op=attack&f=3&p=1&c=218-222343
Fighting the Throne Guardian. Page looks fine.


On http://www.dragonlunacy.com/runmodule.php?module=clanpyramid&op=fight&auto=full&c=219-222408
Have defeated guardian

On http://www.dragonlunacy.com/runmodule.php?module=clanpyramid&op=move&move=thronec&p=1&c=220-222436
    
You have captured the Pyramid in the name of your clan


You receive 3 Clan Points

Your clans walls are 25000

And I go back to the village via the villagenav.



Title: Re: Clan Pyramids
Post by: Kala on June 20, 2008, 08:43:41 PM
Ok so the first time a pyramid is entered, for some reason (yet to track this bug down), it's an auto take.  So just to clarify whats happening

If someone enters the pyramid from another clan, can they then go through the normal process of taking down walls and finding the throne? If so, they are working ok, if not, then I'll track that down and see whats causing it.  The module is running as is, on a friends site with multiple players and she has no reportable bugs since the above fixes were added to the code.

IF you find that your server has players with lots of atk/def then the walls will crumble very fast, leading to walk through in one hit walls.

You may like to modify the attack and defence formula found within the walls_func of each pyramid, until you find a nice balance.  I won't support that formula recalculation, as the one in place seem's fine with lower atk/def players.

Code:
$aa=$tatk*0.45;
$adam=e_rand($aa,$tatk);
$dd=$watk*0.25;
$d=e_rand($dd,$watk);
$damage = ($adam-$d)*5;

is the code you would need to modify in each pyramid, to stop walk through walls.  I suggest the following

Code:
$aa=$tatk*0.45;
$adam=(e_rand($aa,$tatk))*0.5;
$dd=$watk*0.25;
$d=(e_rand($dd,$watk)*0.5);
$damage = ($adam-$d)*5;

try modifying just the e_rand multiplier for attack and defense.  The above code, halves current values.


Title: Re: Clan Pyramids
Post by: Selenity on June 20, 2008, 08:50:28 PM
Okay. The reason we are walking through walls so fast is because we have the clan forge module. :)

I entered when I was from a different clan and got this message every time. I'm not sure what's causing this. The PK Tracker module isn't even working right on my site, but everything else is running just jiffy! People are exploring everywhere else because I won't let them in the pyramids because when they go into Tzeltachs, and Tzeltachs only, they run into these weird errors. The other error of the player getting "stuck" in the pyramids is solved, though.


Title: Re: Clan Pyramids
Post by: Kala on June 21, 2008, 08:41:21 PM
Okay. The reason we are walking through walls so fast is because we have the clan forge module. :)

As do I, which is why I suggested, altering that code.  To make them harder, if you wish.

As for the error message, I am unable to duplicate this using 3 different chars on my test server.

Please reupload the files, and reinstall the module.  You do not need the update file, if this is a clean install, ie, pre 1.3 version never installed on your server.  That file also needs to be uninstalled straight after installation if it is used.

Edit: *files currently running bug free on 3 1.1.0 servers that I know of*

Walls are not passed through at the throne guardian, as there is nowhere else to go apart from the throne.  Therefore, that is not an error there.

As for being continuously shown the throne, with the module active, I cannot reproduce this at all. 

Note: This module is untested on 1.1.1


Title: Re: Clan Pyramids
Post by: Kala on June 21, 2008, 10:50:32 PM
Minor Bugfix

reuploading

this has to do with the warriors list inside the pyramids themselves, causing an empty query for the sql.


Title: Re: Clan Pyramids
Post by: kaiser on July 17, 2008, 09:06:10 AM
Slight issue...sorry if I missed a pre-existing post about this:

Whenever any player enters the forest, they get the message regarding "Your clan owns all 3 pyramids etc etc" regardless if they are 1) even in a clan or 2) are in a clan but dont own any pyramids.

Is this a known bug with this module or a known conflict with another clan module?

EDIT: sorry...this is on latest 1.1.1 (shouldve mentioned that before)


Title: Re: Clan Pyramids
Post by: Kala on July 17, 2008, 09:16:40 AM
in case number 2 they should receive this message

As your clan doesn't control all the pyramids, you don't receive a experience bonus

can you verify they are receiving the bonus?

in case number 1, yes this is a known bug.

in the file /clanpyramid/dohook/forest-desc.php

change the code on line 3 from

Code:
if ($clan==$owned1 && $clan==$owned2 && $clan==$owned3){

to

Code:
if ($clan==$owned1 && $clan==$owned2 && $clan==$owned3 && $clan<>0){

and in the file /clanpyramid/dohook/battle-victory.php on line 3

change the code from

Code:
if ($clan==$owned1 && $clan==$owned2 && $clan==$owned3 && $u['alive']==true && ($args['type']=="forest")){

to

Code:
if ($clan==$owned1 && $clan==$owned2 && $clan==$owned3 && $clan<>0 && $u['alive']==true && ($args['type']=="forest")){


Title: Re: Clan Pyramids
Post by: kaiser on July 17, 2008, 09:35:55 AM
That was PERFECT. It works brilliantly now. Thanks for such a fast response :)

(and yes...it WAS giving bonus when it shouldn't)


Title: Re: Clan Pyramids
Post by: Selenity on July 31, 2008, 07:13:10 AM
I'm having some more problems with the pyramids, namely the Tzeltalchs pyramid. My problem is this...Whenever I got into the pyramid, I randomly run into a wall and when I knock it down...It puts me on square @0. If I move west, I go to square @0-1 and any other way I go...I am sent back to either A13 or A1. Also, the List Warriors is not working properly. It never shows anyone in the pyramid, even if we know somebody is in them. Another problem is when I'm at the throne in Tzel, the message is that my clan has already taken down the throne...just like when your clan has already taken down a wall. I have the most updated version, as well. Some of these problems are the ones I addressed in earlier posts, so if you want any more information, please let me know.



EDIT: I think I know where the problem is...Whenever you run into a wall, it doesn't say if it is East, West, North, or South. It just says 'Hit the Wall'. So maybe the direction is being passed on. :)


Title: Re: Clan Pyramids
Post by: Kala on August 01, 2008, 04:06:15 AM
The walls don't actually work in that way, the code passes to the specialmisc the wall's square number, then retrieves it, after breaking down the wall and defeating the guardian, it places you on that square.  I did have a similar problem reported, and am going to upload new files, that I fixed this problem in.

The problem was in the passing of the wall number to the specialmisc, it was not storing correctly.  I repeat, any problems, I need the nav to be posted, so I can see the problem, in this case, there was no wall number being passed, which showed in the nav/url, it wasn't affecting the throne, only basic walls.

Kala

Ver 1.3.2


Title: Re: Clan Pyramids
Post by: Lord Zeus on August 10, 2008, 08:27:58 PM
its still not showing the warriors thats in the pyramid for me when you go to warrior list before you enter the pyramids


Title: Re: Clan Pyramids
Post by: Kala on August 10, 2008, 08:41:08 PM
Edit:  The fix I posted, didn't work.

I am currently working on why it's not working.  Will update as soon as I have an answer.

Kala


New file will be updated, this is working perfectly on my test server.  I have removed the duplicate IP and ID checks from the file.


Title: Re: Clan Pyramids
Post by: Pedro on September 04, 2008, 03:29:01 AM
Hi Kala,

Any word on a fix for this "known bug" with members who only have to submit an application to a clan and they get additional xp bonus, regardless of whether they are a member or not?

Ive applied the 2 code fixes in the posts above...but also noted that they were already there?? (i downloaded and installed 1.3.2)

If you need anymore info, please let me know as ive got approx. 600 people playing atm and if they discover this bug....well ill have no choice but to disable the pyramids...and then everyone will hate me :(


Title: Re: Clan Pyramids
Post by: Kala on September 04, 2008, 05:16:10 AM
Thanks for that Pedro, that one hadn't actually been reported before.

The fix is this (Edit: Sorry forgot, this is in clanpyramid/dohook/battle-victory.php)

change:

Code:
if ($clan==$owned1 && $clan==$owned2 && $clan==$owned3 && $clan <> 0 && $u['alive']==true && ($args['type']=="forest")){

to:

Code:
if ($clan==$owned1 && $clan==$owned2 && $clan==$owned3 && $clan <> 0 && $u['alive']==true && ($args['type']=="forest") && $session['user']['clanrank']>CLAN_APPLICANT){


Title: Re: Clan Pyramids
Post by: Pedro on September 04, 2008, 10:49:18 AM
The fountain shows both in the clan halls and when you click clan options.

Im in the same boat as the original poster...

I dont see a Fountain option in either the Clan Halls or the Module Manager.

The only options for the Clan War Vault is the "pref" where i can set the ATT and DEF amounts, which ive set to 5000, and deposited 6000 into the clan war vault.

http://files.v0te4.me.uk/files/clan-settings.jpg (http://files.v0te4.me.uk/files/clan-settings.jpg) are the clan modules i have installed.
http://files.v0te4.me.uk/files/clan-war-vault.jpg (http://files.v0te4.me.uk/files/clan-war-vault.jpg) is a s/shot of what i see from user (who is a founder) point of view.

Am i missing something blindingly obvious?

Cheers,
Pedro

PS: Thanks for the fix Kala, ill let you know if its worked once ive had a chance to test it :D


Title: Re: Clan Pyramids
Post by: kavselj on September 04, 2008, 11:04:17 AM
I also found a bug with the first pyramid (one starting on T). When you encounter the wall, you can actually skip the whole destroying part. You click "Hit the wall" then "Return the pyramid". At that point you will actually be standing IN the wall with option to go either back or forward (if wall is south of you and you attack it, you can then go either north or south). That way you can skip all the walls and start attacking the throne within a minute.


Title: Re: Clan Pyramids
Post by: Kala on September 04, 2008, 05:43:26 PM
Thank you both, I'll work on both bugs, the fountain I believe is a part of the clan-options mod, so I'll upgrade the code, to place a link in the clan halls for leaders etc, IF that mod isn't installed :)

I'll also try and fix the 'walls' bug, this will probably be done over the weekend, as I'll do both and upload the fixes here when they're both done.

For now Pedro, to see the vault options, delete this addhook in the clanwarvault.php file

Code:
module_addhook("clanoptions-fountain");

and change the dohook section, by moving it, so it looks like this now

Code:
case "footer-clan":
                        if ($u['clanrank'] >= CLAN_MEMBER){
                                addnav("~");
                                addnav("`^Clan War Vault","runmodule.php?module=clanwarvault");
                                addnav("`#Clan Top Donators","runmodule.php?module=clanwarvault&op=hof");
                        }
$clanid = $u['clanid'];
                        if ($u['clanrank'] >= CLAN_LEADER){
                                addnav("War Room","runmodule.php?module=clanwarvault&op=warroom");
                        }elseif ($u['clanrank'] >= CLAN_OFFICER && get_module_objpref("clans", $clanid, "allowed")==1){
                                addnav("War Room","runmodule.php?module=clanwarvault&op=warroom");
                        }
                }
                        break;

that 'should' enable the warvault in the clan halls themselves, rather than through the clan options mod.





Title: Re: Clan Pyramids
Post by: Pedro on September 05, 2008, 08:52:23 AM
Awesome stuff thank you Kala.

Just out of interest, i enabled the Clan Options module too but I notice clan FOUNDERS cant go to the war room, but Leaders, and eventually Officers can?

Is it a matter of replicating the code to include the CLAN_FOUNDER ??

Cheers


Title: Re: Clan Pyramids
Post by: Kala on September 05, 2008, 06:21:55 PM
yes, this module was written quite some time about, before Clan Founders :)


Title: Re: Clan Pyramids
Post by: Pedro on September 06, 2008, 02:59:06 AM
So any chance of a cheeky quick fix?

I had a go myself with trying to replicate that small section of code to include CLAN_FOUNDER (seemed the most obvious naming convention to me :P ) , but i royal suck at coding so it fell right over.

Its probably really simple, but I couldnt get it.

So prweeety pwleaasse ;D


Title: Re: Clan Pyramids
Post by: Kala on September 06, 2008, 03:11:07 AM
in the clanwarvault/clanwarvault.php file

I missed one, change

Code:
if ($session['user']['clanrank'] == CLAN_LEADER){

to

Code:
if ($session['user']['clanrank'] >= CLAN_LEADER){

*as a clan founder, I can enter the warvault* Edit: but as a founder, I could not buy



Title: Re: Clan Pyramids
Post by: kwakujeffboat on September 13, 2008, 09:13:42 PM
whats the war vault for, i deposited money, but my attack and defense are not going up.. everything is set in the admin menu.. please help


Title: Re: Clan Pyramids
Post by: Kala on September 13, 2008, 09:16:31 PM

- Clan War Vault (Written by Shadow Raven) - ability to buy attack and defense for your clan within the clan halls, Leaders can buy the attack and defense, from gold donated by clan members, admin settable how much gold per atk/def point. Top Donators HoF included.  Buying Attack ups your clan members attack when battling in the pyramids.  Buying Defense ups the size of a clans walls.


It affects your CLAN atk/def within the pyramids.. not your personal one.  As stated, leaders must buy the atk/def within the clan fountain section.  The fix for founders is a few posts up.

Please read the thread in future, as your question has already been asked and answered.


Title: Re: Clan Pyramids
Post by: TechnoWolf on September 26, 2008, 07:52:20 AM
GREAT module, and I'd love to be able to use it, but I'm having a problem with the C pyramid.
I had installed this to test it, along with the pyramid images to proper locations (maps were working as well).
When myself and another non-admin player who helps me test new modules would go into the "C" pyramid, and attempt to leave, we would get the screen that states you cannot return for 10 minutes, with an option to go back to the city.  When we click the link to go back to the city, the nav was broken, and we would be stuck on this screen.  What is interesting is that I have "NavDemon" installed, and it did not detect a broken nav.
Any suggestions?  Again, this mod is great, and I'd love to be able to keep it running!!!
Thanks!


Title: Re: Clan Pyramids
Post by: Kala on September 26, 2008, 06:45:57 PM
Two things:

When you choose to leave, are you using the Return, or the Give Up Link?

If you're using the Give Up link, then yes, you will have to wait 10 mins to return. (forgive me if this wasn't a problem, it's early here, and my time is extremely limited atm)

To fix the bad nav, not really sure why this is happening.  Try changing the following

line 232 of clanpyramid/clanpyramid.php

from:

Code:
addnav("Leave","village.php?");

to

Code:
villagenav();

the requireonce is already included in the main file, so it should work without it :)

Kala


Title: Re: Clan Pyramids
Post by: TechnoWolf on September 27, 2008, 08:01:51 AM
That worked!
Thanks Kala!


Title: Problem in Pyramids
Post by: mgiuse89 on October 19, 2008, 09:33:11 AM
In version 1.1.1 a bug is found in the pyramids:
in the pyramids did not find the characters of opponents. The files relatif are: pyramidupgrade.
can someone help me? thank you


Title: Re: Clan Pyramids
Post by: Kala on October 19, 2008, 02:44:22 PM
Quote
There is a readme text.  Do NOT upgrade previous versions until you have read it.  It also explains how to modify experience given (this is not nor will ever be a setting).

Included is upgradepyramid files.  You must install and uninstall or your players will no longer have their player kills adding on.  This file removes all no longer used prefs and converts player kills and player clanpoints earned over to the clanhof module.  I take no responsibility for those who do not read.

Again I take no responsibility for those who cannot be bothered reading the instructions that come with these files.  If you can't be bothered to read the readme then I can't be bothered to help you.  The file you refer to should only be used to UPGRADE from a previous version, it is not needed with a fresh installation.  It also should no longer be installed.


Title: Re: Clan Pyramids
Post by: Balrog on January 23, 2009, 01:30:29 PM
ok, I have 2 issues...1 in the Tzeltalchs you can basically go through the walls without hitting them you hit once, then return to pyramid then you can just walk through them.

 2 in the Prazlynx..the teleport comes up and all the navs are there for all directions so you can ignore the teleport.

Any ideas? I didn't see any thing relating to this in the posts. Sorry if it's a repeat.


Title: Re: Clan Pyramids
Post by: Kala on January 23, 2009, 08:51:53 PM
1) sounds like the database isn't correctly updating or the information isn't being taken from the database correctly

2) This is something I've fixed for someone in the past

I'll take a look at both and get an updated file uploaded, I can't guarantee when, as I've not got a lot of spare time at the moment

Can you give me the lotgd version, php and mysql version you're running please?  Also if you could check your mysql database for the object pref for the clanpyramids, and make sure it's actually saving the data for the squares (pref name will be a number lower than 1000) and the amount should be over 25000 or higher.

Kala


Title: Re: Clan Pyramids
Post by: Balrog on January 23, 2009, 09:00:48 PM
I will get you all that info as soon as I can. I can tell you the version is 1.1.1  and I believe it's php5. The other stuff I gotta look at.


Title: Re: Clan Pyramids
Post by: Balrog on January 24, 2009, 02:26:54 PM
here's what I was told, Kala.

LOTGD 1.1.1
PHP Version 4.4.9
MySQL Version 5.0

The values for the squares are saving to the module_objprefs table

does that help?


Title: Re: Clan Pyramids
Post by: Kala on February 06, 2009, 08:40:21 PM
sounds like it isn't retrieving the data.  Right now, I'm unable to devote time to supporting most of my modules.  I'm posting on my module list about this.


Title: Re: Clan Pyramids
Post by: Balrog on February 07, 2009, 10:55:53 PM
ok, I'll let you know if I come up with something


Title: Re: Clan Pyramids
Post by: Balrog on February 09, 2009, 05:10:28 PM
ok, found the issue with the teleporters in Praz Pyramid allowing you to ignore them...

In the Pyramid3.php file...

      blocknav("runmodule.php?module=clanpyramid&op=move&move=south");
   blocknav("runmodule.php?module=clanpyramid&op=move&move=east");
   blocknav("runmodule.php?module=clanpyramid&op=move&move=north");
   blocknav("runmodule.php?module=clanpyramid&op=move&move=west");

That does not work...you need to have it set as this.....


      blocknav("runmodule.php?module=clanpyramid&op=move&move=south&p=3");
      blocknav("runmodule.php?module=clanpyramid&op=move&move=east&p=3");
      blocknav("runmodule.php?module=clanpyramid&op=move&move=north&p=3");
      blocknav("runmodule.php?module=clanpyramid&op=move&move=west&p=3");

The module was looking for the "p=3" at the end of each line.


Title: War Room Discussion
Post by: Magpie on July 27, 2009, 10:46:59 AM
I know this thread is no longer being watched by the writer of the module, however I'm having issues. Commentary isn't showing up in the war room.


Specific File: clanwarvault_run


 Lines 85 and 86 seem to be the only instances of commentary, save for Line 3
Code:
require_once("lib/commentary.php");

Lines 85 and 86:
Code:
addcommentary();
           commentdisplay("",$op."clanwarvault-warroom-{$session['user']['clanid']}","`3Discuss Stratagies:`@",25,"interjects");

Any ideas as to why this isn't working?

Also, I added the $op. thinking it would help, but it did not.

This is the original code from the file:

Original 85 and 86
Code:
  addcommentary();
commentdisplay("","clanwarvault-warroom-{$session['user']['clanid']}","`#Discuss Stratagies:`@",25,"interjects");


Title: Re: Clan Pyramids
Post by: Kala on January 13, 2010, 06:11:39 AM
I'll take a look at both issues later this week.. Hoping I can devote some time in the future to doing some coding :)


Title: Re: Clan Pyramids
Post by: Cory2 on September 04, 2010, 02:42:56 AM
i know this is an old thread but i was wondering if anyone else is having the same problem as me and if they know how to fix it,

players are being kicked from the pyramid they are in if another pyramid is taken by someone else,
EG. player X is trying to take P Pyramid but player Z from a diff clan has taken C Pyramid that is/was owned by the clan that player X is in, resulting in Player X being kicked from Pyramid P.
this only started on the upgrade from source code 1.1.1 to 1.1.2 as far as im aware.

my Pyramid module version is 1.3.2

any help on this problem would be great as a few of my players are becoming restless about it now.

Cory


Title: Re: Clan Pyramids
Post by: robbace on October 25, 2010, 12:44:21 PM
What is the best way to lower the wall hit points? My game is young and with the walls at 25K it takes players about 45 min to take all three mids. Also it will help with the server load.

Thanks,
Rob


Title: Re: Clan Pyramids
Post by: agrid on May 02, 2011, 01:28:31 PM
Hi, I have version 1.1.2 and the module does not work correctly.
In the pyramids, the list warriors, do not view other players
inside. The command warrior attacks does not work, and
transporter in Praz always allow the player to choose where
go.

Can you help me?

Thanks


Title: Re: Clan Pyramids
Post by: agrid on June 01, 2011, 12:36:18 PM
up  ;)


Title: Re: Clan Pyramids
Post by: lil-star2u on June 20, 2011, 02:13:15 PM
I hope this is in the right thread

I have Clan Pyramids installed on my server, but theres a slight problem.
Usually the nav to enter the pyramid should be under City Gates nav, but mine is under SUPERUSER nav.
Heres what it looks like.

  Superuser
(,) Comment Moderation
(X) Superuser Grotto
(/) New Day
Forbidden Pyramid

I have asked a few players and they say their nav is under superuser as well.
any ideas whats wrong? Thanks

Note: I did figure it out and its working right now. there was a conflict with another module (city news)


Title: Re: Clan Pyramids
Post by: agrid on September 16, 2011, 12:44:02 AM
up


Title: Re: Clan Pyramids
Post by: ArthuruhtrA on September 16, 2011, 12:43:15 PM
Have you tried re-downloading and reinstalling?


Title: Re: Clan Pyramids
Post by: agrid on September 17, 2011, 12:42:57 AM
No, I'll try


Title: Re: Clan Pyramids
Post by: agrid on April 13, 2012, 02:14:48 PM
 :-[


Title: Re: Clan Pyramids
Post by: Stephen Kise on July 11, 2012, 11:19:22 AM
I hope this is in the right thread

I have Clan Pyramids installed on my server, but theres a slight problem.
Usually the nav to enter the pyramid should be under City Gates nav, but mine is under SUPERUSER nav.
Heres what it looks like.

  Superuser
(,) Comment Moderation
(X) Superuser Grotto
(/) New Day
Forbidden Pyramid

I have asked a few players and they say their nav is under superuser as well.
any ideas whats wrong? Thanks

Note: I did figure it out and its working right now. there was a conflict with another module (city news)
Sounds like you edited village.php, and caused the gatenav function to be lossed.. I cannot fix this. Works perfectly for me.


Back to my original point of this post.. I fixed a few problems that I had noticed, on almost every server I played.. The Commentary in the "warroom" op, and the list warriors in the entrance of the pyramids.

Hi, I have version 1.1.2 and the module does not work correctly.
In the pyramids, the list warriors, do not view other players
inside. The command warrior attacks does not work, and
transporter in Praz always allow the player to choose where
go.

Can you help me?

Thanks

I know this thread is no longer being watched by the writer of the module, however I'm having issues. Commentary isn't showing up in the war room.


Specific File: clanwarvault_run


 Lines 85 and 86 seem to be the only instances of commentary, save for Line 3
Code:
require_once("lib/commentary.php");

Lines 85 and 86:
Code:
addcommentary();
            commentdisplay("",$op."clanwarvault-warroom-{$session['user']['clanid']}","`3Discuss Stratagies:`@",25,"interjects");

Any ideas as to why this isn't working?

Also, I added the $op. thinking it would help, but it did not.

This is the original code from the file:

Original 85 and 86
Code:
    addcommentary();
commentdisplay("","clanwarvault-warroom-{$session['user']['clanid']}","`#Discuss Stratagies:`@",25,"interjects");


Title: Re: Clan Pyramids
Post by: Anodyne on February 27, 2019, 05:19:02 PM
The link providing the images is dead for me. Apologies for reviving an old topic, but I loved this mod back in the day and would like to have it on my server. The images appear to be the only part of the module I am missing now - does anyone know where I can find them without the original link that was posted, or is willing to share theirs? (I am running 1.1.2 if that is relevant.


Title: Re: Clan Pyramids
Post by: MarcTheSlayer on March 01, 2019, 08:21:57 AM
It may be quicker to visit LOGD sites and check their modules page to see if they have this installed. Then ask for a copy of the images. :-)

Or check out these images (http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=1351) which are for a similar module.

Actually, I think that those are the images. :-)


Title: Re: Clan Pyramids
Post by: Anodyne on March 01, 2019, 09:31:05 AM
Thank you! You're a blessing. I can't believe I forgot about that, but also, thanks for delivering anyway :P


Title: Re: Clan Pyramids
Post by: TGTarheel on March 24, 2019, 11:46:49 PM
Well, it looks as if you have your problem solved.  If not, I am running Clan Pyramids on 1.1.2 and I could give you my modules as they all come from here anyway.  Let me know.

© 2019 DragonPrime - LoGD Resource Community
Email Talisman: talisman -at- gmail.com
&oeXs)2U7=V BmܲV.U e=;p\}eG )Jj} C5EH7ˤH=j } mo|*Ŋw{drV_@IV>/- TFQJ׀̀Ve}l1,V O iNYx͘$e$;
Forums: Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines