forked from Tylemagne/DOSE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdose_example1.php
More file actions
32 lines (24 loc) · 766 Bytes
/
Copy pathdose_example1.php
File metadata and controls
32 lines (24 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?PHP
require("dose_header.php");
echo "Testing a DOSE scenario...";
$sTestingPointers = new Scenario
(
"Testing pointers",
new Table
(
"Main table",
new Result(3.0, "Grab 2-3 rewards from global 1", DOSE_TYPE_MAGICPOINTER_MULTMANY, 1, 2, 3, 0, 0),
new Result(3.0, "Grab 1 reward from global 2", DOSE_TYPE_MAGICPOINTER_MULTMANY, 2, 1, 1, 0, 0),
new Result(3.0, "Steel sword", DOSE_TYPE_ITEM, 251, 1, 1, 0, 0) //Steel sword is itemid 251
),
new Table
(
"Table channel 2 - 1/300 for 1-2 Fire Rubies",
new Result(300.0, "Fire ruby", DOSE_TYPE_ITEM, 9031, 1, 2, 0, 0)
)
);
$sTestingPointers->Roll();
echo "<hr>";
$sTestingPointers->DumpRewardJSON();
$sTestingPointers->PrintTotals();
?>