Jump to content
  • 0

want to add bonus to items with quests so how to?


scrabby

Question

4 answers to this question

Recommended Posts

  • 1

edit it as you wish

quest crea_item begin
state start begin
when 20090.click with pc.is_gm() and pc.get_gm_level () >= 5 begin
say ("Put Value Item")
say ("Put 0 for close!")
local a = tonumber ( input() )
if a == 0 then
say_title ("Operation Fail!")
return
end
if a == nil then
say("U need to put a real number")
say_title ("Operation Fail!")
return
end
say ("value first Bonus")
local b1 = tonumber (input())
say ("amount first Bonus")
local v1 = tonumber (input())
say ("value second Bonus")
local b2 = tonumber (input())
say ("amount second Bonus")
local v2 = tonumber (input())
say ("value thirth Bonus")
local b3 = tonumber (input())
say ("amount thirth Bonus")
local v3 = tonumber (input())
say ("value fourth Bonus")
local b4 = tonumber (input())
say ("amount fourth Bonus")
local v4 = tonumber (input())
say ("value fifth Bonus")
local b5 = tonumber (input())
say ("amount fifth Bonus")
local v5 = tonumber (input())
say ("value sixth Bonus")
local b6 = tonumber (input())
say ("amount sixth Bonus")
local v6 = tonumber (input())
say ("value fifth Bonus")
local b7 = tonumber (input())
say ("amount fifth Bonus")
local v7 = tonumber (input())
say ("First Stone")
say ("Put value Stone")
say ("Put 0 for no stone and no slot")
say ("And 1 for no stone but free slot")
local p1 = tonumber (input())
say ("Second Stone")
say ("Put value Stone")
say ("Put 0 for no stone and no slot")
say ("And 1 for no stone but free slot")
local p2 = tonumber (input())
say ("Thirt Stone")
say ("Put value Stone")
say ("Put 0 for no stone and no slot")
say ("And 1 for no stone but free slot")
local p3 = tonumber (input())

pc.give_item2_select(a)
item.set_socket ( 0 , p1 )
item.set_socket ( 1 , p2 )
item.set_socket ( 2 , p3 ) 
item.set_value(0, b1, v1)
item.set_value(1, b2, v2)
item.set_value(2, b3, v3)
item.set_value(3, b4, v4)
item.set_value(4, b5, v5)
item.set_value(5, b6, v6)
item.set_value(6, b7, v7)

end
end
end
  • Love 2
Link to comment
  • 0

Just esample and only for 40k

Ur item will take a vs war stone+3, 500 hp, 250 Sp, 10 critical, 10 piercing, 10 human..

quest blabla begin
	state start begin
		when 9003.take begin
			item.set_socket ( 0 , 28433 )  
			item.set_socket ( 1 , 1 )
			item.set_socket ( 2 , 1 ) 
			item.set_value(0, 1, 500) 
			item.set_value(1, 2, 250) 
			item.set_value(2, 15, 10) 
			item.set_value(3, 16, 10) 
			item.set_value(4, 17, 10)
		end
	end
end
  • Love 2
Link to comment
  • 0

 

Just esample and only for 40k

Ur item will take a vs war stone+3, 500 hp, 250 Sp, 10 critical, 10 piercing, 10 human..

quest blabla begin
	state start begin
		when 9003.take begin
			item.set_socket ( 0 , 28433 )  
			item.set_socket ( 1 , 1 )
			item.set_socket ( 2 , 1 ) 
			item.set_value(0, 1, 500) 
			item.set_value(1, 2, 250) 
			item.set_value(2, 15, 10) 
			item.set_value(3, 16, 10) 
			item.set_value(4, 17, 10)
		end
	end
end

nice but there must be choose option too so what i want must be add bonus like "intert select menu"

 

so i want to joinable item.set socket numbers too

 

can u make it

Link to comment
  • 0

 

edit it as you wish

quest crea_item begin
state start begin
when 20090.click with pc.is_gm() and pc.get_gm_level () >= 5 begin
say ("Put Value Item")
say ("Put 0 for close!")
local a = tonumber ( input() )
if a == 0 then
say_title ("Operation Fail!")
return
end
if a == nil then
say("U need to put a real number")
say_title ("Operation Fail!")
return
end
say ("value first Bonus")
local b1 = tonumber (input())
say ("amount first Bonus")
local v1 = tonumber (input())
say ("value second Bonus")
local b2 = tonumber (input())
say ("amount second Bonus")
local v2 = tonumber (input())
say ("value thirth Bonus")
local b3 = tonumber (input())
say ("amount thirth Bonus")
local v3 = tonumber (input())
say ("value fourth Bonus")
local b4 = tonumber (input())
say ("amount fourth Bonus")
local v4 = tonumber (input())
say ("value fifth Bonus")
local b5 = tonumber (input())
say ("amount fifth Bonus")
local v5 = tonumber (input())
say ("value sixth Bonus")
local b6 = tonumber (input())
say ("amount sixth Bonus")
local v6 = tonumber (input())
say ("value fifth Bonus")
local b7 = tonumber (input())
say ("amount fifth Bonus")
local v7 = tonumber (input())
say ("First Stone")
say ("Put value Stone")
say ("Put 0 for no stone and no slot")
say ("And 1 for no stone but free slot")
local p1 = tonumber (input())
say ("Second Stone")
say ("Put value Stone")
say ("Put 0 for no stone and no slot")
say ("And 1 for no stone but free slot")
local p2 = tonumber (input())
say ("Thirt Stone")
say ("Put value Stone")
say ("Put 0 for no stone and no slot")
say ("And 1 for no stone but free slot")
local p3 = tonumber (input())

pc.give_item2_select(a)
item.set_socket ( 0 , p1 )
item.set_socket ( 1 , p2 )
item.set_socket ( 2 , p3 ) 
item.set_value(0, b1, v1)
item.set_value(1, b2, v2)
item.set_value(2, b3, v3)
item.set_value(3, b4, v4)
item.set_value(4, b5, v5)
item.set_value(5, b6, v6)
item.set_value(6, b7, v7)

end
end
end

thanks a lot for work friend so i will check it and back for report

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Read our Rules
  • Activity

    1. 2

      [Python] Code Translator 2 to 3

    2. 0

      bug gaya

    3. 5

      Fix Core Crash (unused serverside packet)

    4. 45

      Chest Drop View

    5. 0

      How to add Python 3.9 script?

    6. 15

      Metin2 Download Center - Specifications & Documentation

    7. 5

      Fix Core Crash (unused serverside packet)

    8. 45

      Chest Drop View

    9. 5

      Fix Core Crash (unused serverside packet)

  • Recently Browsing

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.