Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

automatically transform to another item


covfefe

Question

I'm trying to write a quest/source so that when player has 10x of an item,  the item gets removed and replaced by another item. Can someone help

I've tried many things, didn't work as intended because quest has only when login to check for the amount of item.. I want it to be rather dynamic.

Edited by covfefe
clarification
Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0
  • Premium
quest change_items begin
    state start begin
		when kill or login or logout or levelup begin
			if pc.count_item(30132) >= 10 then
				pc.remove_item(30132, 10)
				pc.give_item2(30013)
			end -- if 

		end -- when
	end -- state
end -- quest

 

Link to comment
Share on other sites

  • 0
Posted (edited)
47 minutes ago, FALLEN1 said:
quest change_items begin
    state start begin
		when kill or login or logout or levelup begin
			if pc.count_item(30132) >= 10 then
				pc.remove_item(30132, 10)
				pc.give_item2(30013)
			end -- if 

		end -- when
	end -- state
end -- quest

 

I  appreciate this bro its not working like i want, i want item automatically transformed without logn or kill lvl up trigger, for example, if traded or bought and u now have 10 of it

Edited by covfefe
Link to comment
Share on other sites

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


  • Activity

    1. 0

      Where are those maps/dungeons coming from?

    2. 4

      Visual studio 2022 compiling issue

    3. 1

      Count players function

    4. 64
    5. 1

      Costume shining/costume effect system

    6. 992

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    7. 3

      Biologist Manager (C++ & LUA)

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