|  | 
	
	
		| mgialit Newbie
 
 
 Joined: 04 Oct 2012
 Posts: 5
 
 
 | 
			
			  |  Posted: Thu Oct 04, 2012 8:28 am 
 buffs displayed
 
 |  
				| hello guys, i just can make simple things on cmud and i need some help
 
 lets say that i get a message when a strength spell casted on me "you feel stronger"
 and a message when spell ends    "you feel stronger no more"
 
 i want always somehow track a list of specific spells if they are active on me or not(status window?)
 for example if strength, Blur and barkskin spells are active on me or not.
 
 strength ON
 blur ON
 barkskin OFF
 
 if you need any more information tell me plz
 |  | 
	
	  |  | 
	
		|  | 
	
		| shalimar GURU
 
  
 Joined: 04 Aug 2002
 Posts: 4774
 Location: Pensacola, FL, USA
 
 | 
			
			  |  Posted: Thu Oct 04, 2012 3:37 pm 
 |  
				| Gemstone.. good call on game. 
 You could always use a variable
 
 #ADDITEM CurSpells Strength
 #DELITEM CurSpells Blurs
 
 and then you coulf have you @curSpells variable displayed in a #STWIN object
 |  | 
	
	  | 
		    
			  | _________________ Discord: Shalimarwildcat
 |   |  | 
	
		|  | 
	
		| meddlesome Wanderer
 
 
 Joined: 24 Aug 2012
 Posts: 70
 
 
 | 
			
			  |  Posted: Thu Oct 04, 2012 8:51 pm 
 |  
				| Is there a way to get a list from the Mud what you have cast as active spells? 
 |  | 
	
	  | 
		    
			  | _________________ Intel Core 2 Quad Q9450 @2.66GHz
 MDAC 2.8 SP1 ON WINDOWS XP SP3
 Msjet40.dll ver 4.0.9511.0 + Security Bulletin MS08-028
 CMUD v237
 Order number: **7829
 |   |  | 
	
		|  | 
	
		| mgialit Newbie
 
 
 Joined: 04 Oct 2012
 Posts: 5
 
 
 | 
			
			  |  Posted: Thu Oct 04, 2012 11:27 pm 
 |  
				| ok i used triggers to additems and remove from a string list named curspells 
 then used #stwin @curspells
 
 but status didn't renewed it self when a spell wore :(
 
 i want to have a status window with a list off spells
 
 Strength OFF
 Blur OFF
 Barkskin OFF
 
 then i want to have a trigger on pattern "you feel stronger" will set on my list Strength ON
 
 Strength ON
 Blur OFF
 Barkskin OFF
 
 after some game time strength will wore, on pattern "you feel stronger no more" will set Strength OFF again
 those are msgs for casting Blur
 You watch your body become blurry and unfocused.   - spell ends on You suddenly notice that your body is in focus once again.
 
 can any1 help me script this?
 |  | 
	
	  |  | 
	
		|  | 
	
		| shalimar GURU
 
  
 Joined: 04 Aug 2002
 Posts: 4774
 Location: Pensacola, FL, USA
 
 | 
			
			  |  Posted: Fri Oct 05, 2012 1:15 am 
 |  
				| Thats right, i forgot about that issue using lists... enter the following at the command line: 
 #EVENT onSpellChange {#STWIN { %expandlist(@curSpell, " %cr ") } {SpellUp} {spellStaus} }
 
 You can always edit the it with a better %format later
 This is so the #STWIN gets overwritten each time instead of making multiple copies
 
 alright, whenever a spelled gets toggled off via the #ADDI #DELI commands add the next command to the trigger as well
 
 #RAISE onSpellChange
 |  | 
	
	  | 
		    
			  | _________________ Discord: Shalimarwildcat
 |   |  | 
	
		|  | 
	
		| meddlesome Wanderer
 
 
 Joined: 24 Aug 2012
 Posts: 70
 
 
 | 
			
			  |  Posted: Wed Oct 10, 2012 6:04 pm 
 |  
				| I just used a #CLR before I published to my status window. Of course this means that any time you send to the status window, you would have to send everything. 
 |  | 
	
	  | 
		    
			  | _________________ Intel Core 2 Quad Q9450 @2.66GHz
 MDAC 2.8 SP1 ON WINDOWS XP SP3
 Msjet40.dll ver 4.0.9511.0 + Security Bulletin MS08-028
 CMUD v237
 Order number: **7829
 |   |  | 
	
		|  | 
	
		|  | 
	
		|  |