Dinze
-
Content Count
42 -
Joined
-
Last visited
Posts posted by Dinze
-
-
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.
-
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
-
I really like how IMC is doing with TOS.
-
You should probably start making your own instead of bumping this thread everyday.
-
Are you hosting it in a server or localhost?
-
@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
still getting error.
What error? Tell me so I can check it.
-
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.
-
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.
-
That was a fixed for err no 4. lol
For err no. 1, its something about your ip.
-
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.
-
What fluxcp are you using?
-
I forked Feety's v4p and fix it. Try it if it works for you. https://github.com/superbahbi/FluxCP_Addons-VoteForPoints
-
-
@Shatotech
Can you post your addon.php?
-
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?
-
To anyone having an Unable to vote for the server. Err no. 4 error try this fix.
/modules/voteforpoints/index.phpChange
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;
evilpuncker reacted to this -
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:
-
@bahbi
Fixed, sorry
ty <3
-
-
did you edit your message in message.conf?
No.. i just follow the one you post it..
Did you change this
541: "'%s' got %s's %s (chance: %0.02f%%)"
change to
541: "'%s' got %s (chance: %0.02f%%)"
at message.conf https://github.com/HerculesWS/Hercules/blob/master/conf/messages.conf#L469
-
add it to your OnPCLoginEvent.
atcommand "@join #channel name here";
-
must share to korean community..for sure win..
yuup! we are now 46% lol :DD!
http://www.easypolls.net/poll.html?p=5329f056e4b07c9e253b0f08
It's 48% now.
-
first patcher edited. Removed pixeled edges
Good job. 9/10
-
You are welcome.
Introducing Hercules' Map Zone Database
in Repository News
Posted
You can make a custom zone for the second PVP type.