Rizta

Members
  • Content Count

    108
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

  • Days Won

    1

Rizta last won the day on October 19 2018

Rizta had the most liked content!

Community Reputation

4 Neutral

1 Follower

About Rizta

  • Rank
    Poporing

Profile Information

  • Gender
    Male
  • Server
    SurviveRO

Recent Profile Visitors

326 profile views
  1. Sorry for late response... Im testing this and its all ok for a while xD lets see with a long time testing
  2. Using this based on your last and script ignores the needed mobs values to get % and every give me 1% in each equipped slot. - script Extra_GearConf -1,{ function add_item; OnInit: /* add_item(id, evolution mode, monster id, amount, id...); If you want any monster, use 111. Evolution modes: 1 = Every X numer of mobs (1%). 2 = Experience (1%). */ /* Armor */ add_item(2301, 1, 111,10, 2303, 1, 111,25, 2305, 1, 111, 40, 2307, 1, 111, 65, 2311, 1, 111, 75, 2319, 1, 111,95, 2320, 1, 111,125); /* Adaga */ add_item(13040,1, 111, 1, 1203, 1, 111, 5, 1206, 1, 111, 15, 1209, 1, 111, 25, 1212, 1, 111, 30, 1215, 1, 111, 60, 1218, 1, 111, 70, 1221, 1, 111, 80, 1222, 1, 111, 90, 13048, 1, 111, 150 ); // Adaga /* Shield */ add_item(2101, 1, 111,30, 2103, 1, 111,45, 2105, 1, 111, 70); /* Robe */ add_item(2501, 1, 111,31, 2503, 1, 111,46, 2505, 1, 111, 71); /* Shoes */ add_item(2401, 1, 111,32, 2403, 1, 111,47, 2405, 1, 111, 72); /* Debug */ /* 0 = Won't be evolved automatically. 1 = Will be evolved automatically */ .auto = 1; /* Color of the announces. */ setarray .c$[0],"ffffff", // % of evolution. "03fd20", // Wings evolving. "11f4cc"; // Wings evolved. /* slots to check. EQI_ACC_L (0) - Accessory 1 EQI_ACC_R (1) - Accessory 2 EQI_SHOES (2) - Footgear (shoes, boots) EQI_GARMENT (3) - Garment (mufflers, hoods, manteaux) EQI_HEAD_LOW (4) - Lower Headgear (beards, some masks) EQI_HEAD_MID (5) - Middle Headgear (masks, glasses) EQI_HEAD_TOP (6) - Upper Headgear EQI_ARMOR (7) - Armor (jackets, robes) EQI_HAND_L (8) - Left hand (weapons, shields) EQI_HAND_R (9) - Right hand (weapons) EQI_COSTUME_HEAD_TOP (10) - Upper Costume Headgear EQI_COSTUME_HEAD_MID (11) - Middle Costume Headgear EQI_COSTUME_HEAD_LOW (12) - Lower Costume Headgear EQI_COSTUME_GARMENT (13) - Costume Garment EQI_AMMO (14) - Arrow/Ammunition EQI_SHADOW_ARMOR (15) - Shadow Armor EQI_SHADOW_WEAPON (16) - Shadow Weapon EQI_SHADOW_SHIELD (17) - Shadow Shield EQI_SHADOW_SHOES (18) - Shadow Shoes EQI_SHADOW_ACC_R (19) - Shadow Accessory 2 EQI_SHADOW_ACC_L (20) - Shadow Accessory 1 */ setarray .slots[0], EQI_HAND_L, EQI_ARMOR, EQI_GARMENT, EQI_SHOES; //============================================= end; OnNPCKillEvent: if(@evolve_inuse) end; @evolve_inuse = true; [email protected] = getarraysize(.slots); while([email protected] < [email protected]) { [email protected]_id = getequipid(.slots[[email protected]]); [email protected]++; if([email protected]_id < 0) continue; [email protected] = 0; while([email protected] < .w1) { [email protected] = 0; [email protected]_item = false; while([email protected] < .w2[[email protected]] && [email protected]_item) { [email protected]_evo = getd(".it_id_"[email protected]+"_"[email protected]); if([email protected]_id == [email protected]_evo && getd(".it_id_"[email protected]+"_"+([email protected] + 1))) { [email protected]_id = getd(".it_mob_"[email protected]+"_"[email protected]); if(killedrid == [email protected]_id || [email protected]_id < 1001) { if(getd(".it_mode_"[email protected]+"_"[email protected]) == 1) { [email protected] = getd("mobs_"[email protected]_id) + 1; setd "mobs_"[email protected]_id,[email protected]; if([email protected] < getd(".it_amt_"[email protected]+"_"[email protected])) continue; setd "mobs_"[email protected]_id,0; } else { [email protected] = getd("exp_"[email protected]_id) + strmobinfo(6,killedrid); setd "exp_"[email protected]_id,[email protected]; if([email protected] < getd(".it_amt_"[email protected]+"_"[email protected])) continue; setd "exp_"[email protected]_id,0; } specialeffect2 EF_BEGINSPELL6; sleep2 rand(190,280); specialeffect2 EF_ENERGYDRAIN3; [email protected] = getd("evo_"[email protected]_id); if([email protected] < 100) { setd "evo_"[email protected]_id,[email protected]; announce getitemname([email protected]_id)+": "[email protected]+"%.",bc_self,"0x"+.c$[0]; } if([email protected] >= 100 && .auto) { specialeffect2 EF_GUMGANG3; sleep2 500; specialeffect2 EF_BASH3D2; sleep2 300; specialeffect2 EF_BLUEBODY; sleep2 300; announce getitemname([email protected]_id)+" está evoluindo...",bc_self,"0x"+.c$[1]; [email protected] = 3; while([email protected]) { specialeffect2 EF_DOUBLECASTBODY; sleep2 900; } specialeffect2 EF_STORMKICK5; sleep2 200; specialeffect2 EF_BUBBLE_DROP; sleep2 500; if([email protected]) { getinventorylist; [email protected] = true; } [email protected] = inarray(@inventorylist_id,[email protected]_id); if([email protected] != -1) { if([email protected]_expire[[email protected]]) { setarray [email protected][0],@inventorylist_id[[email protected]],@inventorylist_refine[[email protected]],@inventorylist_card1[[email protected]],@inventorylist_card2[[email protected]],@inventorylist_card3[[email protected]],@inventorylist_card4[[email protected]]; setarray [email protected][0],@inventorylist_option_id1[[email protected]],@inventorylist_option_id2[[email protected]],@inventorylist_option_id3[[email protected]],@inventorylist_option_id4[[email protected]],@inventorylist_option_id5[[email protected]]; setarray [email protected][0],@inventorylist_option_value1[[email protected]],@inventorylist_option_value2[[email protected]],@inventorylist_option_value3[[email protected]],@inventorylist_option_value4[[email protected]],@inventorylist_option_value5[[email protected]]; setarray [email protected][0],@inventorylist_option_parameter1[[email protected]],@inventorylist_option_parameter2[[email protected]],@inventorylist_option_parameter3[[email protected]],@inventorylist_option_parameter4[[email protected]],@inventorylist_option_parameter5[[email protected]]; [email protected] = @inventorylist_bound[[email protected]]; } else { continue; } [email protected]_item = getd(".it_id_"[email protected]+"_"+([email protected] + 1)); if(getarraysize([email protected])){ delitem3 [email protected][0],1,1,[email protected][1],0,[email protected][2],[email protected][3],[email protected][4],[email protected][5],[email protected],[email protected],[email protected]; if([email protected]) getitembound3 [email protected]_item,1,1,[email protected][1],0,[email protected][2],[email protected][3],[email protected][4],[email protected][5],Bound_Account,[email protected],[email protected],[email protected]; else getitem3 [email protected]_item,1,1,[email protected][1],0,[email protected][2],[email protected][3],[email protected][4],[email protected][5],[email protected],[email protected],[email protected]; } else { delitem2 [email protected][0],1,1,[email protected][1],0,[email protected][2],[email protected][3],[email protected][4],[email protected][5]; if([email protected]) getitembound2 [email protected]_item,1,1,[email protected][1],0,[email protected][2],[email protected][3],[email protected][4],[email protected][5],Bound_Account; else getitem2 [email protected]_item,1,1,[email protected][1],0,[email protected][2],[email protected][3],[email protected][4],[email protected][5]; } equip [email protected]_item; setd "evo_"[email protected]_id,0; announce "Parabéns!! Sua "+getitemname([email protected]_id)+" evoluiu para "+getitemname([email protected]_item)+".",bc_self,"0x"+.c$[2]; } [email protected]_item = true; } else if([email protected]_id == [email protected]_evo) { [email protected] = .w2[[email protected]]; } } } [email protected]++; } [email protected]++; } } @evolve_inuse = false; end; function add_item { for([email protected] = getargcount();[email protected] < [email protected];[email protected]+= 4) { [email protected] = .w2[.w1]++; setd ".it_id_"+.w1+"_"[email protected],getarg([email protected]); // id. if(getarg([email protected] + 4,0) != 0) { setd ".it_mode_"+.w1+"_"[email protected],getarg([email protected] + 1); // mode. setd ".it_mob_"+.w1+"_"[email protected],getarg([email protected] + 2); // mob id. setd ".it_amt_"+.w1+"_"[email protected],getarg([email protected] + 3); // amount. } } .w1++; } }
  3. First script definetely wont work. The second script works almost perfect. The only problem im capable to see is the script cant process % if you kill lots of mobs at same time. Isnt a BIG problem/issue but it is. Btw im thinking and obviously im wrong, but, what do you think of copy script for each slot? If i wanna do that it will need to be different otherwise wont work(variabls problem i think)
  4. it worked but theres a big bug ... all itens share the % and when i kill only 1 mob everything evolve at same time xD
  5. Yeah, ill really need that feature. I can imagine a way to do that but probably ill mess everything xD
  6. Ya, its working but i noticed the script cant evolve more than 1 item at same time (double dagger sin for example or an armor + weapon) lol
  7. its really good. i love it =D Pls do a tutorial! It might help the community
  8. Ill test it soon. About characters i think its because UTF-8 / ANSI xD
  9. Fixing this and now item dosnt evolve.
  10. i fixed this part, and get new error with effect(line 139), and found another one on line 170 (an extra ')'). Script works fine but it really ignore random option. Im trying to do something with it because your version is much better than mine xD
  11. Rizta

    skill_damage_db.txt not working?

    Use skillname instead of ID
  12. Rizta

    Need help with scripting consumable

    as i said, theres some limitations of what you can do... one possible solution is create another conditional(in the example i give above, simple add an ELSE) that restore the item if user dont match the requirements to receive the bonus, using getitem on script.
  13. Rizta

    How to enable worg for every class?

    im not sure but i think youll need lots of client and source edits xD
  14. Rizta

    Need help with scripting consumable

    only usable between those levels i think its impossible, but, following what @melv0 told you can use script to make the effect work between 15-50. In item db you can set a EquipLevel on potion that means you can only can use if are at least on EquipLevel value level. if(BaseLevel >= 15 && BaseLevel <= 50) { percentheal xx,yy; /* this will heal xx(hp) and yy(sp) by %*/ itemheal rand(aa,bb),rand(cc,dd); /*this will heal by a fixed value or rand value between aa and bb for HP and cc and dd for SP */ }