Jump to content

Mice

Members
  • Posts

    78
  • Joined

  • Last visited

  • Days Won

    4

Community Answers

  1. Mice's post in How to block Arrays? was marked as the answer   
    @miaodiao Try not tested
     
    lasagna,142,271,3 script Homi 4_ep18_imril,{ mes "[Homi]"; mes "hello"; next; menu " - ^E63946yeah^000000",caihonghj," - no",caihongfj; caihonghj: set .@hasAll, 1; for (.@i = 0; .@i < getarraysize($@Chzhili); .@i++) { if (countitem($@Chzhili[.@i]) <= 0) { .@hasAll = 0; break; } } if (.@hasAll) { mes "[Homi]"; mes "Sorry, you cannot draw anymore because you already have all the items!"; close; end; } set .@i, rand(0, (getarraysize($@Chzhili) - 1)); while (countitem($@Chzhili[.@i]) > 0) { .@i = rand(0, (getarraysize($@Chzhili) - 1)); } if (countitem(12384) < 1) { mes "[Homi]"; mes "oh no!"; close; end; } mes "[Homi]"; mes "haha!"; next; getitem $@Chzhili[.@i], 1; mes "[Homi]"; mes "you get "+getitemname($@Chzhili[.@i])+" x 1"; close; end; caihongfj: delitem 12384, 1; getitem 12385, 1; close; end; OnInit: setarray $@Chzhili[0], 10000, 10001, 10002, 10003, 10004, 10005, 10006, 10007; end; }  
  2. Mice's post in Need Help with this one been awake for 25 hours was marked as the answer   
    Hello, if you purchased the auto attack directly from Shakto, it should come with a database.sql or autoattack.sql file something like that. Simply import or execute it in your SQL database or phpMyAdmin, or whichever name you're more familiar with between the two.
     
    CREATE TABLE `aa_common_config` ( `char_id` int UNSIGNED NOT NULL, ` ` so on .. ); ALTER TABLE `aa_common_config` ADD UNIQUE KEY `char_id` (`char_id`); CREATE TABLE `aa_items` ( `char_id` int UNSIGNED NOT NULL, ` ` so on .. ); ALTER TABLE `aa_items` ADD UNIQUE KEY `char_id` (`char_id`,`type`,`item_id`); CREATE TABLE `aa_mobs` ( `char_id` int UNSIGNED NOT NULL, ` ` so on .. ); ALTER TABLE `aa_mobs` ADD UNIQUE KEY `char_id` (`char_id`,`mob_id`); CREATE TABLE `aa_skills` ( `char_id` int UNSIGNED NOT NULL, ` ` so on .. );  
  3. Mice's post in Help Update OnPCAttackEvent was marked as the answer   
    Hello, I'm not a great developer, but I'm willing to give this a try.
     
    OnPcAttackEvent.diff
  4. Mice's post in How to check "sd->state.security" in a script commands was marked as the answer   
    Solve using custom string
×
×
  • Create New...