Module commit
Module commit.
This commit is contained in:
19
_module/nss/_c_page_forward.nss
Normal file
19
_module/nss/_c_page_forward.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "_c_inc_message"
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
int nIndex = GetDataBaseInt(_INDEX_);
|
||||
int nPage = GetDataBaseInt(_PAGE_);
|
||||
|
||||
if(nPage >= nIndex) {
|
||||
FloatingTextStringOnCreature("End of List",oPC);
|
||||
PlaySound("gui_error");
|
||||
return;
|
||||
|
||||
} else {
|
||||
|
||||
++nPage;
|
||||
SetDataBaseInt(_PAGE_,nPage);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user