16 lines
462 B
Lua
16 lines
462 B
Lua
![]() |
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
|