Jump to content

Royr

Members
  • Posts

    90
  • Joined

  • Days Won

    1

Everything posted by Royr

  1. que_temsky,47,126,0 script ld01#Exit 45,1,1,{ end; OnTouch: warp "SavePoint",0,0; end; } Simple and plain.
  2. Alright! This is how i fixed the issue regarding not updating SQL. Make sure your using the "vote": Locate: addons\voteforpoints\config\addon.php 'PointsType' => "vote", // credit, vote, cash What i did was creating a new table, which is "cp_v4p_voters" SQL Table: (Execute this query) CREATE TABLE `cp_v4p_voters` ( `account_id` int(10) unsigned NOT NULL, `votepoints` int(10) unsigned NOT NULL, PRIMARY KEY (`account_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; First removed the existing one: case "vote": // update votepoints $sql = "UPDATE $server->loginDatabase.cp_createlog SET votepoints = votepoints + ? WHERE account_id = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array((int) $res->votepoints, $account_id)); break; And Insert this: (Locate) addons\voteforpoints\modules\voteforpoints\index.php case "vote": // update votepoints $sql = "UPDATE $server->loginDatabase.cp_v4p_voters SET votepoints = votepoints + ? WHERE account_id = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array((int) $res->votepoints, $account_id)); if ( ! $sth->rowCount()) { $sql = "INSERT INTO $server->loginDatabase.cp_v4p_voters VALUES (?, ?)"; $sth = $server->connection->getStatement($sql); $bind = array($account_id, $res->votepoints); $sth->execute($bind); if ( ! $sth->rowCount()) $errorMessage = sprintf(Flux::message("UnableToVote"), 3); } else { $sql = "UPDATE $server->loginDatabase.cp_v4p_voters SET `value` = `value` + ? WHERE `key` = ? AND account_id = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array((int) $res->votepoints, $account_id)); } break; PROOF it works .
  3. If you don't like your players to be dispelled simply remove the function . dispell_Function();
  4. You never mentioned that in your post. 1. Why would you need the MONK to be dispell in the first place? when "ENTERING THE PORTAL" they'll automatically be dispelled. They can't even use any skills after the 5 second(s). https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L6201 Everything explains here. setpcblock PCBLOCK_IMMUNE|PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_USEITEM, true; 2.
  5. Just give a try didn't test. // Credits: Stolao function script dispell_Function { while( [email protected] < 297 ) { if( [email protected] != SC_WEIGHT50 && [email protected] != SC_WEIGHT90 && [email protected] != SC_NOCHAT && [email protected] != SC_XMAS && [email protected] != SC_SUMMER && [email protected] != SC_JAILED && [email protected] != SC_STRFOOD && [email protected] != SC_AGIFOOD && [email protected] != SC_VITFOOD && [email protected] != SC_INTFOOD && [email protected] != SC_DEXFOOD && [email protected] != SC_LUKFOOD && [email protected] != SC_FLEEFOOD && [email protected] != SC_BATKFOOD && [email protected] != SC_WATKFOOD && [email protected] != SC_MATKFOOD && [email protected] != SC_SCRESIST && [email protected] != SC_EXPBOOST && [email protected] != SC_ITEMBOOST && [email protected] != SC_BOSSMAPINFO && [email protected] != SC_LIFEINSURANCE && [email protected] != SC_JEXPBOOST ) sc_end [email protected]; [email protected]++; } return; } // Sample Script geffen, 119, 71, 0 script TestWarp#Sample 45,2,2,{ end; OnTouch: mes "[ Portal ]"; mes "^FF0000WARNING: Once you entered automatically dispelled.^000000"; close2; warp "geffen",119,78; sleep2 2; setpcblock PCBLOCK_IMMUNE|PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_USEITEM, true; dispbottom "DEBUG: TRUE"; dispell_Function(); addtimer 5000,strnpcinfo(0)+"::OnPass"; end; OnPass: dispbottom "DEBUG: FALSE"; setpcblock PCBLOCK_IMMUNE|PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_USEITEM, false; end; }
  6. [ Daily Tip ]: NEVER do any RO Hosting services Unreliable.
  7. This is how i cleaned my RO Client Files (for distribution). NOTE: Don't delete some important .dlls on your client some client(s) requires it.
  8. Thank you! Akkarin should apply this on Repo.
  9. Royr

    test

    Not really? but it's totally working without any issues.
  10. Ragna Hosting is long time DEAD. i heard a lot of issues back then around 2015+ You can ask @Tokei and @Nova I'd suggest go with other reliable hosting like OVH or Digital Ocean. "NO INSTANT-SETUP"
  11. // Functions function script DispLink { [email protected] = getarg(0); [email protected] = getarg(1,0); [email protected] = getitemslots([email protected]); return "<ITEM>"+([email protected]&&[email protected]?getitemname([email protected])+" ["[email protected]+"]":getitemname([email protected]))+"<INFO>"[email protected]+"</INFO></ITEM>"; } // Scripts prontera.gat, 146, 184, 4 script Display Link 2_DROP_MACHINE,{ mes "[ Display Item ]"; mes " "; mes "Display Link: "+DispLink(4001); close; } This one?
  12. Simply add "}" after the end;
  13. Fake ass Developer A.K.A Almer Digamon and asking for help here? try to dig your own source and experiment from scratch.
  14. Looks like you just found the map somewhere else and grab it from GRF(even if it is encrypted). It means the map you get/stole was encrypted. if it "MAP" wasn't encrypted means it's going to work.
  15. Please give this a try, i hope this is what you're looking for. prontera.gat, 155, 185, 4 script Exchanger Board 4_BOARD3,{ [email protected] = select( (countitem(501)?"- Exchange with "+getitemname(501)+"":""), (countitem(502)?"- Exchange with "+getitemname(502)+"":""), (countitem(503)?"- Exchange with "+getitemname(503)+"":""), "- Nothing" ); switch([email protected]) { case 1: getitem 607,1; break; case 2: getitem 608,1; break; case 3: getitem 616,1; break; default: mes "[ Exchanger ]"; mes "There's nothing i can do for you."; mes " "; mes "Please come back to me later!"; break; } end; }
  16. 2018-06-20eRegexeRE is supported all it requires atleast PACKETVER >= 20150513.
  17. Ms. Experiment /kis

  18. Davven, if you still need some of your old maps, for future edits "maybe" I still have them yes, I purchased them directly from you at eAthena .

    Welcome back!

    1. DavDav

      DavDav

      That would be great!! Can yku send them to me on this email: [email protected] 

      I would really appreciate it!! 😄

    2. Royr

      Royr

      Sended.

       

    3. DavDav

      DavDav

      Thank uou so much Royr. I owe you 🙂

  19. Try this: prontera,150,180,4 script Exchanger 4_F_BRZ_WOMAN,{ mes .n$; mes "I can exchange your "+getitemname(.exc_id)+"s for other items."; mes "Please select from the list what you want."; mes " "; mes "Currency: "+ getitemname(.exc_id); next; for( [email protected] = 0; [email protected] < getarraysize(.item); [email protected] ++ ) [email protected]_menu$ = [email protected]_menu$ + "- "+ getitemname(.item[[email protected]]) +" ("+ .cost[[email protected]] +") "+ ( (.item[[email protected]+1] != 0)?":":""); [email protected] = select([email protected]_menu$) - 1; mes .n$; mes "You have chosen "+ getitemname(.item[[email protected]]) +" for the price of "+ .cost[[email protected]] +" "+ getitemname(.exc_id) +"s"; mes "Is that correct?"; next; if( select("- Yes:- No" ) - 1) close; mes .n$; if( countitem(.exc_id) < .cost[[email protected]] ) { mes "I'm sorry, but you don't have enough "+getitemname(.exc_id)+", please come back when you have enough."; close; } getitem .item[[email protected]],1; delitem .exc_id,.cost[[email protected]]; mes "Exchange complete."; close; OnInit: .n$ = "[ "+ strnpcinfo(0) +" ]"; .exc_id = 501; setarray .item[0],603,13890,13889,618,616; setarray .cost[0],1,1,1,1,1; end; }
  20. function script AddPoints { [email protected] = getarg(0); [email protected] = getarg(1); getitem $shardIds[0], [email protected]; message rid2name([email protected]), "You've recieved "+ [email protected] +" Shard"+ ([email protected] > 1 ? "s":"") +"."; return; }
  21. in mob.c - pc_isGM(sd) + pc_get_group_level(sd) Try this one: if( (mvp_sd && pc_get_group_level(mvp_sd)) || (sd && pc_get_group_level(sd)) ) { if( mvp_sd && pc_get_group_level(mvp_sd) < battle_config.gm_monsterdrop_lv ) type |= 1; else if( sd && pc_get_group_level(sd) < battle_config.gm_monsterdrop_lv ) type |= 1; } It should work, i tested mine here.
  22. Raw Script: Lucky Gambler prontera.gat, 155, 185, 5 script Lucky Gambler 757,{ /* Note: Calculations: 100/50 = 2 so 2 is 50% */ // Required Item [email protected]_ID = 501; // [email protected]_List[0],<rates>,<item_id>,......... setarray [email protected]_List[0], 2,5738, 20,5443, 25,2294, 30,5509, 50,5150 ; setarray [email protected]_Ann[0], 5738, 5443, 2294, 5509, 5150 ; mes "Do you want to use your "+getitemname( [email protected]_ID )+" to try and get something valuable items."; next; if( select("- Yes:- No")-1 ) close; if( !countitem( [email protected]_ID ) ) { mes "You don't have any "+getitemname( [email protected]_ID )+"."; mes "Please come back to me if you have it already."; } else { delitem [email protected]_ID,1; for( [email protected] = 0; [email protected] < getarraysize([email protected]_List); [email protected]+= 2 ) { if( rand([email protected]_List[[email protected]]) == 1 ) { getitem( [email protected]_List[[email protected]+1] ),1; mes "Congratulations!"; for( [email protected] = 0; [email protected] < getarraysize([email protected]_List); [email protected]++ ) { if( [email protected]_List[[email protected]+1] == [email protected]_Ann[[email protected]] ) { announce "[ Lucky Gambler ]: Player " + strcharinfo(0) +" has obtained "+ (([email protected]_List[[email protected]]>=50)?"'Low'":"'High'") +" "+getitemname( [email protected]_List[[email protected]+1] )+" with ["+ (100/[email protected]_List[[email protected]]) +"%] Chance.",bc_all,0xBA55D3; } } specialeffect 154; close; } } specialeffect 155; mes "It's failed, sorry."; } close; }
  23. Royr

    @ccommands

    If you know how to modify the script then your good to go.
  24. Royr

    @ccommands

    Search Engine is the 'key' there are tons of that similar to your requests.
×
×
  • Create New...

Important Information

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