Author Topic: DMFI stuff for PC not showing on client enter?  (Read 455 times)

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
DMFI stuff for PC not showing on client enter?
« on: August 18, 2010, 05:12:26 am »


               Okay I installed the DMFI wand system on my cep module though now due all those other scripting it doesn't show up when a toon first starts on the server.

Any way I can solve this issue?
               
               

               
            

Legacy_ShadowM

  • Hero Member
  • *****
  • Posts: 1373
  • Karma: +0/-0
DMFI stuff for PC not showing on client enter?
« Reply #1 on: August 18, 2010, 05:15:29 am »


               You could try this one. 'B)'
nwvault.ign.com/View.php
               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
DMFI stuff for PC not showing on client enter?
« Reply #2 on: August 18, 2010, 05:19:25 am »


               I have already tried that one, i prefer the old version though thanks for the suggestion.

To me DMFI is the most simplistic way to use it. Already have a merchant installed though the idea was that a PC would get the Dicebag - emote wand and auto follow when the enter the game for the first time.



It did that in the veeeery beginning untill I started scripting so then it did not showed up on client enter anymore....



any clue how to solve this?
               
               

               
            

Legacy_tsunami282

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
DMFI stuff for PC not showing on client enter?
« Reply #3 on: August 19, 2010, 02:20:46 am »


               Which release of DMFI are you using? I can help you some with questions on 1.09. You can get that release here if you don't have it



http://nwvault.ign.c....Detail&id=3487

               
               

               
            

Legacy_tsunami282

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
DMFI stuff for PC not showing on client enter?
« Reply #4 on: August 19, 2010, 02:44:30 am »


                I looked at this a bit further. Per the DMFI installation documentation, you should be calling dmfi_onclienter in response to the module's OnClientEnter event. If you wish to make sure a player has the three player-level DMFI items, you'll need to append a few lines to the dmfi_onclienter script.

Put this code in the script, following the line that reads "dmfiInitialize(oUser);"


if (!GetIsDM(oUser))
{
    string sItem;
    sItem = "dmfi_pc_follow";
    if (!GetIsObjectValid(GetItemPossessedBy(oUser, sItem)))
    {
        CreateItemOnObject(sItem, oUser);
    }
    sItem = "dmfi_pc_dicebag";
    if (!GetIsObjectValid(GetItemPossessedBy(oUser, sItem)))
    {
        CreateItemOnObject(sItem, oUser);
    }
    sItem = "dmfi_pc_emote";
    if (!GetIsObjectValid(GetItemPossessedBy(oUser, sItem)))
    {
        CreateItemOnObject(sItem, oUser);
    }
}
Let me know if that doesn't fix it for you.
               
               

               


                     Modifié par tsunami282, 19 août 2010 - 01:50 .
                     
                  


            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
DMFI stuff for PC not showing on client enter?
« Reply #5 on: August 19, 2010, 04:45:48 am »


               I got a 1.7, is there a 1.9?