Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Destroy item (vanilla) xml fight class

Featured Replies

Hello all , exist simple lua or cs # code to destroy item with count more then 2 in vanilla?
example need to  destroy more then 5  soulshards in xml fight class.....( is not spell is c# code)

  • Author
18 minutes ago, Marsbar said:

 

thanks , i read this ....but i low in programming .... how to realizate this for run in xml profile? exist  code cpecial changed for soulshards ? and where i need to past this code.....sorry my bad english......i past in (is not spell - is CS # but i have the errors..
Maybe you have fightclass.xml file  with work this function?biiiiig thanks for this)))

  • Author
3 hours ago, Mykoplazma said:

Вы можете добавить скрипт lua в состояние заклинания, и он будет выполняться каждый раз, когда заклинание выполнено. Найдите Lua в меню [добавить условие] в редакторе классов боя. 

big  thanks , but i search  code  without addons supermacro....  all macro need to instal this addon..... but i need clear code lua or cs# to add in  xml fightclass   without addons

Supermacro is and addon to extend macro lenght - and only that. Maybe that function thing. But that is not important. Try to put that in lua part:

 

number = 5;
i=1; 
for bag = 0,4,1 do 
	for slot = 1, GetContainerNumSlots(bag), 1 do
		local name = GetContainerItemLink(bag,slot);
		if name and string.find(name,"Soul Shard") then
			if i > number then PickupContainerItem(bag,slot);
			DeleteCursorItem();
		end;
		i=i+1; 
	end; 
end;

 

  • Author
2 hours ago, Mykoplazma said:

Supermacro is and addon to extend macro lenght - and only that. Maybe that function thing. But that is not important. Try to put that in lua part:

 


number = 5;
i=1; 
for bag = 0,4,1 do 
	for slot = 1, GetContainerNumSlots(bag), 1 do
		local name = GetContainerItemLink(bag,slot);
		if name and string.find(name,"Soul Shard") then
			if i > number then PickupContainerItem(bag,slot);
			DeleteCursorItem();
		end;
		i=i+1; 
	end; 
end;

 


for test i use  delete "Mace"  ....server elysuim     , kronos
number = 5;
i=1; 
for bag = 0,4,1 do 
    for slot = 1, GetContainerNumSlots(bag), 1 do
        local name = GetContainerItemLink(bag,slot);
        if name and string.find(name,"Mace") then
            if i > number then PickupContainerItem(bag,slot);
            DeleteCursorItem();
        end;
        i=i+1; 
    end; 
end;

and dont do nothing/ have lua error window -  'end' expected(to close 'for' at line 8)near '<eof>'

or maybe exist cs# plugin for this? if lua is hard....

 

  • Author
16 minutes ago, Mykoplazma said:

add one more end on the end 

yohooooooooooooo!!!!   this work   , thanks for all   , big thanks for you!!!!very big

number = 5;
i=1; 
for bag = 0,4,1 do 
	for slot = 1, GetContainerNumSlots(bag), 1 do
		local name = GetContainerItemLink(bag,slot);
		if name and string.find(name,"Soul Shard") then
			if i > number then PickupContainerItem(bag,slot);
			DeleteCursorItem();
			end;
		end;
		i=i+1; 
	end; 
end;

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.