Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create Handout - If anyone is willing?
Author Message
Reflex
Journeyman
*

Posts: 130
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #1
Create Handout - If anyone is willing?
I am having a lot of problems learning to script dialogs that are somewhat complex. If anyone would be willing to script this handout generator I can not only use the script but it has a lot of features that I don't understand the slightest on how to implement.. This would be an awesome start for everyone who needs help with dialogs to get started using them and learn how they work and what they are capable of doing.. Anyway.. What the script I need done is suppose to basically create a custom item via dialog with attributes you can toggle and then hand it out to everyone who is logged in.

[Example]
Say it is Christmas and you want to give everyone on the server 3 items.
1. a snowman - something simple.
2. a Uniquely colored Robe with a unique name and with attributes newbie undestructible.
3. a Half Apron that matches the Robe.
-- Then have the items be marked if they are part of a set as these would be. Robe - Christmas 2013 [1/2] Apron Christmas 2013 [2/2]

Code:
//Create Handout
[PLEVEL 6]
createhandout
createhandouts

[FUNCTION createhandout]
src.sdialog d_staff_handouts

//Dialog

[DIALOG d_staff_handouts]
0,0
page 0
group 0
resizepic 107 1 9270 277 472
resizepic 122 12 9200 245 32
checkertrans 123 12 246 447
dtext 183 18 003a Staff Handout Menu
dtext 183 69 1153 Replicate Scripted Item
button 155 71 2117 2118 1 0 1
dtext 183 92 1153 Add Another Item
button 155 94 2117 2118 1 0 5
dtext 218 195 005d Options
checkbox 152 221 211 210 1 100
dtext 182 222 1153 Use Container
checkbox 152 246 211 210 1 101
dtext 182 247 1153 Send Message with Handout
dtext 184 115 1153 Select Container Type
button 155 117 2117 2118 1 0 2
dtext 184 139 1153 Resync Preview Items
button 155 140 2117 2118 1 0 3
button 147 423 247 248 1 0 4
button 266 423 241 243 1 0 0
checkbox 152 272 211 210 1 102
dtext 182 273 1153 Date Items
checkbox 152 297 211 210 1 103
dtext 182 298 1153 Label Items 1 of 2, Etc
dtext 138 400 005d Give Handouts
checkbox 152 323 211 210 1 104
dtext 182 324 1153 Make Item Invul
checkbox 152 349 211 210 1 105
dtext 182 350 1153 Make Item Un-Cuttable
dtext 255 401 005d Cancel Handout
dtext 184 163 1153 Set Handout Message
button 155 164 2117 2118 1 0 6
resizepic 385 242 9270 263 231
checkertrans 399 250 238 211
resizepic 382 1 9270 263 246
checkertrans 388 11 243 225
dtext 468 249 005d Items Preview
dtext 451 10 005d Build Item Properties
dtext 429 30 0229 ID:
dtext 407 53 0229 NAME:
dtext 400 77 0229 COLOR:
dtext 407 100 0229 TYPE:
dtext 393 126 0229 WEIGHT:
dtext 391 155 0229 AMOUNT:
dtext 410 178 0229 ATTR:
tilepichue 412 288 01f03 1153
tilepichue 491 288 01f03 1153
tilepichue 572 287 01f03 1153
tilepichue 412 355 01f03 1153
tilepichue 489 354 01f03 1153
tilepichue 573 354 01f03 1153
tilepichue 411 419 01f03 1153
tilepichue 491 419 01f03 1153
tilepichue 570 419 01f03 1153
resizepic 41 474 9270 675 66
checkertrans 53 488 653 41
dtextentry 455 29 169 20 1153 24 i_sample_handout
dtextentry 455 53 169 20 1153 25 Sample Handout
dtextentry 455 78 169 20 1153 26 color_fire
dtextentry 456 101 169 20 1153 27 t_normal
dtextentry 455 129 169 20 1153 28 1
dtextentry 455 154 169 20 1153 29 1
dtextentry 457 176 169 20 1153 30 04
dtext 337 478 005d Item Properties
button 425 270 2117 2118 1 0 7
button 504 270 2117 2118 1 0 8
button 586 270 2117 2118 1 0 9
button 421 334 2117 2118 1 0 10
button 502 334 2117 2118 1 0 11
button 584 334 2117 2118 1 0 12
button 425 401 2117 2118 1 0 13
button 504 401 2117 2118 1 0 14
button 586 401 2117 2118 1 0 15
dtext 62 503 0229 ID:
dtext 131 503 0229 NAME:
dtext 235 503 0229 COLOR:
dtext 321 503 0229 TYPE:
dtext 409 503 0229 WEIGHT:
dtext 514 503 0229 AMOUNT:
dtext 626 503 0229 ATTR:
resizepic 40 535 9270 675 58
checkertrans 53 544 653 41
dtext 389 554 0229 Total Items:
dtext 57 553 0229 Handout Message:
dtext 515 555 0229 Container Prewview:
tilepichue 657 545 0 1153
button 410 210 238 240 1 0 16
button 548 210 244 246 1 0 17

[DIALOG d_staff_handouts text]

[DIALOG d_staff_handouts button]

ON=0 //  Give Handouts
src.sysmessageua 022,0,0,1 You have chosen to not give out a reward! ?

ON=1 //
src.sysmessage Unused Find something to use this for or rearanage dialog

ON=2 //
src.sysmessage Select Container Type

ON=3 //
src.sysmessage Resync Images of the Preview Items

ON=4 //
//FOR 0 5
IF (<argchk[100]>)
    src.sysmessage use container
  ELSEIF (<argchk[101]>)
    src.sysmessage semd a message to clients after receiving their handout
  ELSEIF (<argchk[102]>)
    src.sysmessage date the items given out
  ELSEIF (<argchk[103]>)
    src.sysmessage Label Items
  ELSEIF (<argchk[104]>)
    src.sysmessage Make Item Invul
  ELSEIF (<argchk[105]>)
    src.sysmessage Make Item Un-Cuttable.
  ENDIF
IF <ACCOUNT.PLEVEL> == 1
SERV.ALLCLIENTS sysmessageua 1153,0,0,1 WooHoo! I just got a handout!
ELSE
src.sysmessage return blarg
ENDIF
RETURN 1

ON=5 //
src.sysmessage Add another handout to set properties to

ON=6 //
src.sysmessage Set Handout Message Clients Receive upon getting their donations.

ON=7 //
src.say View Item Properties 1
src.sdialog d_staff_handouts

ON=8 //

src.say View Item Properties 2
src.sdialog d_staff_handouts

ON=9 //
src.say View Item Properties 3
src.sdialog d_staff_handouts

ON=10 //
src.say View Item Properties 4
src.sdialog d_staff_handouts

ON=11 //
src.say View Item Properties 5
src.sdialog d_staff_handouts

ON=12 //
src.say View Item Properties 6
src.sdialog d_staff_handouts

ON=13 //
src.say View Item Properties 7
src.sdialog d_staff_handouts

ON=14 //
src.say View Item Properties 8
src.sdialog d_staff_handouts

ON=15 //
src.say View Item Properties 9
src.sdialog d_staff_handouts

ON=16 //
src.sysmessage Apply Handout Properties to new item you are creating.

ON=17 //
src.sdialog d_staff_handouts

[EOF]
12-26-2013 05:10 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)