Jump to content
  • 0

Transform/extract Box Into Many Items [Interlude]


Question

Posted

I'm looking for method for transform custom box into multiple items.

Something like "Newbie Armor Box" with full nograde set.

With "i_restoration_random" i can transform only random items from list

With "i_restoration" only one.

It can be done with skill or only with AI?

Recommended Posts

  • 0
Posted

 

What files are you using and rev ?

If you are using vanganth files you have the effect : i_give_item

{i_give_item;ID;count}

yeah, Vang 1.2.3.6

This "i_give_item" is Ai method, not skill handler (?)

I'm  far far away from my files, can not check right now

  • 0
Posted (edited)

why that so complicated?
there is easy way 

 

go to settings.txt

and then edit under

initial_equipment_begin

Edited by etherian
  • 0
Posted

yeah, Vang 1.2.3.6

This "i_give_item" is Ai method, not skill handler (?)

I'm  far far away from my files, can not check right now

Old extender rev. Way too old.

Etherian's idea stand because your extender rev is old.

 

For a new start package you can use this :

 

initial_equipment_begin
	human_fighter={[mask_noble];[hard_leather_helmet];[bone_gaiters];[bone_shield];[bone_breastplate];[bracer];[boots];[sword_breaker];[blue_diamond_necklace];[coral_earing];[coral_earing];[blue_coral_ring];[blue_coral_ring];[infinite_soulshot_none];[tutorial_guide]}
	human_magician={[mask_noble];[bone_shield];[bracer];[leather_helmet];[tunic_of_devotion];[hose_of_devotion];[boots];[voodoo_doll];[blue_diamond_necklace];[coral_earing];[coral_earing];[blue_coral_ring];[blue_coral_ring];[infinity_blessed_spiritshot_none];[tutorial_guide]}
	elf_fighter={[mask_noble];[hard_leather_helmet];[bone_gaiters];[bone_shield];[bone_breastplate];[bracer];[boots];[sword_breaker];[blue_diamond_necklace];[coral_earing];[coral_earing];[blue_coral_ring];[blue_coral_ring];[infinite_soulshot_none];[tutorial_guide]}
	elf_magician={[mask_noble];[bone_shield];[bracer];[leather_helmet];[tunic_of_devotion];[hose_of_devotion];[boots];[voodoo_doll];[blue_diamond_necklace];[coral_earing];[coral_earing];[blue_coral_ring];[blue_coral_ring];[infinity_blessed_spiritshot_none];[tutorial_guide]}
	darkelf_fighter={[mask_noble];[hard_leather_helmet];[bone_gaiters];[bone_shield];[bone_breastplate];[bracer];[boots];[sword_breaker];[blue_diamond_necklace];[coral_earing];[coral_earing];[blue_coral_ring];[blue_coral_ring];[infinite_soulshot_none];[tutorial_guide]}
	darkelf_magician={[mask_noble];[bone_shield];[bracer];[leather_helmet];[tunic_of_devotion];[hose_of_devotion];[boots];[voodoo_doll];[blue_diamond_necklace];[coral_earing];[coral_earing];[blue_coral_ring];[blue_coral_ring];[infinity_blessed_spiritshot_none];[tutorial_guide]}
	orc_fighter={[mask_noble];[hard_leather_helmet];[bone_gaiters];[bone_shield];[bone_breastplate];[bracer];[boots];[iron_hammer];[blue_diamond_necklace];[coral_earing];[coral_earing];[blue_coral_ring];[blue_coral_ring];[infinite_soulshot_none];[tutorial_guide]}
	orc_shaman={[mask_noble];[bone_shield];[bracer];[leather_helmet];[tunic_of_devotion];[hose_of_devotion];[boots];[voodoo_doll];[blue_diamond_necklace];[coral_earing];[coral_earing];[blue_coral_ring];[blue_coral_ring];[infinity_blessed_spiritshot_none];[tutorial_guide]}
	dwarf_apprentice={[mask_noble];[hard_leather_helmet];[bone_gaiters];[bone_shield];[bone_breastplate];[bracer];[boots];[iron_hammer];[blue_diamond_necklace];[coral_earing];[coral_earing];[blue_coral_ring];[blue_coral_ring];[infinite_soulshot_none];[tutorial_guide]}
initial_equipment_end

Or you can give within the same settings the chars some kind of coupons and they can exchange to the npcs for items.

  • 0
Posted (edited)

Misunderstanding.

Question is not really about starting equipment, but how to extract box into many items.

 

I'm doing this for fun, not for live server, there is no reason to buy newest pack

Thx for your help guys.

Edited by Pastorious
  • 0
Posted (edited)

Misunderstanding.

Question is not really about starting equipment, but how to extract box into many items.

 

I'm doing this for fun, not for live server, there is no reason to buy newest pack

Thx for your help guys.

then why do you want to touch AI.obj

 

just make custom skill or modify the npc box and set it up with more items

 

 

i really don't understand so much about Interlude 

mine work is currently with scions of destiny / oath of blood

never gonna go fwd since i despise interlude for what they did adding jurassic park and unbalanced new skills

and the lack of creativity since till oath of blood was a good RPG then it was the begin of l2 decay

 

sadly cannot submit more help  : / 

Edited by etherian
  • 0
Posted (edited)

never gonna go fwd since i despise interlude for what they did adding jurassic park and unbalanced new skills

and the lack of creativity since till oath of blood was a good RPG then it was the begin of l2 decay

:) give me high five man

But there is no good c5 extender

 

I Vang 1.2.3.6 i found only two skill handlers to operate with transform items.

With "i_restoration_random" i can transform only one random item from the list

With "i_restoration" only one.

i_restoration_random is used with items like fishing scale

i_restoration with items like compressed soulshot pack

 

I can't find handler with restoration multiple items

I can't multiply skill effect, something like :

effect={{i_restoration;[wooden_galtiers];1};{i_restoration;[wooden_brestplate];1}}

 because every transform  want consume one box per one restoration effect (in this example 2), but box is only one.

 

And I'm unexperienced with modding off files, AI is only for quests and NPC, common item can't have AI?

Edited by Pastorious
  • 0
Posted (edited)

:) give me high five man

But there is no good c5 extender

 

I Vang 1.2.3.6 i found only two skill handlers to operate with transform items.

With "i_restoration_random" i can transform only one random item from the list

With "i_restoration" only one.

i_restoration_random is used with items like fishing scale

i_restoration with items like compressed soulshot pack

 

I can't find handler with restoration multiple items

I can't multiply skill effect, something like :

effect={{i_restoration;[wooden_galtiers];1};{i_restoration;[wooden_brestplate];1}}

 because every transform  want consume one box per one restoration effect (in this example 2), but box is only one.

 

And I'm unexperienced with modding off files, AI is only for quests and NPC, common item can't have AI?

uhmmm

 

bro that is very complicated way to do

 

go to the treasure box npc

and set up

additional_make_multi_list=

there you can add all the items you want :P

Edited by etherian
  • 0
Posted

trust me touching Ai.Obj  will lead you to break other functions if you set up something weird
don't do that unless you're pretty sure of what you're going to modify

  • 0
Posted (edited)

AI goes for Artificial Intelligence

 

if you plan to make a custom one  just declare it as you wish

will paste you a GMSHOP example  it also has a function when is attacked to use a skill on attacker
 

class 1 gmshoptrader : merchant
property_define_begin
buyselllist_begin SellList0
{412; 20; 0.000000; 0 }
{390; 20; 0.000000; 0 }
{1124; 20; 0.000000; 0 }
{44; 20; 0.000000; 0 }
{1148; 20; 0.000000; 0 }
{45; 20; 0.000000; 0 }
{46; 20; 0.000000; 0 }
{47; 20; 0.000000; 0 }
buyselllist_end
buyselllist_begin SellList1
{1104; 20; 0.000000; 0 }
{1101; 20; 0.000000; 0 }
{40; 20; 0.000000; 0 }
{1123; 20; 0.000000; 0 }
{553; 20; 0.000000; 0 }
{1124; 20; 0.000000; 0 }
{44; 20; 0.000000; 0 }
{1148; 20; 0.000000; 0 }
{45; 20; 0.000000; 0 }
{46; 20; 0.000000; 0 }
{47; 20; 0.000000; 0 }
buyselllist_end
property_define_end
 
handler 1 28 //  ATTACKED
        variable_begin
                "attacker"
                "damage"
                "myself"
                "_choiceN"
                "_code"
                "_from_choice"
        variable_end
        push_event //  gg
        push_const 632
        add
        fetch_i
        push_const 100
        func_call 218169344 //  func[Rand]
        shift_sp -1
        push_const 99
        less
        branch_false L4829800
L4829001
        push_event //  myself
        push_const 704
        add
        fetch_i
        push_event //  attacker
        push_const 48
        add
        fetch_i
        push_const 1053964
        push_const 0
        push_const 1
        push_const 1000000
        func_call 184877074 //  func[AddUseSkillDesire]
        shift_sp -5
        shift_sp -1
L4829800
        call_super
handler_end
 
class_end



if you want you can make a custom AI  

but is more easy if you set up drop list in npcdata.txt
Edited by etherian
  • 0
Posted

:)

 

This is  AI for NPC fom npcdata.txt

I can decompile ai.obj and write some stuff in script. I have my own NPC with AI written by me. It working.

 

I'm looking for solution for common item from itemdata.txt

Something what player can put in inventiory, no talk to NPC.

  • 0
Posted (edited)

:)

 

This is  AI for NPC fom npcdata.txt

I can decompile ai.obj and write some stuff in script. I have my own NPC with AI written by me. It working.

 

I'm looking for solution for common item from itemdata.txt

Something what player can put in inventiory, no talk to NPC.

so then you dont need to edit nor item nor npc

 

head to skilldata

 

 

effect = {{i_restoration;[soulshot_s];300}}

 

 

have you tryed something like this ?

 

effect = {{i_restoration;[hard_leather_helmet];[bone_gaiters];[bone_shield];[bone_breastplate];[bracer];[boots];[sword_breaker];[blue_diamond_necklace];[coral_earing];[coral_earing];[blue_coral_ring];[blue_coral_ring]}}

 

as example i didnt tested yet  but it must be something like that

 

check for each item if it needs ammount like 

[hard_leather_helmet];1

if there is no need to set item ammount

 

well this is all i can do  the rest goes for you chummer

good luck  :good sir:

Edited by etherian
  • 0
Posted

That will not work.

then no idea my solution in first place was initial_equipment_begin

 

im pretty busy to test and bring aditional help

alrdy got lot of things to do with c4 client and server 

  • 0
Posted

There are not many options for him, his extender rev is old.

Beside the options he listed he can only pick a option like :
1 box opens 3 items -> each item can be exchanged in a npc for various items, multisell can trade you 1 item vs 10 even.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...