Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
console error when adding new items
|
Author |
Message |
kn4tseb
Master
Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0
|
RE: console error when adding new items
i totally get it skull but this is the thing... if i remove the "reward" side of the script i get no errors at console..
and the money is bounced .... if i add the newitem reward as shown in the first post everything works fine too, but i get that annoying error at console pointing a line... but if i comment that line, the error is still shown at the very same commented line :/
NO ERRORS:
Code:
ELIF (<tag0.bod3> == 1)
src.sound 87
src.newgold <eval <strarg <streat <tag0.bod>>>*<serv.itemdef.<streat <streat <tag0.bod>>>.value>>
src.sysmessage You receive <eval <strarg <streat <tag0.bod>>>*<serv.itemdef.<streat <streat <tag0.bod>>>.value>> gold as reward.
argo.say Thank you so much!, here is your reward.
remove
src.tag0.bod2 = <eval <src.tag0.bod2>-1>
if <src.tag0.bod2> == 0
src.tag0.bod2 =
src.tag0.bod4 =
endif
return 1 // borrar
ENDIF
EDIT:
ERROR:(sphere_system_bod.scp,435)Undefined symbol ''
line 435:
Code:
// src.newgold <eval <strarg <streat <tag0.bod>>>*<serv.itemdef.<streat <streat <tag0.bod>>>.value>>
Code:
ELIF (<tag0.bod3> == 1)
src.sound 87
// src.newgold <eval <strarg <streat <tag0.bod>>>*<serv.itemdef.<streat <streat <tag0.bod>>>.value>>
src.sysmessage You receive <eval <strarg <streat <tag0.bod>>>*<serv.itemdef.<streat <streat <tag0.bod>>>.value>> gold as reward.
argo.say Thank you so much!, here is your reward.
remove
if <src.tag0.bod2> == 1
if <eval <src.tag0.bod3>> >= 25 && <eval <src.tag0.bod3>> =< 100 // poor reward
serv.newitem { i_leather_gloves_mining 500 i_studded_gloves_mining 250 i_ringmail_gloves_mining 100 i_colored_anvil 40 i_powder_of_fortifying 40 i_hammer_prospector_tool 40 i_pickaxe_gargish 40 i_ancient_smithy_hammer 20 }
elif <eval <src.tag0.bod3>> > 100 && <eval <src.tag0.bod3>> =< 250 // medium reward
serv.newitem { i_leather_gloves_mining 150 i_studded_gloves_mining 150 i_ringmail_gloves_mining 150 i_colored_anvil 150 i_powder_of_fortifying 150 i_hammer_prospector_tool 150 i_pickaxe_gargish 150 i_ancient_smithy_hammer 50 i_power_scroll 1 i_stat_power_scroll 1 <runichammers> 10 }
elif <eval <src.tag0.bod3>> > 250 && <eval <src.tag0.bod3>> =< 500 // rich reward
serv.newitem { i_leather_gloves_mining 150 i_studded_gloves_mining 150 i_ringmail_gloves_mining 150 i_colored_anvil 150 i_powder_of_fortifying 150 i_hammer_prospector_tool 150 i_pickaxe_gargish 150 i_ancient_smithy_hammer 100 i_power_scroll 5 i_stat_power_scroll 5 <runichammers> 50 }
elif <eval <src.tag0.bod3>> > 500 // richest reward
serv.newitem { i_hammer_prospector_tool 150 i_pickaxe_gargish 150 i_ancient_smithy_hammer 150 i_power_scroll 150 i_stat_power_scroll 150 <runichammers> 150 }
endif
if <new>
new.bounce
endif
src.tag0.bod3 =
endif
src.tag0.bod2 = <eval <src.tag0.bod2>-1>
if <src.tag0.bod2> == 0
src.tag0.bod2 =
src.tag0.bod4 =
endif
return 1 // borrar
ENDIF
(This post was last modified: 07-26-2014 10:55 AM by kn4tseb.)
|
|
07-26-2014 10:47 AM |
|
|
Messages In This Thread |
RE: console error when adding new items - kn4tseb - 07-26-2014 10:47 AM
|
User(s) browsing this thread: 1 Guest(s)