Jump to content

crazyarashi

Developer
  • Posts

    776
  • Joined

  • Last visited

  • Days Won

    22

Everything posted by crazyarashi

  1. Thats what i meant when breaking the newer clients :))
  2. This will work only for older clients since the Nemo's patch usually breaks newer client.
  3. I forgot about the isequipped that could have shorten it a little bit ^^
  4. you didn't mention about being equipped on the topic. prontera,255,255,3 script Equip Freebies 123,{ if(#claimed){ mes "[ Freebies ]"; mes "You alreay receieved your freebies."; close; } getinventorylist; for(.@i = 0; .@i < 20; .@i++){ .@id = getequipid(.@i); if(.@id == -1) .@equip_id[.@i] = 0; // Dummy Data else .@equip_id[.@i] = .@id; } for(.@i = 0; .@i < getarraysize(.equip_id); .@i++){ if(inarray(.@equip_id[0],.equip_id[.@i]) >= 0 || inarray(@inventorylist_id[0],.equip_id[.@i]) >= 0){ .@fail = 1; break; } continue; } if(.@fail){ mes "[ Freebies ]"; mes "You already have a duplicated freebies in your inventory/equipment."; close; } #claimed = 1; for(.@i = 0; .@i < getarraysize(.equip_id); .@i++){ getitem .equip_id[.@i],1; equip .equip_id[.@i]; } mes "[ Freebies ]"; mes "Here is your freebies."; end; OnInit: setarray .equip_id,1208,2154; // Add your ID's here. end; } Here is the new script that it will automatically equip it after receiving :))
  5. 22132:4131,{.@r = getequiprefinerycnt(EQI_SHOES); skill "AL_HEAL",10; if(BaseLevel < 99){ bonus bMatk,.@r*5;bonus bMdef,.@r*; } else { bonus bMatk,.@r*15;bonus bMdef,.@r*10; }} Watch your spaces.
  6. 22132,Lighting_Gods_Shoes,Lightning Gods Shoes,4,20,,400,,18,,1,0xFFFFFFFE,63,2,64,,99,1,,{ .@r = getrefine(); bonus2 bVariableCastrate,-.@r; bonus bMatk,(.@r*5); bonus2 bMagicAddEle,Ele_Earth,2*.@r; bonus2 bAddEle,Ele_Neutral,2*.@r; bonus2 bAddEle,Ele_Undead,2*.@r; bonus2 bAddEle,Ele_Ghost,2*.@r; },{},{} There is nothing wrong with your item script ?
  7. prontera,255,255,3 script Equip Freebies 123,{ if(#claimed){ mes "[ Freebies ]"; mes "You alreay receieved your freebies."; close; } getinventorylist; for(.@i = 0; .@i < 20; .@i++){ .@id = getequipid(.@i); if(.@id == -1) .@equip_id[.@i] = 0; // Dummy Data else .@equip_id[.@i] = .@id; } for(.@i = 0; .@i < getarraysize(.equip_id); .@i++){ if(inarray(.@equip_id[0],.equip_id[.@i]) >= 0 || inarray(@inventorylist_id[0],.equip_id[.@i]) >= 0){ .@fail = 1; break; } continue; } if(.@fail){ mes "[ Freebies ]"; mes "You already have a duplicated freebies in your inventory/equipment."; close; } #claimed = 1; for(.@i = 0; .@i < getarraysize(.equip_id); .@i++){ getitem .equip_id[.@i],1; } mes "[ Freebies ]"; mes "Here is your freebies."; end; OnInit: setarray .equip_id,1208,2154; // Add your ID's here. end; }
  8. That's an automatic announcement when you have the VIP feature on.
  9. I believe in the official server they have a way to disable npc for a single id atleast that's what i notice when i copied it. the only work around for this is using OnTouch.
  10. if((MaxWeight - Weight) < 1000){ mes "^FF0000 You must atleast have 1000 extra weight to receive freebies.^000000"; close; } Add this at the part of your script :))
  11. Just adjust the group to fit your needs, no need to the all_commands permission :))
  12. it won't work because you have an extra ; in your code.
  13. Change the .@r to getequiprefinerycnt(EQI_SHOES);
  14. .@r = getrefine(); skill "SM_MAGNUM",10; bonus2 bHPRegenRate,5000,10000; bonus2 bSPRegenRate,100,10000; if(BaseLevel < 99){ bonus bStr,.@r*3; bonus bFlee,.@r*5; } else { bonus bStr,.@r*10; bonus bFlee,.@r*15; }
  15. You added it in item_combo, you need to wear both item for effect to work.
  16. The devs already prepared a fix for this, if you look at the pull request. https://github.com/rathena/rathena/pull/4065
  17. Remove the character since it eats a lot of space and make use of the right side space for the player information, rather than putting it near the exit button :))
  18. https://github.com/rathena/rathena/issues/4015 Related to this.
  19. .@r = getrefine(); skill "SM_MAGNUM",10; bonus2 bHPRegenRate,5000,10000; bonus2 bSPRegenRate,100,10000; if(BaseLevel < 99){ bonus bStr,3*.@r; bonus bFlee,5*.@r; } else { bonus bStr,10*.@r; bonus bFlee,15*.@r; }
  20. - script costume_drop -1,{ OnNPCKillEvent: .@index = inarray(.mob_id[0],killedrid); if(.@index < 0) end; if(rand(1,10000) <= .chance){ explode(.@ID$,.drop_data$[.@index],":"); announce "Congratulations to the player "+ strcharinfo(0) +" who, after killing a "+ getmonsterinfo( killedrid, MOB_NAME ) +" in "+ strcharinfo(3) +", got a rare costume!",0,0x00FF00; getitem atoi(.@ID$[1]),1; deletearray .@ID$[0],getarraysize(.@ID$); } end; OnInit: .chance = 3; setarray .drop_data$, "1001:501","1002:502","1003:503","1005:504"; //= "Mob ID:Costume ID" for(.@i = 0; .@i < getarraysize(.drop_data$); .@i++){ explode(.@mob_id$,.drop_data$[.@i],":"); .mob_id[.@i] = atoi(.@mob_id$[0]); deletearray .@mob_id$[0],getarraysize(.@mob_id$); } end; } I haven't tested this yet, but it should work fine :))
  21. getitembound2 1102,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1151,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1208,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1251,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1302,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1352,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1405,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1452,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1502,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1550,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1602,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1702,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1802,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1951,1,1,10,0,0,0,0,0,Bound_Account; getitembound2 1929,1,1,10,0,0,0,0,0,Bound_Account;
  22. crazyarashi

    Disabled

    Your crash source is probably not the item db. if you want to remove an item from the database just simply comment it out.
  23. https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L5895 *bonus_script "<script code>",<duration>{,<flag>{,<type>{,<status_icon>{,<char_id>}}}};
×
×
  • Create New...