Jump to content

Dinze

Members
  • Content Count

    42
  • Joined

  • Last visited

Posts posted by Dinze


  1.  

     

    Yes. Just make sure you added the mapflag

     

    {	name: "Event"		disabled_items: {		Yggdrasilberry: true		Leaf_Of_Yggdrasil: true	}}
    //Eventsquiz_02	mapflag	zone	Eventquiz_01	mapflag	zone	Event

    Even with this the merchants can enter in the pvp arena with the item Yggdrasil. They put it in their cart...is there anyway to block the item in their cart?

    They can bring and use it but it wont have any effect.


  2.  

     

    @Shatotech

    Can you post your addon.php?

     

    Mine is a fresh install but still getting the same error after applying that fix. 

     

    same here. after applying latest hercules flux

     

     

    @Shatotech

    Can you post your addon.php?

     

    Mine is a fresh install but still getting the same error after applying that fix. 

    That's weird can you right downloading this one. I tested it with a clean fluxcp and it works. I hope it works on you too.

    still getting error.

     

    What error? Tell me so I can check it.


  3.  

    I'm not really sure about err no 1. It could be that you are using a proxy. Try to disable EnableIPVoteCheck for now and it should work.

     

    yea it worked if you disable the " EnableIPVoteCheck" , but it can abuse. if that's disable.

    Yeah I know but something is wrong with his ip. The v4p that I fork in my github is working fine with EnableIpVoteCheck in my server.


  4. Yeah. There's an issue with hercules fluxcp-- Flux::config('ThemeName') doesn't work on addons.

     

    Go to your modules/voteforpoints/add.php#L93 and

    change:

    $filepath = FLUX_THEME_DIR.'/'.Flux::config('ThemeName').'/img/'.Flux::config('ImageUploadPath').'/';
    to:
    $filepath = FLUX_THEME_DIR.'/default/img/'.Flux::config('ImageUploadPath').'/';
    change default to whatever theme name are you using.

     

    If still won't work just use the url option instead of uploading a picture.


  5.  

     

    To anyone having an Unable to vote for the server. Err no. 4  error try this fix. 

    /modules/voteforpoints/index.php

    Change

    case "cash":	// insert or update cashpoints	$cashpoints_var = "#CASHPOINTS";	$sql = "UPDATE $cp_tbl SET value = value + ? WHERE key = ? AND account_id = ?";	$sth = $server->connection->getStatement($sql);	$sth->execute(array((int) $res->votepoints, $cashpoints_var, $account_id));	// account doesn't have a record for cashpoints	// so we will add a row	if ( ! $sth->rowCount())	{		$sql = "INSERT INTO $cp_tbl VALUES (0, ?, ?, 2, ?)";		$sth = $server->connection->getStatement($sql);		$bind = array($cashpoints_var, $res->votepoints, $account_id);		$sth->execute($bind);		if ( ! $sth->rowCount())			$errorMessage = sprintf(Flux::message("UnableToVote"), 4);	}break;

    to

    case "cash":	// insert or update cashpoints	$cashpoints_var = "#CASHPOINTS";	$sql = "UPDATE {$server->loginDatabase}.$cp_tbl SET `value` = value + ? WHERE `key` = ? AND `account_id` = ?";	$sth = $server->connection->getStatement($sql);	$sth->execute(array($res->votepoints, $cashpoints_var, $account_id));    	// account doesn't have a record for cashpoints	// so we will add a row	if ( ! $sth->rowCount())	{	    $sql = "INSERT INTO {$server->loginDatabase}.$cp_tbl VALUES(?,?,0,?)";		$sth = $server->connection->getStatement($sql);		$sth->execute(array($account_id, $cashpoints_var, $res->votepoints));		if ( ! $sth->rowCount())			$errorMessage = sprintf(Flux::message("UnableToVote"), 4);	}break;

    Unfortunately still getting the same error, however, the points are at least applying! Thank you!

    What error? Btw, do you issue displaying the current cash points?

     C9fxIBg.png


  6. To anyone having an Unable to vote for the server. Err no. 4  error try this fix. 
    /modules/voteforpoints/index.php

    Change

    case "cash":	// insert or update cashpoints	$cashpoints_var = "#CASHPOINTS";	$sql = "UPDATE $cp_tbl SET value = value + ? WHERE key = ? AND account_id = ?";	$sth = $server->connection->getStatement($sql);	$sth->execute(array((int) $res->votepoints, $cashpoints_var, $account_id));	// account doesn't have a record for cashpoints	// so we will add a row	if ( ! $sth->rowCount())	{		$sql = "INSERT INTO $cp_tbl VALUES (0, ?, ?, 2, ?)";		$sth = $server->connection->getStatement($sql);		$bind = array($cashpoints_var, $res->votepoints, $account_id);		$sth->execute($bind);		if ( ! $sth->rowCount())			$errorMessage = sprintf(Flux::message("UnableToVote"), 4);	}break;

    to

    case "cash":	// insert or update cashpoints	$cashpoints_var = "#CASHPOINTS";	$sql = "UPDATE {$server->loginDatabase}.$cp_tbl SET `value` = value + ? WHERE `key` = ? AND `account_id` = ?";	$sth = $server->connection->getStatement($sql);	$sth->execute(array($res->votepoints, $cashpoints_var, $account_id));    	// account doesn't have a record for cashpoints	// so we will add a row	if ( ! $sth->rowCount())	{	    $sql = "INSERT INTO {$server->loginDatabase}.$cp_tbl VALUES(?,?,0,?)";		$sth = $server->connection->getStatement($sql);		$sth->execute(array($account_id, $cashpoints_var, $res->votepoints));		if ( ! $sth->rowCount())			$errorMessage = sprintf(Flux::message("UnableToVote"), 4);	}break;

  7. You could try look into

    *getpartnerid()This function returns the character ID of the invoking character's marriage partner, if any. If the invoking character is not married, it will return 0, which is a quick way to see if they are married:

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.