stoneage8.5/服务器端lua文件/ablua/item/opentrump.lua

16 lines
462 B
Lua
Raw Normal View History

2020-06-22 17:49:02 +08:00
function opentrump(itemindex, charaindex, toindex, haveitemindex)
if char.getInt(charaindex,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬")>0 then
char.TalkToCli(charaindex, -1,"<EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˷<EFBFBD><EFBFBD><EFBFBD>װ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>!", "<EFBFBD><EFBFBD>ɫ")
return
end
char.DelItem(charaindex, haveitemindex)
char.setInt(charaindex,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬",1);
char.UpCahrData(charaindex,"p");
char.TalkToCli(charaindex, -1,"<EFBFBD><EFBFBD><EFBFBD>ķ<EFBFBD><EFBFBD><EFBFBD>װ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѳɹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!", "<EFBFBD><EFBFBD>ɫ")
end
function main()
item.addLUAListFunction( "ITEM_OPENTRUMP", "opentrump", "")
end