Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Riverwind
Newbie


Joined: 04 Apr 2005
Posts: 5

PostPosted: Tue Sep 27, 2005 6:17 pm   

s/s script or summon slay
 
Hello i am looking for help making or repairing my s/s script and wondered if anyone would be able to help me out? for some reason mine just stopped working and i have no idea why.

#CLASS {System|Pueblo}
#CLASS {Summoning}
#CLASS {Quick}
#CLASS {Selling}
#CLASS {DecoderRing}
#CLASS {Summoning|Chat}
#CLASS {autojoin}
#CLASS 0
#ALIAS summon {mindsummon}
#ALIAS repairs {remove %1;repair %1;wear %1}
#ALIAS recall {~recall %-1;#RECALL} "System|AutomapperAll"
#ALIAS 0 {scan}
#VAR weapon {sultan} {sultan} "Summoning"
#VAR weapons2 {rok-man|hero|black-pudding|purple-worm|cave-thing|caecilia|salamander|efreet|hera|zeus|apollo|ares|athena-goddess|gypsy-wizard|gypsy-paladin|gypsy-warlord|gypsy-assassin|gypsy-abdul|gypsy-bartender|lord-python|ajax|poseidon|patroclus|alecto|hippolyta|agamemnon|odysseus|dionysus|black-slayer|mulichort|guillotine|master-xorn|proserpina|donjonkeeper|queeklor|master-torturer|athena|skekie-mantern|skexie-bard|skexie-ancient|skexie-lair-guard|skexie-magister|raistlin|centaur-master|mrs-day|ixitxachitl|black-enfan|gelfling-weaponsmaster|cloud-butcher|iktham-cloud-giant|aeolus|cleric-guildguard|anubis|nobleman|cerebus|10.harpy-xanth|9.harpy-xanth|8.harpy-xanth|7.harpy-xanth|6.harpy-xanth|5.harpy-xanth|4.harpy-xanth|3.harpy-xanth|2.harpy-xanth|harpy-xanth|mundane|lord-menelaus|hector|Arishh|Arachnos|Illyari|Iktham|Princess-Po|tree-ancient|caramon|curley|abdul|swamp-crawler|shark|13.shark|viking-slave|viking-merchant|viking-fisherman|viking-guard|druid-lib|druid-guard|guildguard|elf-arm|elf-shop|elf-bard|elf-wine|elf-arch|sal|cimmura-knight|skele-knight|tin-goose|tin-parot|tin-monkey|noble} {_nodef} "Summoning"
#VAR weapon {death-knight} {death-knight} "Quick"
#VAR weapons {rok-man|hero|black-pudding|purple-worm|cave-thing|caecilia|salamander|efreet|hera|zeus|apollo|ares|athena-goddess|gypsy-wizard|gypsy-paladin|gypsy-warlord|gypsy-assassin|gypsy-abdul|gypsy-bartender|lord-python|ajax|poseidon|patroclus|alecto|hippolyta|agamemnon|odysseus|dionysus|black-slayer|mulichort|guillotine|master-xorn|proserpina|donjonkeeper|queeklor|master-torturer|athena|skekie-mantern|skexie-bard|skexie-ancient|skexie-lair-guard|skexie-magister|raistlin|centaur-master|mrs-day|ixitxachitl|black-enfan|gelfling-weaponsmaster|cloud-butcher|iktham-cloud-giant|aeolus|cleric-guildguard|anubis|nobleman|cerebus|10.harpy-xanth|9.harpy-xanth|8.harpy-xanth|7.harpy-xanth|6.harpy-xanth|5.harpy-xanth|4.harpy-xanth|3.harpy-xanth|2.harpy-xanth|harpy-xanth|mundane|lord-menelaus|hector|Arishh|Arachnos|Illyari|Iktham|Princess-Po|tree-ancient|caramon|curley|abdul|swamp-crawler|shark|13.shark|viking-slave|viking-merchant|viking-fisherman|viking-guard|druid-lib|druid-guard|guildguard|elf-arm|elf-shop|elf-bard|elf-wine|elf-arch|sal|cimmura-knight|skele-knight|tin-goose|tin-parot|tin-monkey|noble} {_nodef} "Quick"
#VAR weapon {sultan} {sultan}
#VAR weapons {rok-man|hero|black-pudding|purple-worm|cave-thing|caecilia|salamander|efreet|hera|zeus|apollo|ares|athena-goddess|gypsy-wizard|gypsy-paladin|gypsy-warlord|gypsy-assassin|gypsy-abdul|gypsy-bartender|lord-python|ajax|poseidon|patroclus|alecto|hippolyta|agamemnon|odysseus|dionysus|black-slayer|mulichort|guillotine|master-xorn|proserpina|donjonkeeper|queeklor|master-torturer|athena|skekie-mantern|skexie-bard|skexie-ancient|skexie-lair-guard|skexie-magister|raistlin|centaur-master|mrs-day|ixitxachitl|black-enfan|gelfling-weaponsmaster|cloud-butcher|iktham-cloud-giant|aeolus|cleric-guildguard|anubis|nobleman|cerebus|10.harpy-xanth|9.harpy-xanth|8.harpy-xanth|7.harpy-xanth|6.harpy-xanth|5.harpy-xanth|4.harpy-xanth|3.harpy-xanth|2.harpy-xanth|harpy-xanth|mundane|lord-menelaus|hector|Arishh|Arachnos|Illyari|Iktham|Princess-Po|tree-ancient|caramon|curley|abdul|swamp-crawler|shark|13.shark|viking-slave|viking-merchant|viking-fisherman|viking-guard|druid-lib|druid-guard|guildguard|elf-arm|elf-shop|elf-bard|elf-wine|elf-arch|sal|cimmura-knight|skele-knight|tin-goose|tin-parot|tin-monkey|noble} {_nodef} "Summoning"
#VAR weapons easy {rok-man|hero|black-pudding|purple-worm|cave-thing|caecilia|salamander|efreet|hera|zeus|apollo|ares|athena-goddess|gypsy-wizard|gypsy-paladin|gypsy-warlord|gypsy-assassin|gypsy-abdul|gypsy-bartender|lord-python|ajax|poseidon|patroclus|alecto|hippolyta|agamemnon|odysseus|dionysus|black-slayer|mulichort|guillotine|master-xorn|proserpina|donjonkeeper|queeklor|master-torturer|athena|skekie-mantern|skexie-bard|skexie-ancient|skexie-lair-guard|skexie-magister|raistlin|centaur-master|mrs-day|ixitxachitl|black-enfan|gelfling-weaponsmaster|cloud-butcher|iktham-cloud-giant|aeolus|cleric-guildguard|anubis|nobleman|cerebus|10.harpy-xanth|9.harpy-xanth|8.harpy-xanth|7.harpy-xanth|6.harpy-xanth|5.harpy-xanth|4.harpy-xanth|3.harpy-xanth|2.harpy-xanth|harpy-xanth|mundane|lord-menelaus|hector|Arishh|Arachnos|Illyari|Iktham|Princess-Po|tree-ancient|caramon|curley|abdul|swamp-crawler|shark|13.shark|viking-slave|viking-merchant|viking-fisherman|viking-guard|druid-lib|druid-guard|guildguard|elf-arm|elf-shop|elf-bard|elf-wine|elf-arch|sal|cimmura-knight|skele-knight|tin-goose|tin-parot|tin-monkey|noble} {_nodef} "Summoning"
#PATH pawn {s3w3s2es2e2n}
#PATH sewer-up {uws2wu}
#TRIGGER {(%w) starts following you} {group %1}
#TRIGGER {No way! You are fighting for your life!} {k ass drax}
#COND {} {} {skip|param=6}
#TRIGGER {tells you} {#beep}
#TRIGGER {You don't see anybody around meeting that description.} {#beep 60}
#COND {} {} {skip|param=2}
#TRIGGER "Receive" {You receive your share of (%d) experience.} {#ad xp %1} "" {disable}
#TRIGGER {You receive your share of} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 0))}} "Summoning"
#TRIGGER {You can't sense that person anywhere.} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 1));#VAR weapon {%item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 1))}}} "Summoning"
#TRIGGER {You have failed to open the portal to summon this individual.} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 0))}} "Summoning"
#TRIGGER {Your mind is not yet strong enough to summon this individual.} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 1));#VAR weapon {%item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 1))}}} "Summoning"
#TRIGGER {Sorry, but that person is too powerfull for you to summon.} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 1))}} "Summoning"
#TRIGGER {But he's not fighting anyone.} {ass dane} "Summoning"
#COND {} {} {skip|param=10}
#TRIGGER {disappears in a shimmering wave of light!} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 0))}} "Summoning"
#COND {} {} {skip|param=4}
#TRIGGER {panics, and attempts to flee.} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 0))}} "Summoning"
#TRIGGER "Receive" {You receive your share of (%d) experience.} {#ad xp %1} "Quick"
#TRIGGER {You can't sense that person anywhere.} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 1));#VAR weapon {%item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 1))}}} "Quick"
#TRIGGER {You cannot penetrate the magical defenses of that area.} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 1));#VAR weapon {%item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 1))}}} "Quick"
#TRIGGER {disappears in a shimmering wave of light!} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 0))}} "Quick"
#TRIGGER {panics, and attempts to flee.} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 0))}} "Quick"
#TRIGGER {You have failed to open the portal to summon this individual.} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 0))}} "Quick"
#TRIGGER {You receive your share of} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 0))}} "Quick"
#TRIGGER {Sorry it is indisposed...} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 1))}} "Quick"
#TRIGGER {But he's not fighting anyone.} {ass dane} "Quick"
#COND {} {} {skip|param=10}
#TRIGGER {R.I.P.} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 0))};#T+ autojoin} "Summoning" {disable}
#TRIGGER { slowly fades out of existence.} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 0))}} "Summoning"
#TRIGGER "repeat" {R.I.P.} {!!} "" {disable}
#TRIGGER {You can't summon someone's pet!} {#IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 2))}} "Summoning"
#TRIGGER {You fail to open a portal at this time.} {gt I failed you master. Please tell me again.}
#TRIGGER {You open a portal and bring forth your target!} {#IF %ismember( @weapon, @weapons) {bs %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 0))}} "Summoning" {disable}
#TRIGGER {You have failed to open the portal to summon this individual} {!!} "Summoning"
#KEY F3 {#T+ repeat;say repeating}
#KEY F2 {#all #t- summoning
#t+ receiving
summon rok}
#KEY F1 {#T- receiving}
#KEY F4 {#T- repeat;say stopping}

here is what i have if anyone sees something wrong and knows how to fix it i would be very happy to hear it... or if someone has another type of s/s script that could be converted i would be happy to see that aswell
thanks
Reply with quote
DaraisDarkwave
Beginner


Joined: 09 Nov 2007
Posts: 28
Location: Fairbanks, Alaska

PostPosted: Fri Nov 09, 2007 10:32 pm   I tried..
 
I tried to figure out what was wrong with this script, can anybody else help?
Reply with quote
DaraisDarkwave
Beginner


Joined: 09 Nov 2007
Posts: 28
Location: Fairbanks, Alaska

PostPosted: Fri Nov 09, 2007 11:14 pm   
 
forgot to mention, i searched for "odd" syntax and trigger that might malfunction the whole script
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Nov 10, 2007 7:15 am   
 
First question - why do you have so many copies of the same variable?

Second question - what's the purpose of #IF %ismember( @weapon, @weapons) {summon %item( @weapons, ((%ismember( @weapon, @weapons)\%numitems( @weapons)) + 0))? Since ismember is always going to return a number smaller than the number of items in the list, the modulus won't actually do anything, and why are you adding zero?

Third question - what's this script supposed to do? Most of us don't play your MUD, so we don't understand what a "summon slay" script is. You'll need to be more specific about what you want this script to do and what it's currently not doing before we can help further.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
DaraisDarkwave
Beginner


Joined: 09 Nov 2007
Posts: 28
Location: Fairbanks, Alaska

PostPosted: Sat Nov 10, 2007 11:48 pm   
 
Summon slay script is designed for diku muds that allow certain players to summon monsters and a alt to slay it, and as far as the second question goes it is to summon various monsters from around the mud...
Reply with quote
DaraisDarkwave
Beginner


Joined: 09 Nov 2007
Posts: 28
Location: Fairbanks, Alaska

PostPosted: Fri Dec 07, 2007 4:08 am   
 
I found the problem i think with this script just can't figure out how to fix it..its a problem with the variables i think...
is there a way to either shorten the script or something in that general area?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Dec 07, 2007 6:39 am   
 
You need to explain, in detail, what each part of this script is going to do. "It's a problem with the variables" doesn't help us in any way, shape or form. And in order to help you shorten the script, we first have to understand what it's trying to do - not "summon various monsters", but what each line of code is supposed to do to help you achieve that goal. As it is, I have absolutely no idea what the script is trying to do at any given time - it's a mess of spaghetti-code that doesn't seem to do anything, as I mentioned in my previous post in this thread. You need to thoroughly explain what you're trying to do with this script before we can help.

EDIT: And as someone pointed out in a previous thread, your definition of "weapons easy" is wrong, because variable names can't contain spaces.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net