在转生网页中判断转生所需MU币是否足够的代码后面,加入下面的代码即可实现转生时角色身上的装备保护,建议跟会员系统配合使用.
以下是代码:
for i=1 to 120 step 10
itemdbs=Hex(ascB(midb(rs1("Inventory"),i,1)))
if itemdbs <> "FF" then
response.write "<script language=javascript>alert(\n\n转生的人物身上装备没有卸下来哟,我可是好心提醒你别怪我罗嗦!);history.back()</script>"
response.end
end if
next
转载时请注明本文出自:http://www.37sfw.com
|