begin mc_drathisvondeliquireComshort equallevelshort levelmaxshort swordcheckshort swordcheckerfloat myx float myy float myz float timerif ( GetCurrentAIPackage == 3 ) if ( Player->GetEffect sEffectLevitate == 1 ) AIWander 0 0 0 0 endif if ( GetWeaponDrawn == 1 ) return elseif ( GetDistance Player > 800 ) set timer to timer + GetSecondsPassed if ( timer > 8 ) set timer to 0 set myx to ( Player->GetPos x ) set myy to ( Player->GetPos y ) set myz to ( Player->GetPos z ) SetPos x myx SetPos y myy SetPos z myz endif endif endif if ( levelmax == 1 ) "player"->getlevel set equallevel to getlevel if ( equallevel <= 5 ) "01mc_drathisvduire"->setmediumarmor, 40 "01mc_drathisvduire"->setlongblade, 40 "01mc_drathisvduire"->setunarmored, 40 "01mc_drathisvduire"->setspeed, 100 elseif ( equallevel >= 6 ) if ( equallevel <= 10 ) "01mc_drathisvduire"->setmediumarmor, 50 "01mc_drathisvduire"->setlongblade, 50 "01mc_drathisvduire"->setunarmored, 50 elseif ( equallevel <= 15 ) "01mc_drathisvduire"->setmediumarmor, 60 "01mc_drathisvduire"->setlongblade, 60 "01mc_drathisvduire"->setunarmored, 60 elseif ( equallevel <= 20 ) "01mc_drathisvduire"->setmediumarmor, 70 "01mc_drathisvduire"->setlongblade, 70 "01mc_drathisvduire"->setunarmored, 70 elseif ( equallevel <= 25 ) "01mc_drathisvduire"->setmediumarmor, 80 "01mc_drathisvduire"->setlongblade, 80 "01mc_drathisvduire"->setunarmored, 80 elseif ( equallevel <= 30 ) "01mc_drathisvduire"->setmediumarmor, 90 "01mc_drathisvduire"->setlongblade, 90 "01mc_drathisvduire"->setunarmored, 90 elseif ( equallevel >= 31 ) "01mc_drathisvduire"->setmediumarmor, 100 "01mc_drathisvduire"->setlongblade, 100 "01mc_drathisvduire"->setunarmored, 100 endif endifendifif ( swordcheck == 0 ) set swordchecker to GetItemCount, "1DLScimitar" if ( swordchecker == 0 ) "01mc_drathisvduire"->additem "1DLScimitar" 1 "01mc_drathisvduire"->equip "1DLScimitar" elseif ( swordchecker == 1 ) set swordcheck to 1 endifendifif ( swordcheck == 1 ) set swordchecker to GetItemCount, "1DLScimitar" if ( swordchecker == 0 ) set swordcheck to 0 endifendif end
It says that everytime "01mc_drathisvduire" is there it's not found.
Would this work instead though? It's going to be attatched to the npc.
begin mc_drathisvondeliquireComshort equallevelshort levelmaxshort swordcheckshort swordcheckerfloat myx float myy float myz float timerif ( GetCurrentAIPackage == 3 ) if ( Player->GetEffect sEffectLevitate == 1 ) AIWander 0 0 0 0 endif if ( GetWeaponDrawn == 1 ) return elseif ( GetDistance Player > 800 ) set timer to timer + GetSecondsPassed if ( timer > 8 ) set timer to 0 set myx to ( Player->GetPos x ) set myy to ( Player->GetPos y ) set myz to ( Player->GetPos z ) SetPos x myx SetPos y myy SetPos z myz endif endif endif if ( levelmax == 1 ) "player"->getlevel set equallevel to getlevel if ( equallevel <= 5 ) setmediumarmor, 40 setlongblade, 40 setunarmored, 40 setspeed, 100 elseif ( equallevel >= 6 ) if ( equallevel <= 10 ) setmediumarmor, 50 setlongblade, 50 setunarmored, 50 elseif ( equallevel <= 15 ) setmediumarmor, 60 setlongblade, 60 setunarmored, 60 elseif ( equallevel <= 20 ) setmediumarmor, 70 setlongblade, 70 setunarmored, 70 elseif ( equallevel <= 25 ) setmediumarmor, 80 setlongblade, 80 setunarmored, 80 elseif ( equallevel <= 30 ) setmediumarmor, 90 setlongblade, 90 setunarmored, 90 elseif ( equallevel >= 31 ) setmediumarmor, 100 setlongblade, 100 setunarmored, 100 endif endifendifif ( swordcheck == 0 ) set swordchecker to GetItemCount, "1DLScimitar" if ( swordchecker == 0 ) additem "1DLScimitar" 1 equip "1DLScimitar" elseif ( swordchecker == 1 ) set swordcheck to 1 endifendifif ( swordcheck == 1 ) set swordchecker to GetItemCount, "1DLScimitar" if ( swordchecker == 0 ) set swordcheck to 0 endifendif end
It doesn't specify who get's the stat updates and all, but that's okay since it's attatched to the npc right?