Quote:
Originally posted by Moreliator
Darkwaltz, would you know how to make a small addon that simply penalizes a user for switching their class (character)? It can even be as simple as them losing some EXP or a level.
-More
|
hmm...possibly...youd havta decide how much and if you wanted it controlale through the acp ud havta wait a little bit.
also bitsys, another bugfix::
i kept gettin error messages in my tech email cause of itemshop.php queirying for incorrect things...and its from non regs trying to access that page. well, it still loads and all, but causes loads of useless email.....so, to fix it, in itemshop.php
find:
PHP Code:
if(!$options[lesanestore]) {
if($pointfield) {
$pointss=$DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid=$bbuserinfo[userid]");
$points = (int) $pointss[$pointfield];
} else {
echo "Invalid Pointfield.";
$points = 0;
}
} else {
//$pointss=$DB_site->query_first("SELECT storep FROM user WHERE userid=$bbuserinfo[userid]");
$points = (int) $bbuserinfo[storep];
}
and replace with:
PHP Code:
if($bbuserinfo[usergroupid] != 1) {
if(!$options[lesanestore]) {
if($pointfield) {
$pointss=$DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid=$bbuserinfo[userid]");
$points = (int) $pointss[$pointfield];
} else {
echo "Invalid Pointfield.";
$points = 0;
}
} else {
//$pointss=$DB_site->query_first("SELECT storep FROM user WHERE userid=$bbuserinfo[userid]");
$points = (int) $bbuserinfo[storep];
}
} else {
$points = 0;
}