Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem Demon Scripting
Author Message
larmc20
Journeyman
*

Posts: 67
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: May 2013
Reputation: 0



Post: #1
Problem Demon Scripting
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
05-30-2013 04:45 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Problem Demon Scripting
A part that the correct ID for demon graphic is c_daemon it worked fine for me Shock
05-30-2013 05:07 AM
Find all posts by this user Like Post Quote this message in a reply
larmc20
Journeyman
*

Posts: 67
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: May 2013
Reputation: 0



Post: #3
RE: Problem Demon Scripting
I don't know Why it is not working... I tried C_daemon and keep showing Not a valid command of format

=/
05-30-2013 06:29 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Problem Demon Scripting
Are you using .addnpc c_balron_r command for creating the monster?
05-30-2013 06:35 AM
Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 338
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #5
RE: Problem Demon Scripting
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. ;]
05-30-2013 06:45 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
larmc20
Journeyman
*

Posts: 67
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: May 2013
Reputation: 0



Post: #6
RE: Problem Demon Scripting
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
05-30-2013 09:39 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)