Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/24/19 in all areas

  1. Version 1.0.2

    878 downloads

    Just a simple command for events or compensation reward to all online players. @giveitem <item id> <amount> <area|map|all> Area - ppl around your screen size Map - ppl in the map of the invoking character All - self explanatory
    Free
    1 point
  2. find in map.cpp next line and change it clif_solved_charname(sd->fd, charid, "Costume"); to clif_solved_charname(sd->fd, charid, "[C]"); If you want to remove 's then edit your msgstringtable at line 451 change 's# to #
    1 point
  3. Basic, inicially ? prontera,x,y,w<tab>script<tab>Missa<tab>NameSprite,{ if(already clicked today){ mes "good night,have a good mass."; close; } mes "good night, have a good mass."; set contDailly, contDailly+1; OnInit: set contDailly, 0; end; }
    1 point
  4. technically this script wont work i would suggest to not use .@var with addrid command
    1 point
  5. // https://rathena.org/board/topic/121262-custom-bring-me-event/ /* CREATE TABLE IF NOT EXISTS `bring_me_event` ( `id` int(11) unsigned NOT NULL auto_increment, `aid` int(11) unsigned NOT NULL default '0', `cid` int(11) unsigned NOT NULL default '0', `last_ip` varchar(100) NOT NULL default '', `last_unique_id` varchar(100) NOT NULL default '', `time` datetime NOT NULL, ) ENGINE=MyISAM; */ prontera,0,0,0 script Sample 444,{ .@aid = getcharid(3); .@cid = getcharid(0); .@ip$ = getcharip(); .@unique_id$ = get_unique_id(); query_logsql("SELECT `id`,`time` FROM `bring_me_event` WHERE `aid` = "+.@aid+" OR `last_ip` = '"+escape_sql(.@ip$)+"' OR `last_unique_id` = '"+escape_sql(.@unique_id$)+"' LIMIT 1", .@id, .@time$); query_logsql("SELECT COUNT(`id`) FROM `bring_me_event`", .@size); if (.@size >= .max_redeem) { mes "you missed the reward, only "+.max_redeem+" players got the reward."; } else if (.@id) { mes "You've already claimed the rewards on "+.@time$+"."; } else { mes "Bring me "+.amount+"x "+getitemname(.item_id); if (countitem(.item_id) >= .amount) { if (select("Okay","Cancel") == 1) { delitem .item_id, .amount; query_logsql("INSERT INTO `bring_me_event` (`aid`,`cid`,`last_ip`,`last_unique_id`,`time`) VALUES ("+.@aid+","+.@cid+",'"+escape_sql(.@ip$)+"','"+escape_sql(.@unique_id$)+"', NOW())"); getitem 501,1; getitem 502,1; getitem 503,1; mes "you are the "+(.@size+1)+"/"+.max_redeem+" players who got the reward"; } } } close; OnInit: .item_id = 512; .amount = 300; .max_redeem = 200; end; } you can try this.
    1 point
×
×
  • Create New...