Jump to content

GenGen

Members
  • Posts

    46
  • Joined

  • Last visited

Everything posted by GenGen

  1. Alright. I'll try. Currently I'm using offline rathena by anacondaqq Will be back if I have issues.
  2. Ah I see, thanks for the explanation, however I get this error while trying the your script.
  3. quiz_02,304,263,6 script WOE Reward 714,{ mes "WOE"; mes "You did a great job!"; mes "Here is your reward."; getitem 13550,20; getitem 13989,50; getitem 14004,2; getitem 675,1; //add your rewards here set woereward,0; next; warp "SavePoint",0,0; end; OnInit: waitingroom "WOE Reward",0; end; } - script woe_reward -1,{ OnInit: set .map, "quiz_02"; set .x, 304; set .y, 255; setarray .castles$[0], "prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05", "payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05", "gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05", "aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05", "arug_cas01","arug_cas02","arug_cas03","arug_cas04","arug_cas05", "schg_cas01","schg_cas02","schg_cas03","schg_cas04","schg_cas05"; end; OnMapLoadEvent: if ((agitcheck() && agitcheck2()) && (strcharinfo(3) == .castles$)){ set woereward,1; end; } OnAgitEnd: sleep 5000; // wait 5 seconds after woe before warping the guild for (set .@i,0; .@i < getarraysize(.castles$); set .@i, .@i+1){ warpguild .map,.x,.y,getcastledata(.castles$[.@i],1); dispbottom "[ War of Emperium ] : Congrats! Your guild wins!"; end; } if (getcastledata(.castles$[.@i],1) != getcharid(2) && woereward==1){ dispbottom "[ War of Emperium ] : Its okay, you can try harder on next WoE!"; getitem 607,1; set woereward,0; end; } OnAgitEnd2: sleep 5000; // wait 5 seconds after woe before warping the guild for (set .@i,0; .@i < getarraysize(.castles$); set .@i, .@i+1){ warpguild .map,.x,.y,getcastledata(.castles$[.@i],1); end; } if (getcastledata(.castles$[.@i],1) != getcharid(2) && woereward==1){ dispbottom "[ War of Emperium ] : Its okay, you can try harder on next WoE!"; getitem 607,1; set woereward,0; end; } } Hello Rathena! Need help with my script. It wont recall winner nor give reward to participants. This script should give reward to the winners, and also consolation prize to losers that participate in WoE. But I'm getting error. Thanks in advance, Rathena! woe1.txt
  4. yeah i know, but its easier to take scripts that had done by some contributor.
  5. Hi rathena, I'm here to request NPC that sells all cards ( must including MVP cards ). i tried to go http://rathena.org/board/topic/56560-tsr-script-archives/ but some error message pop out.
  6. prontera,155,181,5 script Sample 718,{ set .Hour,24; if( #dailytimer < gettimetick(2) ) { mes "You have Gained a Daily Gift."; set #dailytimer,gettimetick(2) + ( .Hour * 3600 ); getitem 6101,1; //set the price here }else{ set .@last,#dailytimer - gettimetick(2); set .@hour, .@last % ( 24 * 3600 ) / 3600; set .@min, .@last % ( 24 * 3600 ) % 3600 / 60; set .@sec, .@last % ( 24 * 3600 ) % 3600 % 60; mes "You have to wait to get your next Daily Gift."; mes "Time CountDown : ^FF0000"+.@hour+":"+.@min+":"+.@sec+"^000000"; } close; }
  7. Hi rathena users, I'm here to request source edit for Sonic Blow skill nerf, since sinx are overpowered at my server. :/ I want sonic blow can be nerf 20% or 30% any idea? thanks in advance!
  8. hi dear rathena users, I just changed my client from Xrays to 20100707 RE client. but the worst part is all of the character's skill = passive. help me pls! fixed. ZZZ i accidently renamed my skill_db.txt~ sorry.
  9. [server] server_name = Leatrik Ragnarok Online notice_url = crew08.crewbytes.com/index.html patch_site = crew08.crewbytes.com patch_port = 80 patch_list = /update.txt patch_folder = / executable = lro.exe ragexe_call = lro.exe 1rag1 registration_link = http://crewbytes.com skin = skin grf_file = lro.grf Backup_GRF = 0 startup_option = 2 [general] ;debug_mode = 0 archive_passphrase =
  10. anybody know why this could happens? same with all my players too, after i change my emulator to Rathena.
  11. thanks Emistry, that helps alot.
  12. i have this error when i trying to run my hexed rathena's client.
  13. Hi. I just installed rathena at my server and i'm trying to register using fluxcp and sgcp. and both doesnt work. ( here is some sample. FluxCP and SGCP
  14. Any1 please help me? I'd try refer to Kaiser's thread. but still get this problem bump. help
  15. Payment Wall Ping Back Example for Virtual Currency <?php define('SECRET', 'd9bee051cfe5613c6a2ddb513ad52fd9'); define('CREDIT_TYPE_CHARGEBACK', 2); $ipsWhitelist = array( '174.36.92.186', '174.36.96.66', '174.36.92.187', '174.36.92.192', '174.37.14.28' ); $userId = isset($_GET['uid']) ? $_GET['uid'] : null; $credits = isset($_GET['currency']) ? $_GET['currency'] : null; $type = isset($_GET['type']) ? $_GET['type'] : null; $refId = isset($_GET['ref']) ? $_GET['ref'] : null; $signature = isset($_GET['sig']) ? $_GET['sig'] : null; $result = false; if (!empty($userId) && !empty($credits) && isset($type) && !empty($refId) && !empty($signature)) { $signatureParams = array( 'uid' => $userId, 'currency' => $credits, 'type' => $type, 'ref' => $refId ); $signatureCalculated = generateSignature($signatureParams, SECRET); // check if IP is in whitelist and if signature matches if (in_array($_SERVER['REMOTE_ADDR'], $ipsWhitelist) && ($signature == $signatureCalculated)) { $result = true; if ($type == CREDIT_TYPE_CHARGEBACK) { // Deduct credits from user // This is optional, but we recommend this type of crediting to be implemented as well // Note that currency amount sent for chargeback is negative, e.g. -5, so be caferul about the sign // Don’t deduct negative number, otherwise user will get credits instead of losing them } else { // Give credits to user } } } if ($result) { echo 'OK'; } function generateSignature($params, $secret) { $str = ''; foreach ($params as $k=>$v) { $str .= "$k=$v"; } $str .= $secret; return md5($str); } Payment wall ping back example for subscription <?php define('SECRET', 'ab896ebbfc0bc708defd01928b25eff6'); define('CREDIT_TYPE_CHARGEBACK', 2); $ipsWhitelist = array( '174.36.92.186', '174.36.96.66', '174.36.92.187', '174.36.92.192', '174.37.14.28' ); $userId = isset($_GET['uid']) ? $_GET['uid'] : null; $goodsId = isset($_GET['goodsid']) ? $_GET['goodsid'] : null; $length = isset($_GET['slength']) ? $_GET['slength'] : null; $period = isset($_GET['speriod']) ? $_GET['speriod'] : null; $type = isset($_GET['type']) ? $_GET['type'] : null; $refId = isset($_GET['ref']) ? $_GET['ref'] : null; $signature = isset($_GET['sig']) ? $_GET['sig'] : null; $result = false; if (!empty($userId) && !empty($goodsId) && isset($type) && !empty($refId) && !empty($signature)) { $signatureParams = array( 'uid' => $userId, 'goodsid' => $goodsId, 'slength' => $length, 'speriod' => $period, 'type' => $type, 'ref' => $refId ); $signatureCalculated = generateSignature($signatureParams, SECRET); // check if IP is in whitelist and if signature matches if (in_array($_SERVER['REMOTE_ADDR'], $ipsWhitelist) && ($signature == $signatureCalculated)) { $result = true; if ($type == CREDIT_TYPE_CHARGEBACK) { // Take membership from user // This is optional, but we recommend this type of crediting to be implemented as well } else { // Give membership to user } } } if ($result) { echo 'OK'; } /** * Generates signature using given parameters array and secret * * @param array $params * @param string $secret * @return string */ function generateSignature($params, $secret) { $str = ''; foreach ($params as $k=>$v) { $str .= "$k=$v"; } $str .= $secret; return md5($str); } $userid = $params->get('userid); <iframe src="http://wallapi.com/api/ps/?key=ab6d1a924fb8ee2202518c0ee251b815&uid=$userid&widget=p1_1" width="620" height="800" frameborder="0"></iframe> i think this fix it?
  16. haha, i wanted to use paymentwall since it got many donation option. you can donate by using cellphone, bank transfer, paypall and many more methods
  17. i use Flux CP. i forget to ask 1 more question how to link the paymentwall with my flux CP's Donation Credits
  18. Hi rAthena users and experts, I wonder how can i get the account ID number when the user login to the page? since i want to use Paymentwall for my ragnarok donation site. here is my payment widget code box. <iframe src="http://wallapi.com/api/ps/?key=ab6d1a924fb8ee2202518c0ee251b815&uid=[uSER_ID]&widget=p1_1" width="750" height="800" frameborder="0"></iframe> Note : In HTML code please replace [uSER_ID] placeholder with id of end-user who is viewing the widget and also, i wonder what is ping back means?
  19. GenGen

    Job Changer

    kawai, you need a job changer with 3rd job or not? here is the Link EDIT: sorry didnt see the 1st post. hahaha. my mistake. Note : dont be so rude if ask for help
×
×
  • Create New...