I get this error msg when trying to use they dice and cup script
ERROR JS script failure: script Number <5020> Message <referenceError:
iDice1 is not defined
ERROR: filename: ./js/items/diceandcup.js
line number 9
error erroroneous line: <null>
token ptr: <null>
[FIXED] dice and cup script
-
dragon slayer
- UOX3 Guru
- Posts: 776
- Joined: Thu Dec 21, 2006 7:37 am
- Has thanked: 4 times
- Been thanked: 26 times
-
dragon slayer
- UOX3 Guru
- Posts: 776
- Joined: Thu Dec 21, 2006 7:37 am
- Has thanked: 4 times
- Been thanked: 26 times
Nevermind i fixed it 
here is the fix for dice and cup
here is the fix for dice and cup
Code: Select all
function onUseChecked( pUser, iUsed )
{
var iDice1 = RandomNumber( 1, 6 );
var iDice2 = RandomNumber( 1, 6 );
var pName = pUser.name;
if( iUsed.container != null )
pUser.EmoteMessage( pName+" rolls the dice and gets a "+iDice1+" and a "+iDice2+"." );
else
iUsed.TextMessage( pName+" rolls the dice and gets a "+iDice1+" and a "+iDice2+"." );
return false;
}-
dragon slayer
- UOX3 Guru
- Posts: 776
- Joined: Thu Dec 21, 2006 7:37 am
- Has thanked: 4 times
- Been thanked: 26 times