Gothic Online Forums
[0.1.4] Notifications - Printable Version

+- Gothic Online Forums (https://archive.gothic-online.com)
+-- Forum: Scripting (English) (https://archive.gothic-online.com/forum-11.html)
+--- Forum: Resources (https://archive.gothic-online.com/forum-14.html)
+---- Forum: Scripts (https://archive.gothic-online.com/forum-17.html)
+---- Thread: [0.1.4] Notifications (/thread-2414.html)



[0.1.4] Notifications - Osmith - 13.03.2018

Simple script, which helps you to notify players about something.

How to use?

Code:
local myNotification = Notification(id,text,font,r,g,b,x,y)

For example

local myNotification = Notification(0,"Gothic 2 Online","Font_Old_10_White_Hi.TGA",255,255,0,2000,2000);

Script moves your text from (x,y) to (x,y - 1000).

Also, you can use new event onNotificationEnd(id). For example:

Code:
function onNotificationEnd(id) {
  print("My notification " + id + " is ended.");
}

addEventHandler("onNotificationEnd",onNotificationEnd);

Demonstration


Download

Script: pastebin.
Script for tests (from video): pastebin.