• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Mail system 1.4

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
  • Like
Reactions: CrackBam
Mail system. Write -mail you "message" and you get item. Then click it and you will see you message. Item can be sended.

First trigger is a create hashtable and set it to varible.

Trigger -2
Code:
call DisplayTextToPlayer(GetTriggerPlayer(), 0, 0, LoadStr(udg_Hashtable, GetHandleId(GetManipulatedItem()), 0))
Trigger -3



1.0 - first upload.

1.1 - now the firs 2 simbol is showing too.

1.2 - converted to GUI

1.3 - Leaks and bug removed. Added comment "how to import" and now the system works for all players

1.4 - Trigger "Read mail" changed to code function.


Keywords:
Mail, letter, message, system, item, jass.
Contents

Mail system 1.4 (Map)

Reviews
12.12 IcemanBo: For long time as NeedsFix. Rejected. Bribe: Game - Display to (Player group(Player_Tem[(Player number of (Triggering player))])) the text: Letters may only be given to one Hero at a time. -> leaks a player group Set...

Moderator

M

Moderator

12.12
IcemanBo: For long time as NeedsFix. Rejected.

Bribe:

Game - Display to (Player group(Player_Tem[(Player number of (Triggering player))])) the text: Letters may only be given to one Hero at a time. -> leaks a player group

Set Player_Tem[(Player number of (Triggering player))] = (Triggering player) -> This is not useful.

Set Int_Tem = (Number of units in (Units currently selected by Player_Tem[(Player number of (Triggering player))])) -> leaks!!

## Needs Fix ##
 

Bribe

Code Moderator
Level 50
Joined
Sep 26, 2009
Messages
9,464
Yeah, I think I will have to retire his system because he isn't maintaining it.

However, this library needs a lot of work. Take advantage of a loop so you don't have to type the same lines over and over. The formatting is quite bad here. Are you sure that you want to just conver this to JASS for no reason? Just leave it as GUI if it's easier for you to work with.
 
Level 12
Joined
Apr 16, 2010
Messages
584
Offtopic: So this is even a secret? Whoah nice... =) We really need sarcasm tags!
Okay secret must be secret... But your avatar could reveal the secret, if only was bigger...
So is this a fever?

Edit: Few seconds later... Oh GOD we do have sarcasm tags, wow... nice!
@OxygenD, Are you gonna improve this system or not?
 
Top