Jump to content

FluxCP Addon: Vote For Points


JayPee

Recommended Posts


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

Sorry for the super late reply I've been busy at work but I cant reproduce the problem but i revised the listing of voting in index.php and list.php hope it fix the problem see my repo: https://github.com/mandark022/VoteForPoints

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   4
  • Joined:  03/31/12
  • Last Seen:  

Why only admin can vote?? :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  04/22/12
  • Last Seen:  

Does this work for rAthena?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.03
  • Content Count:  439
  • Reputation:   2
  • Joined:  05/04/12
  • Last Seen:  

how to automatically convert vote for points into cashpoints????

Edited by RN1986
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  54
  • Reputation:   1
  • Joined:  02/21/12
  • Last Seen:  

NPC Doesnt Work on me <3 can someone help me ? :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  218
  • Reputation:   16
  • Joined:  01/24/12
  • Last Seen:  

You can purchase FluxCP Addon from a variety of people who sell it for cheap. You can PM me if you want more information.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  07/08/12
  • Last Seen:  

Proxy is not allowed

when clicking on the vote now :(

Edited by fayrie
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  123
  • Reputation:   4
  • Joined:  11/21/11
  • Last Seen:  

awesume

Edited by mleo1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  06/07/12
  • Last Seen:  

mine is fix already download this index.php and paste it in your

addons/voteforpoints/modules/voteforpoints

But still have new problem :D anyone have fix for this?

index.php

Edited by bhadzki
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  07/08/12
  • Last Seen:  

mine is fix already download this index.php and paste it in your

addons/voteforpoints/modules/voteforpoints

But still have new problem :D anyone have fix for this?

yeah same prob for me too :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

Honestly I give up haha!

I put it in the /addons/

and I changed it to my.. themes name.

But whats next? Im lost

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  06/07/12
  • Last Seen:  

Thanks :D i already edited the script and it's working now :D if you have problem guys with this script MEssage me :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  07/05/12
  • Last Seen:  

It does not work properly on chrome. You can't vote and images does not display.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.01
  • Content Count:  212
  • Reputation:   5
  • Joined:  01/24/12
  • Last Seen:  

Sir Jaypee help me how to Put V4p please i alredy upload on my cp panel but i dont know how to put votesite sorry for my bad english add me please [email protected]

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

how to fix this error? need healp please...

i already upload all files in addon folder and load the 3 sql files in my database...

now i got this error...

BUMP!

post-4158-0-06877300-1343916996_thumb.png

Edited by arnie2302
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

http://rathena.org/b...ee/#entry127619

need help..

I tried to put site on vote for points but it says no site found

(ok na pala Problem solve)

Edited by zhen
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

I got problem with the script. what script could trigger the vote points?

I'm using the dynamic npc made by Lunar, and I changed zeny into .@points, so it should get the votepoints.

but when I click the npc. It shows no votepoints. The points aren't updated.

What script should I used?

btw, here's my script.

- shop upperhgr#v4p -1,501:50
que_temsky,87,147,5 script Upper Headgear#v4p 436,{
function getPoints;
function updatePoints;
dispbottom "You currently have "+.@points+" Vote Points.";
set @i,0;
mes "[Vote for Points]";
mes "Which item do you wish to obtain?";
mes "Select only one.";
callshop "upperhgr#v4p",1;
npcshopattach "upperhgr#v4p";
end;
OnBuyItem:
if(.BuildQuest) {
 for(set .e,0; !compare(getarg(.e+1),".@points"); set .e,.e+2) {}
 npcshopadditem "upperhgr#v4p",getarg(.e+2),getarg(.e)*compare(getarg(.e+1),"S.@points");
 setarray .Shop[.i],getarg(.e+2);
 set .i,.i+1;
 goto Quest_Setup;
}
if(.Shop[@i]!=@bought_nameid) for(set @i,1; 1; set @i,@i+1) if(.Shop[@i]==@bought_nameid) { set .i,@i; callsub Quest_Setup; }
for(set @i,1; !@e; set @i,@i+1) if(.Shop[@i]==@bought_nameid) { set @e,1; set .i,@i; callsub Quest_Setup; }
mes "[Vote for Points]";
mes "I require the following:";
for(set @i,0; !compare(getarg(@i+1),".@points"); set @i,@i+2) mes "^FF0000" + ((countitem(getarg(@i))>=getarg(@i+1))? "^00FF00":"") + "" + getarg(@i+1) + " " + getitemname(getarg(@i)) + " [" + countitem(getarg(@i)) + "/" + getarg(@i+1) + "]";
if(getarg(@i)) mes "^FF0000" + ((.@points>=getarg(@i))? "^00FF00":"") + "" + getarg(@i) + " Vote Points";
mes "^000000In exchange, I will give you:^0000FF";
for(set @i,@i+2; getarg(@i+1,0); set @i,@i+2) mes getarg(@i+1) + " " + getitemname(getarg(@i));
switch(select("Exchange:" + (((((getiteminfo(@bought_nameid,5) & 1) || (getiteminfo(@bought_nameid,5) & 256) || (getiteminfo(@bought_nameid,5) & 512)) && @equip==0))? "Preview Item":"") + ":No thanks")) {
 case 1:
  for(set @i,0; !compare(getarg(@i+1),".@points"); set @i,@i+2) if(countitem(getarg(@i)) < getarg(@i+1)) {
next;
mes "You have " + countitem(getarg(@i)) + " " + getitemname(getarg(@i)) + ", while I require " + getarg(@i+1) + ".";
mes "Please obtain ^FF0000" + (getarg(@i+1)-countitem(getarg(@i))) + " more " + getitemname(getarg(@i)) + "^000000.";
close;
  }
  if(.@points < getarg(@i)) {
next;
mes "[Vote for Points]";
mes "You do not have enough Vote Points.";
mes "Please obtain ^FF0000" + (getarg(@i)-.@points) + " more Vote Points^000000.";
close;
  }
  for(set @i,0; !compare(getarg(@i+1),".@points"); set @i,@i+2) delitem getarg(@i),getarg(@i+1);
  set .@points,.@points-getarg(@i);
  for(set @i,@i+2; getarg(@i+1,0); set @i,@i+2) getitem getarg(@i),getarg(@i+1);
  dispbottom "You now have "+.@points+" Vote Points left.";
  if (compare(getarg(@i,0),"announce")) announce strcharinfo(0) + " has just obtained " + getitemname(@bought_nameid) + "!",bc_all;
  close;
 case 2:
  set @bottomview, getlook(3);
  set @topview, getlook(4);
  set @midview, getlook(5);
  addtimer 1000, strnpcinfo(3)+"::On_Leave";
  set @equip,getiteminfo(@bought_nameid, 5);
  set @view, getiteminfo(@bought_nameid, 11);
  if(@equip != -1 && @view > 0) {
if(@equip & 1) atcommand "@changelook 3 " + @view;
if(@equip & 256) atcommand "@changelook 1 " + @view;
if(@equip & 512) atcommand "@changelook 2 " + @view;
  }
  next;
  goto OnBuyItem;
 case 3:
  close;
}
On_Leave:
atcommand "@changelook 1 " + @topview;
atcommand "@changelook 2 " + @midview;
atcommand "@changelook 3 " + @bottomview;
set @equip,0;
set @view,0;
set @topview,0;
set @midview,0;
set @bottomview,0;
end;
OnInit:
npcshopitem "upperhgr#v4p",0,0;
set .BuildQuest,1;
set .i,1;
Quest_Setup:
switch(.i) {
 default: set .BuildQuest,0; set .e,0; set .i,0; end;
 case 1: callsub OnBuyItem,5,"S.@points",5474,1;
 case 2: callsub OnBuyItem,5,"S.@points",21453,1;
 case 3: callsub OnBuyItem,5,"S.@points",21454,1;
 case 4: callsub OnBuyItem,5,"S.@points",21609,1;
 case 5: callsub OnBuyItem,5,"S.@points",21389,1;
 case 6: callsub OnBuyItem,5,"S.@points",21420,1;
 case 7: callsub OnBuyItem,5,"S.@points",21424,1;
 case 8: callsub OnBuyItem,5,"S.@points",21427,1;
 case 9: callsub OnBuyItem,5,"S.@points",21428,1;
 case 10: callsub OnBuyItem,5,"S.@points",21429,1;
}
end;
//Functions Bodies
function updatePoints {
set .@account_id,getarg(0);
set .@usedPoints,getarg(1);
query_sql("UPDATE `cp_v4p_voters` SET points=(points-"+.@usedPoints+") WHERE account_id='"+.@account_id+"'");
return;
}
function getPoints {
set .@account_id,getarg(0);
query_sql("SELECT `points` FROM `cp_v4p_voters` WHERE account_id="+.@account_id+" LIMIT 1",.@points);
if(getarraysize(.@points)==0)
return 0;
return .@points[0];
}
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   1
  • Joined:  06/14/12
  • Last Seen:  

Hi sir JayPee, Thank you for the awesome free vote for points addons. Successfully installed.

I have one question, How to remove/add items on the VOTE NPC. i used the eAthena Version.

Thank you in advance.

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  206
  • Reputation:   13
  • Joined:  01/07/12
  • Last Seen:  

Thankz JayPee, it worked for me perfectly, the only thing that I dont like its that It just shows "12:00:00" in block time, it is not working as countdown but anyways, thank you!

Hey, the eAthena NPC script has an error in the last line:

Line 204: [ color=#000000]}[/color]

to fix it you have to change it like this

}

yes, just change it to that and it will works

Edited by eKoh
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  139
  • Reputation:   2
  • Joined:  11/15/11
  • Last Seen:  

how to change the votepoints to cashpoints?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   1
  • Joined:  01/03/12
  • Last Seen:  

Proxy is not allowed when clicking in vote now

how can i fix?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  06/19/12
  • Last Seen:  

howtofixthisv4p.jpg

how can i fix this error sir.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  257
  • Reputation:   7
  • Joined:  03/12/12
  • Last Seen:  

My voting site isn't showing. I already added the schemas. But when i click the edit vote sites, it shows my 5 voting sites.

i installed my fluxcp in main directory www.my-ro.net I didnt create cp folder.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.02
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

how can i install this one. upload it to main or addons folder?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  225
  • Reputation:   39
  • Joined:  01/20/12
  • Last Seen:  

how can i install this one. upload it to main or addons folder?

put it in addons folder

Link to comment
Share on other sites

×
×
  • Create New...