[DISC] RPG Stats/Battle mod and more!

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
romihaitza
Registered User
Posts: 40
Joined: Fri Jul 25, 2003 5:51 pm
Location: Romania
Contact:

Post by romihaitza »

romihaitza wrote: Where can I find the shop_config_body.tlp for Salary Mod ?

Code: Select all

if (!isset($action))
{
	$template->set_filenames(array(
		'body' => 'admin/shop_config_body.tpl')
	);



Nobody help me?
All the best,
Mike

My latest MOD : Second WebSite

ffmd3
Registered User
Posts: 21
Joined: Sun Nov 23, 2003 12:44 pm
Contact:

Post by ffmd3 »

when i go to find the text in the files it says to edit in the instructions it always says that the text can not be found.

seteo-bloke
I've Been Banned!
Posts: 281
Joined: Tue Jan 28, 2003 1:41 pm

Post by seteo-bloke »

romihaitza wrote:
romihaitza wrote:Where can I find the shop_config_body.tlp for Salary Mod ?

Code: Select all

if (!isset($action))
{
	$template->set_filenames(array(
		'body' => 'admin/shop_config_body.tpl')
	);



Nobody help me?


That's the tpl file from the Shop mod, is it not?.

RpGfAnAtIc
Registered User
Posts: 34
Joined: Wed Jan 07, 2004 9:12 pm

Post by RpGfAnAtIc »

Can you say me, waht I must install for running the mod?


Explain please step for step. In which order i must install it.

seteo-bloke
I've Been Banned!
Posts: 281
Joined: Tue Jan 28, 2003 1:41 pm

Post by seteo-bloke »

RpGfAnAtIc wrote: Can you say me, waht I must install for running the mod?


Explain please step for step. In which order i must install it.


As I said in the thread on the other forums where you asked - all is explained in this thread:

http://eric.best-1.biz/sutra2941.php#2941

Anyhoo, here's the install list in order:

1. Points or Cash mod (Cash mod requires changes found in text file within RPG mod zip),
2. Shop mod (V1.20),
3. Usable Items mod (within RPG mod zip),
4. RPG mod,

RpGfAnAtIc
Registered User
Posts: 34
Joined: Wed Jan 07, 2004 9:12 pm

Post by RpGfAnAtIc »

Okay!

I have installed the Cashmod.

Now I will install the Shop Mod. (From here http://eric.best-1.biz/sutra2941.php#2941)

But when i must this Step:

------[OPEN]------
/templates/*/viewtopic_body.tpl

------[FIND]------
{postrow.POINTS}

I cantfind {postrow.POINTS}. Please help me.

xiaole
Registered User
Posts: 13
Joined: Wed Sep 11, 2002 2:28 am

Post by xiaole »

seteo-bloke wrote:
RpGfAnAtIc wrote:Can you say me, waht I must install for running the mod?


Explain please step for step. In which order i must install it.


As I said in the thread on the other forums where you asked - all is explained in this thread:

http://eric.best-1.biz/sutra2941.php#2941

Anyhoo, here's the install list in order:

1. Points or Cash mod (Cash mod requires changes found in text file within RPG mod zip),
2. Shop mod (V1.20),
3. Usable Items mod (within RPG mod zip),
4. RPG mod,


I installed shop mod 2.6 before. Tried to get it work with rpg mod, but it seemed that i could never get it right.

So I uninstalled shop mod 2.6 and went back to install shop mod 1.2. But after I installed 1.2, I always get "Fatal Error Adding Item" when I tried to add items to my shop in the admin cp, why is that? When I uninstalled shop 2.6, I didn't do any changes to the database (because I don't know how), is that anything to do with the database fields?

Many thanks!!!

Dark Chaos
Registered User
Posts: 6
Joined: Thu Jan 08, 2004 7:46 pm

help

Post by Dark Chaos »

ok
can't find

Code: Select all

if (isset($renewitem))
{
in shop_admin.php

help me

RpGfAnAtIc
Registered User
Posts: 34
Joined: Wed Jan 07, 2004 9:12 pm

Post by RpGfAnAtIc »

ARF!!!!!!!!!

Now i added the points, the shop and RPG-Mod and it dowsnt run!

*heul*

Can anybode install me the mod. PLZ!!!

I need it for my side. :cry:

seteo-bloke
I've Been Banned!
Posts: 281
Joined: Tue Jan 28, 2003 1:41 pm

Post by seteo-bloke »

RpGfAnAtIc wrote: Okay!

I have installed the Cashmod.

Now I will install the Shop Mod. (From here http://eric.best-1.biz/sutra2941.php#2941)

But when i must this Step:

------[OPEN]------
/templates/*/viewtopic_body.tpl

------[FIND]------
{postrow.POINTS}

I cantfind {postrow.POINTS}. Please help me.


If you've installed the Cash mod then you need to read the Cash mod compatibilty install file.

xiaole wrote: So I uninstalled shop mod 2.6 and went back to install shop mod 1.2. But after I installed 1.2, I always get "Fatal Error Adding Item" when I tried to add items to my shop in the admin cp, why is that? When I uninstalled shop 2.6, I didn't do any changes to the database (because I don't know how), is that anything to do with the database fields?


The only time I see that error is when trying to use a ' in any of the fields within the ACP.

Dark Chaos wrote: ok
can't find

Code: Select all

if (isset($renewitem))
{
in shop_admin.php

help me


What version of the shop are you running?.

Dark Chaos
Registered User
Posts: 6
Joined: Thu Jan 08, 2004 7:46 pm

Post by Dark Chaos »

i'm running shopmod260

^_^

i have doine everything up to that point...but can't find the line

waterline
Registered User
Posts: 27
Joined: Fri Jan 17, 2003 7:18 pm

Post by waterline »

I had to make MANY fixes to sql code and quoting problems.

I have everything working now, finally, but a new problem has just cropped up, after having been fine all morning.

The cash is only increasing in increments of two, and only by the posts of other people in threads you create. No increase by reply, new topic, or by character.

It just started happening an hour or so ago and I can't find the problem!

seteo-bloke
I've Been Banned!
Posts: 281
Joined: Tue Jan 28, 2003 1:41 pm

Post by seteo-bloke »

Dark Chaos wrote: i'm running shopmod260

^_^

i have doine everything up to that point...but can't find the line


The mod isn't fully compatible with V2.60 of the Shop mod. Mayb that is one of the problems.

Have a look at this thread for help:

http://eric.best-1.biz/sutra2941.php#2941

Dark Chaos
Registered User
Posts: 6
Joined: Thu Jan 08, 2004 7:46 pm

Post by Dark Chaos »

O.O

my brain hurts

v.v

god..to much code...

and you think a coder could handle it

o.O

i hate doing this..

* sighs *

gopunkyourself
Registered User
Posts: 122
Joined: Mon Dec 01, 2003 9:41 pm
Contact:

Post by gopunkyourself »

ok i have a little problem. everytime i edit one of my posts it says i level up even though i dont. any ideas on how to fix this?

EDIT: its worse than that. i saw my experience stayed the same so i assumed i didnt level up. but i do.

everytime i edit my post i level up. how can i fix this pleaseee help.

here is the code from my functions_post.php, im guessing the problem would reside in here:

Code: Select all

//----------------------------------------------------------------------------------------- 
//ADD POINTS & EXPERIENCE, check experience & gain level if necessary 
//create levelup message to be displayed after posting 

//get stats config 
   $c2sql = "select config_value from phpbb2plus_config where config_name='statsconfig'"; 
   if ( !($c2result = $db->sql_query($c2sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error!'); } 
   $c2row = mysql_fetch_array($c2result); 
$stats_config = explode(',',$c2row['config_value']); 

//experience amounts for posting 
   $gainexp = abs( ( $mode == 'newtopic' ) ? rand($stats_config[10],$stats_config[11]) : rand($stats_config[8],$stats_config[9]) ); 
      } 

   if( $userdata['session_logged_in'] ) 
      { 

//levelup check 
$poster_expmax = $stats_config[0]; 
$new_exp = $userdata['user_exp']+$gainexp; 
$new_lvl_exp = $new_exp - $poster_expmax; 

//get level gains for user's class 
   $classsql = "select statgains from phpbb2plus_classes where class='$userdata[user_class]'"; 
   if ( !($classresult = $db->sql_query($classsql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error!'); } 
   $classrow = mysql_fetch_array($classresult); 
$stat_gains = explode(',',$classrow['statgains']); 

//level gains 
$hpgain = rand($stat_gains[0],$stat_gains[1]); $mpgain = rand($stat_gains[2],$stat_gains[3]); $attgain = rand($stat_gains[4],$stat_gains[5]); $defgain = rand($stat_gains[6],$stat_gains[7]); 

//if they've gained a level, update level, hp, mp, att, def & experience, if not, just update experience. 
$islevelup = ($new_exp >= $poster_expmax) ? 'yes' : 'no'; 
$levelup = ($new_exp >= $poster_expmax) ? 'user_statlevel = user_statlevel + 1, user_hpmax = user_hpmax + '.$hpgain.', user_mpmax = user_mpmax + '.$mpgain.', user_att = user_att + '.$attgain.', user_def = user_def + '.$defgain.', user_exp = '.$new_lvl_exp.' ' : 'user_exp = '.$new_exp. ' '; 
//create message to be displayed after posting! 
$levelupmessage = ($islevelup == 'yes') ? "<b>You've gone up a level!</b><BR>Hit Points increased by ".$hpgain.", Magic Points increased by ".$mpgain.".<BR>Attack increased by ".$attgain.", Defence increased by ".$defgain.".<P>" : ""; 

$sql = "UPDATE " . USERS_TABLE . " SET ". $levelup . "WHERE user_id = $userdata[user_id]"; 

      if( !$db->sql_query($sql) ) 
      {   message_die(GENERAL_ERROR, 'Could not update user experience or statistics.', '', __LINE__, __FILE__, $sql);      } 
        
//--------------------------------------------------------------------------------------- 

   } 
   else if ( $mode == 'editpost' ) 
   { 
      remove_search_post($post_id); 
   }  

Locked

Return to “[2.0.x] MODs in Development”