summaryrefslogtreecommitdiff
path: root/doc/sample
diff options
context:
space:
mode:
authorKirieZ <guilherme.menaldo@outlook.com>2017-07-30 13:45:41 -0300
committerKirieZ <guilherme.menaldo@outlook.com>2017-07-30 13:45:41 -0300
commit544da439e81ff78ec102b754e16b6cc0a28a6d0a (patch)
tree6fef53b94dec9f72b65b39df08fb8eb4160a467f /doc/sample
parent71d694baa88d2beb6ec0f89fb2f8b733898acea5 (diff)
downloadhercules-544da439e81ff78ec102b754e16b6cc0a28a6d0a.tar.gz
hercules-544da439e81ff78ec102b754e16b6cc0a28a6d0a.tar.bz2
hercules-544da439e81ff78ec102b754e16b6cc0a28a6d0a.tar.xz
hercules-544da439e81ff78ec102b754e16b6cc0a28a6d0a.zip
Implementation of RoDEX
Diffstat (limited to 'doc/sample')
-rw-r--r--doc/sample/npc_rodex.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/sample/npc_rodex.txt b/doc/sample/npc_rodex.txt
new file mode 100644
index 000000000..a808a1aa9
--- /dev/null
+++ b/doc/sample/npc_rodex.txt
@@ -0,0 +1,39 @@
+//===== Hercules Script =======================================
+//= Sample: RoDEX Send Mail
+//===== By: ==================================================
+//= KirieZ
+//===== Current Version: =====================================
+//= 20170322
+//===== Description: =========================================
+//= Demonstrates sending mails through RoDEX.
+//============================================================
+
+prontera,150,150,4 script Rodex Mail 1_M_01,{
+ // Sends a messsage to attached player from "Rodex Test", with title "Rodex Test1",
+ // with message "Hello World, How are You?", 1000 Zenies and 5 Red Potions attached
+ rodex_sendmail(
+ getcharid(CHAR_ID_CHAR), "Rodex Test", "Rodex Test1", "Hello World, How are You?",
+ 1000,
+ Red_Potion, 5
+ );
+
+ // Sends a messsage to attached player "Account Box" from "Rodex Test", with title "Rodex Test3",
+ // with message "Hello World, How are You?", 1000 Zenies and 5 Red Potions attached
+ rodex_sendmail_acc(
+ getcharid(CHAR_ID_CHAR), "Rodex Test", "Rodex Test3", "Hello World, How are You?",
+ 1000,
+ Red_Potion, 5
+ );
+
+ // Sends a messsage to attached player "Account Box" from "Rodex Test", with title "Rodex Test6",
+ // with message "Hello World, How are You?", 1000 Zenies, 5 Red Potions and
+ // 1 +10 Knife[3] with 3 Poring Cards (Broken)
+ rodex_sendmail2(
+ getcharid(CHAR_ID_CHAR), "Rodex Test", "Rodex Test6", "Hello World, How are You?",
+ 1000,
+ Red_Potion, 5, 0, 0, 0, 0, 0, 0,
+ Knife, 1, 10, 1, Poring_Card, Poring_Card, Poring_Card, 0
+ );
+
+ end;
+}