Jump to content

Help on Quest from Anti Exp Ring


Recommended Posts

Hello guys i have this quest for using my anti exp ring but i have i problem.

 
72501 °æÇèÀÇ ¹ÝÁö(PC¹æ¿ë) ITEM_UNIQUE UNIQUE_SPECIAL_RIDE 1 ANTI_SELL | ANTI_STACK QUEST_USE_MULTIPLE | LOG WEAR_SHIELD NONE 0 0 0 0 0 LEVEL 50 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 600 0 0 0 0 0 0 0 0
 
Quest:

 

quest anti_exp_ring begin
state start begin
when login begin
if pc.getqf("antiexp") == 1 then
pc.block_exp()
chat("Anel Anti Experiência ainda esta Ativado!")
end
end
when 72501.use begin
if pc.getqf("antiexp") == 0 then
pc.block_exp()
pc.setqf("antiexp", 1)
chat("O Anel Anti Experiência foi Ativado!")
elseif pc.getqf("antiexp") == 1 then
pc.unblock_exp()
pc.setqf("antiexp", 0)
chat("O Anel Anti Experiência foi Desativado!")
end
end
end

end

 

 
i make a small video for any can help me better :)

 

https://www.youtube.com/watch?v=brdGSPOIoFk

 

the problem is normaly when ther active is then you whant deactive only need click one time and not deactive from slot and then put on slot for deactive .

 

Thanks

  • Love 1
Link to comment
Share on other sites

Try this ;

quest antiexp_ring begin
    state start begin
        when login or levelup or enter begin
			if(pc.getf("antiexp_ring","use") == 1 and pc.count_item(72501) < 0) then
				pc.unblock_exp()
				return
			end
            if(pc.getf("antiexp_ring","use") == 1) then
                pc.block_exp()
                chat("Anti Exp Ring activated!")
				timer("checkControl",5)
            end
        end
        when 72501.use begin
            if(pc.getf("antiexp_ring","use") == 0) then
                pc.block_exp()
                pc.setf("antiexp_ring","use",1)
                chat("Anti Exp Ring Activated!")
            elseif(pc.getf("antiexp_ring","use") == 1) then
                pc.unblock_exp()
                pc.setf("antiexp_ring","use",0)
                chat("Anti Exp Ring Deactivated!")
            end
        end
		when checkControl.timer begin
			if(pc.getf("antiexp_ring","use") == 1 and pc.count_item(72501) < 0) then
				pc.unblock_exp()	
			else
				timer("checkControl2",5)
			end
		end
		when checkControl.timer begin
			if(pc.getf("antiexp_ring","use") == 1 and pc.count_item(72501) < 0) then
				pc.unblock_exp()
			else
				timer("checkControl",5)
			end
		end		
    end
end

Best Regards

Ellie

  • Love 1

Do not be sorry, be better.

Link to comment
Share on other sites

  • 1 month later...

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.