Jump to content

Euro

Members
  • Posts

    26
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Euro

  1. Hello Guys, since yesterday I'm getting this error: It started when I've implemented harmony... Regards, -Euro [sOLVED] For some reason it's now functioning well when I fixed grf integrity.
  2. I haven't tested this code but here's it: *Edit* Fixed Typo prontera,x,y,n script V4P to Cash n,{ function updatePoints; function getPoints; set .@points, getPoints(getcharid(3)); mes "You have"+.@points; mes "Would you like to exchange them all?"; switch ( select ("Yes","No") ) { case 1: updatePoints(getcharid(3), .@points); break; case 2: break; } close; 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]; } }
  3. I don't know if this will work but I just gave it a try by following your guide posted above... byte_[Add]_Increase_Headgear_ViewID_to_30000:XXXXXX:xxx:48 byte_[Add]_Increase_Headgear_ViewID_to_30000:XXXXXX:x:117 byte_[Add]_Increase_Headgear_ViewID_to_30000:XXXXXX:xxx:48 byte_[Add]_Increase_Headgear_ViewID_to_30000:XXXXXX:x:117 byte_[Add]_Increase_Headgear_ViewID_to_30000:XXXXXX:xxx:48 byte_[Add]_Increase_Headgear_ViewID_to_30000:XXXXXX:x:117
×
×
  • Create New...