Jump to content

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


Recommended Posts

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
Share on other sites

 

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
Share on other sites

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
Share on other sites

 

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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.