Search results

  1. FaceMelter

    For Each loops

    It's similar to the list I have up there yes. The thing I have no idea how to do is assign the variables while it's iterating over the Items list. There has to be some way to store them as it's going through the loop. I just don't know how to do it. EDIT: I am finding out that in C# that you...
  2. FaceMelter

    For Each loops

    mPouch is a bag, that's correct. I just don't understand how to assign the variables during a loop. I've been digging for an example in the code, but I haven't found anything that does it this way yet. I'm trying to get the ItemID's and AddItem(x,y,Item.ID) to place them on the Gump.
  3. FaceMelter

    For Each loops

    I am working on a gump, and I need to assign each of these variables in the foreach() loop. I tried looping the AddItem statement, but it did not work. I need to set each variable to item.ItemID as it processes the loop. int b1image = 0; int b2image = 0; int...
  4. FaceMelter

    Checking for equipment on Playermobile

    Works perfectly. Thanks Jack. I don't know much C#, and what I have learned is from users like yourself. I'm sure some of this stuff would seem obvious to someone proficient in the language. I am very grateful for the help! I'm picking up things as I go. For those interested here is the final...
  5. FaceMelter

    Checking for equipment on Playermobile

    Yep. That was it. It's all working great now! So, could I replace the RangerChainmailChest with typeof(DexRangerChest) instead? EDIT: typeof(DexRangerChest) does not work. Gives me a type error. Any ideas?
  6. FaceMelter

    Checking for equipment on Playermobile

    Wow, didn't even think of checking the Orc Mask! Very good Idea. Time to fiddle. Also, can I reference a base class? or must it be a specific item? Could I do typeof(baseclass) in stead? I'm testing this now: if (from.FindItemOnLayer(Layer.InnerTorso) is RangerChainmailChest) {...
  7. FaceMelter

    Checking for equipment on Playermobile

    I've been typing away at custom sets of armor, and a few of my players want me to make some custom Ranger Armor. I've got it setup to require Dexterity instead of Strength. I want to make a check in the playermobile OnDamage to see if the player is wearing anything with my base class ...
  8. FaceMelter

    Best memories of UO.

    That in a nutshell is UO. No one scripted that. It just happened that way. I love hearing stuff like this, it's why I still tinker with UO.
  9. FaceMelter

    Best memories of UO.

    I used to play on Pacific years and years ago. I always used to like coming up with weird combat builds, but my favorite was the one that gave me my fondest memory. I created an Alchemist / Peace Bard and was training up my skills in despise. I used to have this thing with indirect damage. I...
  10. FaceMelter

    XmlEdit Dialog GUMP responses

    Actually, I just did this and it worked! Looks like you can put in the action line: SETONTRIGMOB/ADD/CompassionDeed/ Thank you tass!
  11. FaceMelter

    XmlEdit Dialog GUMP responses

    Ok, so I was looking at doing all of that and decided to make a deed instead. I found this: VirtueHelper.Award(mobile, VirtueName.(put Virtue here), amount, ref bool) With that I made a deed that gives the Compassion Virtue! It's very basic, and I want to make some edits so that I can specify...
  12. FaceMelter

    XmlEdit Dialog GUMP responses

    Just tried: SETONTRIGMOB/Virtues.Compassion,200/ Matches what I've seen on the playermobile [props. Sadly, still a no go. I'm wondering if I should just make an Item that grants the Virtue increase, and have it added to the player upon the choice. Is there a basic Item with OnDoubleClick()...
  13. FaceMelter

    XmlEdit Dialog GUMP responses

    Your help is very appreciated! Looking at your reply, you've got the Virtue Reward setup as a quest reward. Is it possible to just have the XmlDialog add the Virtue with the action line? I've tried: ACTION: SETONTRIGMOB/XmlAddCompassion, 10/ but that doesn't seem to work. Do I have to make a...
  14. FaceMelter

    XmlEdit Dialog GUMP responses

    Wow! Very in depth! Thanks! As soon as I removed the spaces it started working! I've got it setup to attack the player by saying No, and even damaging the Lizardman too! Now the only issue I have is trying to award Compassion for letting it live. Any Ideas?
  15. FaceMelter

    XmlEdit Dialog GUMP responses

    I'll add a screenshot of what I've changed. It's still not working, am I still missing something? I seem to remember the playermobile saying the words when you select an option, but that's not happening.
  16. FaceMelter

    XmlEdit Dialog GUMP responses

    Right, I know that there is a yes or no value, but I have not idea how to address it. Could you give me an example? If not with GUMP #1 then with GUMP #4? I can't seem to find one.
  17. FaceMelter

    XmlEdit Dialog GUMP responses

    I've set up a simple dialog on an NPC with a yes / no question. Using XmlEdit: Gump: GUMP, Compassion, 1/The creature is wounded, Spare it? In XmlSpawner GUMP style 1 gives you a yes or no option. My question is how do I reference the choice? If the player says yes, I'd like the creature to...
  18. FaceMelter

    Xmlspawner Team property

    That has to be what happened! I'll check this out tonight. Thanks!
  19. FaceMelter

    Xmlspawner Team property

    huh, I tried this with a new set of spawners and it worked. Something is happening when I assign a configfile for XmlDialog that is preventing the mobiles to target each other. Looks like I need to do more testing. It should be working.
  20. FaceMelter

    Xmlspawner Team property

    I tried that, and no dice. I even tried to set combatant to the team name, but it doesn't work that way. Is that all that I'm supposed to do? Just set two different team numbers near each other?

Active Shards

Donations

Total amount
$0.00
Goal
$500.00
Back