SphereCommunity
Problem Demon Scripting - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Problem Demon Scripting (/Thread-Problem-Demon-Scripting)



Problem Demon Scripting - larmc20 - 05-30-2013 04:45 AM

Hello guys. I was trying to make this script of Balron and in on=@npcRestock put random magic itens like power and vanq...
I don“t know Why it is not working. when I try to add the npc i receive a message 'invalid command or format'.

Do you know why is that?

PHP Code:
[chardef C_BALRON_R]
id=c_demon
NAME
=balron
ICON
=i_pet_demon
SOUND
=snd_monster_demon
CAN
=MT_WALK|MT_FLY|MT_USEHANDS|MT_EQUIP
DAM
=107,155
ARMOR
=65
DESIRES
=r_dungeon,t_coin,t_gold,t_gem,t_wand,t_potion,t_scroll,t_reagent
AVERSIONS
=r_civilization,r_water
FOODTYPE
=45 t_meat_raw
RESOURCES
=1 i_ribs_raw,4 i_reag_daemon_bone
BLOODCOLOR
=colors_white
MOVERATE
=150
TAG
.Barding.Diff=114.5
TAG
.DamEnergy=25
TAG
.DamFire=25
TAG
.Luck.Loot=loot_balron_luck
TAG
.Slayer=SLAYER_DEMON
TEVENTS
=e_carnivores3
CATEGORY
=Monsters
SUBSECTION
=Demons
DESCRIPTION
=Balron itens vanq power
ON
=@Create
   DORAND 4
      NAME
=Lord of the Abyss
      NAME
=The Collector of Souls
      NAME
=The Slayer
      NAME
=Lord Balron
   ENDDO
   TITLE
=balron
   NPC
=brain_monster
   FAME
=24000
   KARMA
=-24000
   STR
={986 1185}
   
MAXHITS={592 711}
   
DEX={177 255}
   
MAXSTAM={177 255}
   
INT={151 250}
   
MAXMANA={151 250}
   
ANATOMY={90.0 100.0}
   
ARCHERY={90.0 100.0}
   
EVALUATINGINTEL={90.0 100.0}
   
FENCING={90.0 100.0}
   
MACEFIGHTING={90.0 100.0}
   
MAGERY={95.0 100.0}
   
MAGICRESISTANCE={100.0 150.0}
   
MEDITATION={25.0 50.0}
   
PARRYING={90.0 100.0}
   
SWORDSMANSHIP={90.0 100.0}
   
TACTICS={90.0 100.0}
   
WRESTLING={90.0 100.0}
   
MODAR={0 15}
   
RESCOLD={50 60}
   
RESENERGY={40 50}
   
RESFIRE={60 70}
   
RESPOISON=100
ON
=@NPCRestock
   ITEM
=loot_demon_balron
   
// 1200 - 1500 Gold. 2 Medium Level Scrolls, Magic Items
   //Special: Level 5 Treasure Map
DORAND 12
    ITEM
=RANDOM_WEAPON_VANQ
    ITEM
=I_GOLD
    ITEM
=I_GOLD
    ITEM
=I_GOLD
    ITEM
=I_GOLD
    ITEM
=I_GOLD
    ITEM
=I_GOLD
    ITEM
=I_GOLD
    ITEM
=I_GOLD
    ITEM
=I_GOLD
    ITEM
=I_GOLD
    ITEM
=RANDOM_WEAPON_POWER
   ENDDO

ON
=@Hit
   
//Paralyze Attack
   
IF !(<SRC.FLAGS>&statf_freeze)&&(<MANA>>20)
      
MANA -= 20
      SRC
.SPELLEFFECT s_paralyze,<MAGERY>,1,<UID>
      
SRC.EFFECT 3,i_fx_field_paralyze,1,16,0,02
      SRC
.SOUND snd_spell_paralyze
   
ENDIF


[
EOF



RE: Problem Demon Scripting - darksun84 - 05-30-2013 05:07 AM

A part that the correct ID for demon graphic is c_daemon it worked fine for me Shock


RE: Problem Demon Scripting - larmc20 - 05-30-2013 06:29 AM

I don't know Why it is not working... I tried C_daemon and keep showing Not a valid command of format

=/


RE: Problem Demon Scripting - darksun84 - 05-30-2013 06:35 AM

Are you using .addnpc c_balron_r command for creating the monster?


RE: Problem Demon Scripting - amonvangrell - 05-30-2013 06:45 AM

any new scp file added to your sphere needs to be add or to a folder that is been read by sphere on spheretable. then u need to or re-open your sphere, so it load the script or u need to load it on the console. ''load path/script.scp''
then it will work. ;]


RE: Problem Demon Scripting - larmc20 - 05-30-2013 09:39 AM

Thanks fella. The folder was already on SphereTable but it wasn't working. So I put there the folder/x.scp and it worked. i dont know Why it was not working on the other way