Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
phpdts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nemo Ma
phpdts
Commits
f5edaee1
Commit
f5edaee1
authored
Dec 24, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Interim
parent
e5047752
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
122 additions
and
16 deletions
+122
-16
gamedata/cache/addnpc_1.php
gamedata/cache/addnpc_1.php
+42
-5
gamedata/cache/npc_1.php
gamedata/cache/npc_1.php
+3
-3
img/n_xilinn.gif
img/n_xilinn.gif
+0
-0
img/n_xilinn_a.gif
img/n_xilinn_a.gif
+0
-0
include/game/item.func.php
include/game/item.func.php
+77
-8
No files found.
gamedata/cache/addnpc_1.php
View file @
f5edaee1
...
...
@@ -571,7 +571,8 @@ $anpcinfo = array
0
=>
array
(
'name'
=>
'Acg_Xilin'
,
'icon'
=>
2
,
//'icon' => 2,
'icon'
=>
'n_xilinn.gif'
,
'club'
=>
4
,
'clubskillpara'
=>
Array
(
...
...
@@ -1167,22 +1168,22 @@ $anpcinfo = array
'arbk'
=>
'DB'
,
'arbe'
=>
100
,
'arbs'
=>
500
,
'arbsk'
=>
'*'
,
'arbsk'
=>
'*
v
'
,
'arh'
=>
'人工干扰力场H'
,
'arhk'
=>
'DH'
,
'arhe'
=>
100
,
'arhs'
=>
500
,
'arhsk'
=>
'-'
,
'arhsk'
=>
'-
v
'
,
'arf'
=>
'人工波动力场F'
,
'arfk'
=>
'DF'
,
'arfe'
=>
100
,
'arfs'
=>
500
,
'arfsk'
=>
'+'
,
'arfsk'
=>
'+
v
'
,
'ara'
=>
'人工备用力场A'
,
'arak'
=>
'DA'
,
'arae'
=>
100
,
'aras'
=>
500
,
'arask'
=>
'aA'
,
'arask'
=>
'aA
v
'
,
'art'
=>
'妖精的羽翼'
,
'artk'
=>
'A'
,
'arte'
=>
1
,
...
...
@@ -1199,6 +1200,18 @@ $anpcinfo = array
'wepe'
=>
200
,
'weps'
=>
5000
,
'wepsk'
=>
''
,
'itm1'
=>
'[D10]'
,
'itmk1'
=>
'🎲'
,
'itme1'
=>
1
,
'itms1'
=>
1
,
'itm2'
=>
'[D10]'
,
'itmk2'
=>
'🎲'
,
'itme2'
=>
1
,
'itms2'
=>
1
,
'itm3'
=>
'[D10]'
,
'itmk3'
=>
'🎲'
,
'itme3'
=>
1
,
'itms3'
=>
1
,
),
1
=>
array
(
...
...
@@ -1209,6 +1222,18 @@ $anpcinfo = array
'wepe'
=>
200
,
'weps'
=>
5000
,
'wepsk'
=>
''
,
'itm1'
=>
'[D40]'
,
'itmk1'
=>
'🎲'
,
'itme1'
=>
1
,
'itms1'
=>
1
,
'itm2'
=>
'[D40]'
,
'itmk2'
=>
'🎲'
,
'itme2'
=>
1
,
'itms2'
=>
1
,
'itm3'
=>
'[D40]'
,
'itmk3'
=>
'🎲'
,
'itme3'
=>
1
,
'itms3'
=>
1
,
),
2
=>
array
(
...
...
@@ -1219,6 +1244,18 @@ $anpcinfo = array
'wepe'
=>
200
,
'weps'
=>
5000
,
'wepsk'
=>
''
,
'itm1'
=>
'[D100]'
,
'itmk1'
=>
'🎲'
,
'itme1'
=>
1
,
'itms1'
=>
1
,
'itm2'
=>
'[D100]'
,
'itmk2'
=>
'🎲'
,
'itme2'
=>
1
,
'itms2'
=>
1
,
'itm3'
=>
'[D100]'
,
'itmk3'
=>
'🎲'
,
'itme3'
=>
1
,
'itms3'
=>
1
,
),
),
),
...
...
gamedata/cache/npc_1.php
View file @
f5edaee1
...
...
@@ -2311,17 +2311,17 @@ $npcdescription = array
0
=>
array
(
'count'
=>
1
,
'description'
=>
'循环使者 妖精幻象-麦基,<span class="yellow">
PVE后期送玩家抽取属性的NPC
。</span>'
,
'description'
=>
'循环使者 妖精幻象-麦基,<span class="yellow">
携带强力的骰子道具[D10],可以为你产生高级空想道具
。</span>'
,
),
1
=>
array
(
'count'
=>
1
,
'description'
=>
'循环使者 妖精幻象-拉普尼,<span class="yellow">
PVE后期送玩家抽取属性的NPC
。</span>'
,
'description'
=>
'循环使者 妖精幻象-拉普尼,<span class="yellow">
携带强力的骰子道具[D40],可以从地图上随机获得物品
。</span>'
,
),
2
=>
array
(
'count'
=>
1
,
'description'
=>
'循环使者 妖精幻象-斯洛蒂,<span class="yellow">
PVE后期送玩家抽取属性的NPC
。</span>'
,
'description'
=>
'循环使者 妖精幻象-斯洛蒂,<span class="yellow">
携带强力的骰子道具[D100],可以重新投掷你的各色数值
。</span>'
,
),
),
),
...
...
img/n_xilinn.gif
0 → 100644
View file @
f5edaee1
7.48 KB
img/n_xilinn_a.gif
0 → 100644
View file @
f5edaee1
20.7 KB
include/game/item.func.php
View file @
f5edaee1
...
...
@@ -1076,7 +1076,7 @@ function itemuse($itmn,&$data=NULL) {
}
}
elseif
(
strpos
(
$itmk
,
'🎲'
)
===
0
)
{
if
(
$itm
==
'[D3]'
)
{
$log
.=
'你向天空投出了骰子!<br>进行1d3检定!<br>'
;
$log
.=
'你向天空投出了骰子!<br>
<br>
进行1d3检定!<br>'
;
//D3 - Randomly shuffle the effect and stamina of player's equipment and weapon.
//grabbing the effect and stamina of player equipment and weapon
//Does not affect "A" equipment
...
...
@@ -1129,7 +1129,7 @@ function itemuse($itmn,&$data=NULL) {
$itme
=
$itms
=
0
;
}
}
elseif
(
$itm
==
'[D6]'
)
{
$log
.=
'你向天空投出了骰子!<br>进行1d6检定!<br>'
;
$log
.=
'你向天空投出了骰子!<br>
<br>
进行1d6检定!<br>'
;
//D6 - spawn a random item to player's hand.
$log
.=
'骰子骨碌碌地旋转起来,变成了一件【空想道具】!<br>'
;
//Populate an array desinating which kind of item this would turn into.
...
...
@@ -1169,7 +1169,7 @@ function itemuse($itmn,&$data=NULL) {
$itme
=
$itms
=
0
;
}
}
elseif
(
$itm
==
'[D10]'
)
{
$log
.=
'你向天空投出了骰子!<br>进行1d10检定!<br>'
;
$log
.=
'你向天空投出了骰子!<br>
<br>
进行1d10检定!<br>'
;
//D10 - spawn a random item to player's hand - Enhanced D6 with a better item pool.
$log
.=
'骰子骨碌碌地旋转起来,变成了一件【空想道具】!<br>'
;
//Populate an array desinating which kind of item this would turn into.
...
...
@@ -1207,7 +1207,7 @@ function itemuse($itmn,&$data=NULL) {
$itme
=
$itms
=
0
;
}
}
elseif
(
$itm
==
'[D20]'
)
{
$log
.=
'你向天空投出了骰子!<br>进行1d20检定!<br><br>'
;
$log
.=
'你向天空投出了骰子!<br>
<br>
进行1d20检定!<br><br>'
;
//D20 - Randomly fill player's bag with items from player's location.
//Get item from database.
$result
=
$db
->
query
(
"SELECT * FROM
{
$tablepre
}
mapitem WHERE pls = '
$pls
'"
);
...
...
@@ -1306,7 +1306,7 @@ function itemuse($itmn,&$data=NULL) {
$itmsk0
=
''
;
}
}
elseif
(
$itm
==
'[D40]'
)
{
$log
.=
'你向天空投出了骰子!<br>进行1d40检定!<br><br>'
;
$log
.=
'你向天空投出了骰子!<br>
<br>
进行1d40检定!<br><br>'
;
//D40 - Randomly fill player's bag with items from all mapitems. - Enhanced D20
//Get item from database.
$result
=
$db
->
query
(
"SELECT * FROM
{
$tablepre
}
mapitem"
);
...
...
@@ -1405,7 +1405,7 @@ function itemuse($itmn,&$data=NULL) {
$itmsk0
=
''
;
}
}
elseif
(
$itm
==
'[D100]'
)
{
$log
.=
'你向天空投出了骰子!<br>进行1d100检定!<br><br>'
;
$log
.=
'你向天空投出了骰子!<br>
<br>
进行1d100检定!<br><br>'
;
//D100 - Shuffle the player's mhp, msp, mss, atk, def and all w values.
//Firstly, are you the chosen one?
$chosenone
=
1
;
...
...
@@ -1455,7 +1455,7 @@ function itemuse($itmn,&$data=NULL) {
$itme
=
$itms
=
0
;
}
}
elseif
(
$itm
==
'[D1000]'
)
{
$log
.=
'你投出了这个骰子!骰子飞上了天空,变成了三个不同的骰子!这真是太炫酷了!<br>'
;
$log
.=
'你投出了这个骰子!
<br>
骰子飞上了天空,变成了三个不同的骰子!这真是太炫酷了!<br>'
;
//D1000 - Does all of the above, based on player's Yume Values.
//D3
if
(
$clbpara
[
'randver1'
]
>
64
){
...
...
@@ -1644,7 +1644,76 @@ function itemuse($itmn,&$data=NULL) {
}
}
}
elseif
(
strpos
(
$itmk
,
'🥚'
)
===
0
)
{
//🥚 items does a variety of different things based on its itmsk - may expand in the future.
if
(
strpos
(
$itmsk
,
'J'
)
===
0
){
//J item turns into a yugioh pack.
$log
.=
'你将这个蛋捧在手里仔细端详着……<br>它突然变成了一包卡牌!<br>'
;
//destroy the item.
$itm
=
$itmk
=
$itmsk
=
''
;
$itme
=
$itms
=
0
;
//generate a yugioh pack in player's hand.
$itm0
=
'游戏王卡包'
;
$itmk0
=
'ygo'
;
$itme0
=
1
;
$itms0
=
1
;
$itmsk0
=
''
;
}
elseif
(
strpos
(
$itmsk
,
's'
)
===
0
){
//s item turns into a yugioh pack.
//TODO: May actually implement new yugioh packs for Exceed and Synchro only packs.
$log
.=
'你将这个蛋捧在手里仔细端详着……<br>它突然变成了一包卡牌!<br>'
;
//destroy the item.
$itm
=
$itmk
=
$itmsk
=
''
;
$itme
=
$itms
=
0
;
//generate a yugioh pack in player's hand.
$itm0
=
'游戏王卡包'
;
$itmk0
=
'ygo'
;
$itme0
=
1
;
$itms0
=
1
;
$itmsk0
=
''
;
}
elseif
(
strpos
(
$itmsk
,
'X'
)
===
0
){
//X item turns into a Deathnote.
$log
.=
'你将这个蛋捧在手里仔细端详着……<br>它突然变成了一本黑色的小册子<br>卧槽,这不会是……<br>'
;
//destroy the item.
$itm
=
$itmk
=
$itmsk
=
''
;
$itme
=
$itms
=
0
;
//generate a Deathnote in player's hand.
$itm0
=
'■DeathNote■'
;
$itmk0
=
'Y'
;
$itme0
=
1
;
$itms0
=
1
;
$itmsk0
=
''
;
}
elseif
(
strpos
(
$itmsk
,
'x'
)
===
0
){
//x item turns into a super recovery item.
$log
.=
'你将这个蛋捧在手里仔细端详着……<br>它突然变成了一包卡牌!<br>'
;
//destroy the item.
$itm
=
$itmk
=
$itmsk
=
''
;
$itme
=
$itms
=
0
;
//generate the item in player's hand.
$itm0
=
'奇迹的元素'
;
$itmk0
=
'HB'
;
$itme0
=
65535
;
$itms0
=
1
;
$itmsk0
=
'z'
;
}
elseif
(
strpos
(
$itmsk
,
'v'
)
===
0
){
//v item curses player's current weapon.
$log
.=
'你看了一眼这个蛋,就理解了它的用法。<br>你痛快地……吃掉了它?<br>你感觉到你的武器泛起了一股诅咒的力量……<br>'
;
//destroy the item.
$itm
=
$itmk
=
$itmsk
=
''
;
$itme
=
$itms
=
0
;
//Apply curses to player's current holding weapon.
$wepsk
.=
'v'
;
}
elseif
(
strpos
(
$itmsk
,
'V'
)
===
0
){
//X item make player's current weapon soulbind.
$log
.=
'你看了一眼这个蛋,就理解了它的用法。<br>你痛快地……吃掉了它?<br>你感觉到你的武器绑定在了你的身上……<br>'
;
//destroy the item.
$itm
=
$itmk
=
$itmsk
=
''
;
$itme
=
$itms
=
0
;
//Apply soulbind to player's current holding weapon.
$wepsk
.=
'V'
;
}
else
{
//FUTURE FEAT: We can make so much use of this in the future.
$log
.=
'你似乎听到了一个佻皮的女孩声音:<br><br>“这个代码片段……不妨以后再来探索吧!”<br>'
;
}
}
elseif
(
strpos
(
$itmk
,
'🎆'
)
===
0
)
{
//В ΜΑЛΨ, В ЩΑЁΨ, В ЦΨΨ ОΑЙЙ, В ТИХ ЩДТЖИΜД.
//ХЖ ДЖХЖТ, ЖХΨ ЦЩТΑВΜДЩ ТЖΑΡ, ΜΨЩ. ЩДВХΜЦ. ΡЖХΨ.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment