Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/20/18 in all areas

  1. prontera,155,181,5 script Sample 4_F_KAFRA1,{ mes "Warp to "+.map$+" ?"; if (.item_id_size) { for (.@i = 0; .@i < .item_id_size; .@i++) { mes "> "+.item_qty[.@i]+"x "+getitemname(.item_id[.@i]); if (countitem(.item_id[.@i]) < .item_qty[.@i]) .@failed++; } } if (select("Warp", "Cancel") == 1) { if (.@failed) { mes "You didnt have enough items."; } else { if (.item_id_size) for (.@i = 0; .@i < .item_id_size; .@i++) delitem .item_id[.@i], .item_qty[.@i]; warp .map$, 0, 0; } } close; OnInit: .map$ = "prontera"; setarray .item_id, 501, 502, 503; setarray .item_qty, 100, 200, 300; .item_id_size = getarraysize(.item_id); end; }
    2 points
  2. < Stolao's Daily Login Reward > Features: Full Customization Can Set Number of Hours Between Login Prizes and Losing Consecutive Prizes make Days Weeks or even Months Can Item, Point, Exp or even Buff Rewards Includes Whisper for checking status of and collecting next rewards Includes @Command for checking status of and collecting next rewards next rewards Includes Dynamic Buff Rewards Added Cutin Support Todo: Suggestions? Optimize? Changelog: 2.00 Origional Make 2.01 Fixed Logic Bug 2.02 Fixed Year Multiplier 2.03 Added an IP check 2.04 Split Rewards up 2.05 Move ip check to Daily reward collection 2.06 Added ability to see next day via commands/relogging 2.07 Added Delay 2.08 Moved Delay to none VIP only 2.09 Removed some useless lines 2.0A Removed Menus due to bugs 2.0B Fixed VIP Cutin 2.0C Added it showing previos day cutin 2.0D Added a for loop 2.0E Fixed Ramined logged in time calculation (visual bug) 2.0F Added a F_InsertPlural to "more minute" 2.10 Added a Mac Check 2.11 Changed the IP check to [Sader1992] version 2.12 Enable Bound Type 2.13 Added 'collectreward', 'dailyreward', 'collectdaily' Commands 2.14 Added 'nextreward' Command 2.15 Added Daily Buffs 2.16 Added Exp Rewards 2.17 Removed Reards for Autotraders 2.18 Move Buffs to Daily so VIP wont trigger twice 2.19 Optimized Slightly 2.1A Fixed a bug with VIP getting bonus rewards in normal rewards 2.1B Fixed some documentaion Links: Latest Short Video on how it works
    1 point
  3. - script Megaphone -1,{ OnCommand: setarray .@color$[0],"ff0000","00ff00","0000ff"; for(.@size = getarraysize(.@color$);.@i < .@size;.@i++) .@menu$+= "^"+.@color$[.@i]+"Sample:"; .@color = select(.@menu$) - 1; input .@msg$; if(.@msg$ != " " && .@msg$ != "0") announce .@msg$,bc_all,"0x"+.@color$[.@color]; end; OnInit: bindatcmd "torpedo","Megaphone::OnCommand",5; end; }
    1 point
  4. @IsabelaFernandez try file motd.php Ps: Why do not you use FluxCP? has even beautiful themes for him to use.
    1 point
  5. prontera,150,150,4 script Warpme! 999,{ .@itemreq = 501; .@itemamt = 10; mes "What do you want?"; next; if(select("Warp me!","Cancel") == 2) close; if(countitem(.@itemreq) < .@itemamt){ mes "Im sorry you dont have enough items in your inventory."; end; } delitem .@itemreq,.@itemamt; warp "payon",0,0; // change this to you map end; }
    1 point
  6. You're having problems because (1) You're using a select function with only one menu option "Game of Thrones", and (2), you do not have balanced braces. Syntax error, expected ) switch(select("Game of Thrones"){ Has 2 open braces ( and only one close brace ) switch(select("Game of Thrones", "Option 2")){ Checking for multiple conditions You can check for multiple conditions using the conditional operators AND or OR. if (countitem(501) > 0 && countitem(601) > 0) { mes "You have red potion AND fly wing at the same time!"; } if (countitem(501) > 0 || countitem(601) > 0) { mes "You have red potion or a fly wing... or BOTH!"; } See doc/script_commands for a full guide on NPC and item scripting.
    1 point
  7. prontera,145,199,5 script Game of Thrones 485,{ switch(select("Game of Thrones"){ <---------------HERE ONE CASE case 1: if (countitem(8966) < 1){ mes "your mes!"; close; } warp "verus03",248,170; end; case 2: <----------------HERE SECOND CASE close; }
    1 point
  8. its be cause you only have 1 case when its made for 2
    1 point
  9. Hey melv0 how would you make this script look for multiple items before warping the player
    1 point
  10. You can use this. prontera,155,166,4<tab>pointshop<tab>PointShop-Test3 123,#KAFRAPOINTS,678:5,607:5,608:3 or... change your scripts from KAFRAPOINTS to something else, change #KAFRAPOINTS to the same points. You can use any, or create new points example , #ZODIACPOINTS But.. make sure the hourly script also change to #ZODIACPOINTS
    1 point
  11. Hello, I have seen some servers do verification for their votes, for example the current V4P addons I saw they just add points when you click on the voting site, not after you vote. While the servers I saw they wait until you voted then you get the points not by just clicking the vote. How can I do this and if it's already included how can it be enabled?
    1 point
×
×
  • Create New...