pinku
Journeyman
Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4
|
Error with Dialog
Hey all again!
I'm using Majesty's Bounty System and right now I'm getting a huge error when I open the dialog.
Let me explain:
Code:
RED NAMES ON THE BOUNTY BOARD MEANS THAT THE PLAYER IS A MURDERER.
BLUE NAMES ON THE BOUNTY BOARD MEANS THAT THE PLAYER IS NOT A MURDERER.
Knowing that:
Code:
[FUNCTION ISMURDERER]
if ( <KILLS> > <SERV.MURDERMINCOUNT> )
return 1
endif
return 0
This function works. So don't worry about it.
Code:
text 99 69 <QVAL (<src.uid.<tag.bountyuid.1>.ismurderer> == 1 ) ? 32 : 02> 0
text 99 90 <QVAL (<src.uid.<tag.bountyuid.2>.ismurderer> == 1 ) ? 32 : 02> 1
text 99 114 <QVAL (<src.uid.<tag.bountyuid.3>.ismurderer> == 1 ) ? 32 : 02> 2
text 99 135 <QVAL (<src.uid.<tag.bountyuid.4>.ismurderer> == 1 ) ? 32 : 02> 3
text 99 159 <QVAL (<src.uid.<tag.bountyuid.5>.ismurderer> == 1 ) ? 32 : 02> 4
text 99 180 <QVAL (<src.uid.<tag.bountyuid.6>.ismurderer> == 1 ) ? 32 : 02> 5
text 99 204 <QVAL (<src.uid.<tag.bountyuid.7>.ismurderer> == 1 ) ? 32 : 02> 6
text 99 225 <QVAL (<src.uid.<tag.bountyuid.8>.ismurderer> == 1 ) ? 32 : 02> 7
text 99 249 <QVAL (<src.uid.<tag.bountyuid.9>.ismurderer> == 1 ) ? 32 : 02> 8
...
...
...
And here's what I got:
Code:
ERROR:(bounty,1441)Undefined symbol 'ismurderer'
ERROR:(bounty,1442)Undefined symbol 'ismurderer'
ERROR:(bounty,1443)Undefined symbol 'ismurderer'
...
...
Honestly, I'm somewhat new to sphere and I haven't had the time to learn much about dialogs. Of course, I can build my owns, but just simple ones.
Can someone help me figure out this one?
Thanks!
|
|
08-17-2013 03:29 PM |
|
|
RanXerox
Master
Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19
|
RE: Error with Dialog
(08-17-2013 03:29 PM)pinku Wrote:
Code:
[FUNCTION ISMURDERER]
if ( <KILLS> > <SERV.MURDERMINCOUNT> )
return 1
endif
return 0
What happens if the reference this function operates on is invalid or not a player? Maybe put an IF statement to figure that out...
Quote:
Code:
text 99 69 <QVAL (<src.uid.<tag.bountyuid.1>.ismurderer> == 1 ) ? 32 : 02> 0
text 99 90 <QVAL (<src.uid.<tag.bountyuid.2>.ismurderer> == 1 ) ? 32 : 02> 1
text 99 114 <QVAL (<src.uid.<tag.bountyuid.3>.ismurderer> == 1 ) ? 32 : 02> 2
text 99 135 <QVAL (<src.uid.<tag.bountyuid.4>.ismurderer> == 1 ) ? 32 : 02> 3
text 99 159 <QVAL (<src.uid.<tag.bountyuid.5>.ismurderer> == 1 ) ? 32 : 02> 4
text 99 180 <QVAL (<src.uid.<tag.bountyuid.6>.ismurderer> == 1 ) ? 32 : 02> 5
text 99 204 <QVAL (<src.uid.<tag.bountyuid.7>.ismurderer> == 1 ) ? 32 : 02> 6
text 99 225 <QVAL (<src.uid.<tag.bountyuid.8>.ismurderer> == 1 ) ? 32 : 02> 7
text 99 249 <QVAL (<src.uid.<tag.bountyuid.9>.ismurderer> == 1 ) ? 32 : 02> 8
...
...
...
What if the TAG has an invalid value? Use TAG0 instead...
(This post was last modified: 08-23-2013 03:36 AM by RanXerox.)
|
|
08-19-2013 01:17 AM |
|
|
dagger4k
Journeyman
Posts: 194
Likes Given: 1
Likes Received: 12 in 12 posts
Joined: Mar 2012
Reputation: 0
|
|
08-19-2013 09:54 AM |
|
|
Rattlehead
Master
Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8
|
RE: Error with Dialog
i looked over this, and altho is syntax is outdated, and altho they seems to like to use vars, and altho the original scriptor failed to use the TAG0 syntax when referncing something on the right side of a statement, i dont see any reason why this script shouldnt work perfectly as intended.
if this is a tag0 issue, then its really not the scripts fault, as from what i can tell everytime it references a tag, the tag should be populated, so the tags must not be being set correctly, possibly an installation mistake, i see that u have to insert the uid of both the reward container, and the bulletin board, maybe the references are pointing to the wrong item in the users version?
|
|
08-19-2013 11:29 AM |
|
|