• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

What the?! Suicide OT Donate thing...

antman

New Member
Joined
Oct 23, 2009
Messages
21
Reaction score
0
Hey, i have a problem how to delete/change this text? :O


I am using TFS 0.3.6 CRYING DAMSON Suicide OT server.


------------------------------------------------------------------------print.jpg



How to change that text? It likes comming up every 5th minute.

// antOT
 
Goto your globalevents folder, and look carpet Script. Then Open the script
"Autobroadcast" and edit it.
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<globalevents>
    <globalevent name="effects" interval="1" event="script" value="effects.lua"/>
        <globalevent name="save" interval="900" event="script" value="save.lua"/>
    <globalevent name="clean" interval="7200" event="script" value="clean.lua"/>

    <globalevent name="shop" interval="30" script="shop.lua"/>
        <globalevent name="serverstart" type="start" event="script" value="start.lua"/>
    <globalevent name="playersrecord" type="record" event="script" value="record.lua"/>

    <!-- <globalevent name="timer_example" time="21:35" event="script" value="my_script.lua"/> -->
</globalevents>
 

Save Script -> in data/globalevents/scripts with name "msgs.lua"

Lua:
MSG = {
    [1] = {message = "msg1", type = 19},
    [2] = {message = "msg2", type = 19},
    [3] = {message = "msg3", type = 19},
}

function onThink()
   randomMsg = math.random(1, #MSG)
       return doBroadcastMessage(MSG[randomMsg].message, MSG[getRandom].type)
end

and to globalevents.xml this

Lua:
<globalevent name="msgs" interval="10" script="msgs.lua"/>

Rep++ me

?????????????????????????????????????????????????????????????
 
LOOOOOOOOOOOOL but why telling noob things look

Goto your sever folder.
Open DATA //Carpet//
Then Globalevents //carpet//
Then Scripts //Carpet//
Then Autobroadcast //Script//

lOOK, And u will see messatges Edit them

There are npc name's "donater" and he tell u to donate at that page look

Lua:
-- NPC Broadcast Message by MrSheen --

-- Set how many minutes delay you want the NPC to broadcast. --
local delayminutes = 40

-- Set the messages that you want to be broadcasted. --
local broadcastmessage = {'Do you want to donate to the server and get awesome donation items in reward? Buy your points in this link, You can donating by using SMS, Phone: http://YOURURL/?subtopic=shopsystem... = os.time ( ) end [code=lua][/code]
 
LOOOOOOOOOOOOL but why telling noob things look

Goto your sever folder.
Open DATA //Carpet//
Then Globalevents //carpet//
Then Scripts //Carpet//
Then Autobroadcast //Script//

lOOK, And u will see messatges Edit them

There are npc name's "donater" and he tell u to donate at that page look

Lua:
-- NPC Broadcast Message by MrSheen --

-- Set how many minutes delay you want the NPC to broadcast. --
local delayminutes = 40

-- Set the messages that you want to be broadcasted. --
local broadcastmessage = {'Do you want to donate to the server and get awesome donation items in reward? Buy your points in this link, You can donating by using SMS, Phone: http://YOURURL/?subtopic=shopsystem.../code][/QUOTE] Npc dont is needed... lol
 
Back
Top