1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Item Of Race Change

Discussion in 'Script Support' started by kfritz411, Nov 10, 2017.

  1. kfritz411
    Offline

    kfritz411 Member

    Joined:
    Mar 16, 2015
    Messages:
    49
    Likes Received:
    2
    So working on a modified tribal paint that will change race for a period of time or until death.

    So far, everything works great. After death, the hue changes back, the bodymod and body change back, but the Race stays as elf. Can't seem to make it revert to original setting.

    anyone got any ideas?
     

    Attached Files:

  2. Lokai
    Offline

    Moderator ServUO Developer

    Joined:
    Dec 4, 2014
    Messages:
    1,076
    Likes Received:
    155
    You need a Timer that will undo the changes. The change to Race.Elf is not a temporary change, so it's not surprising that it stays after death. Each time the Timer ticks, it should check if the player is dead and revert the changes if the player dies or it reaches the expiration.
     
  3. kfritz411
    Offline

    kfritz411 Member

    Joined:
    Mar 16, 2015
    Messages:
    49
    Likes Received:
    2

    Thanks sir! I'll try to finagle something like that
     
Similar Threads: Item Race
Forum Title Date
Script Support adding item on char creation depending on race Jul 12, 2018
Script Support Problems giving item per race Dec 13, 2013
Script Support CS1729: Line 70: 'Server.Items.RunebookTownsTrammel' does not contain a constructor that takes 0 arg Wednesday at 7:14 PM
Script Support I want to know what is the mechanism of item class save in servuo. Saturday at 6:28 AM
Script Support Make created item dyable? (solved) Oct 4, 2018
Bug Reports EC items dropping through floor Oct 2, 2018
Script Support Items appear underground Oct 2, 2018